JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/3578274
json
{
  "response": {
    "fps": 52,
    "fps_avg": 50,
    "entities_count": 156483,
    "world_seed": 1,
    "world_size": 6000,
    "steam_id": "90286604486926338",
    "domain": null,
    "id": 3578274,
    "ip": "156.236.84.45",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Dallas",
    "description": "![The Wooden Shrimp - PVE - No Killing/Stealing/Raiding](https://www.dropbox.com/scl/fi/2cfjt3hor5mldnjq2ddlw/woodenshrimp.png?rlkey=uppieq8gk0q4j12f0n5bxgp1v&st=zboqqse7&dl=1)\nThe Wooden Shrimp is a community led PvE server with QoL plugins. Active staff. Active community. Whether you're learning or a pro, here's a place to have a laid back wipe. \r\n Join us on discord https://discord.gg/JRMGsTwUY6",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780597469,
    "last_online": 1780608626,
    "icon": null,
    "name": "The Wooden Shrimp - PVE - No Killing/Stealing/Raiding",
    "connect": "156.236.84.45:28015",
    "request": "156.236.84.45:28016",
    "map": "Custom Map",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 11,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 69,
    "add_date": 1711101583,
    "last_update": 1780608626,
    "banned": false,
    "wipe": 1780597515,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 922,
    "language": "en",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/3578274");
$data = json_decode($json, true);
var_dump($data);