JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11677472
json
{
  "response": {
    "fps": 78,
    "fps_avg": 70,
    "entities_count": 12004,
    "world_seed": 1337,
    "world_size": 1000,
    "steam_id": "90286396958547986",
    "domain": null,
    "id": 11677472,
    "ip": "8.135.5.255",
    "port": 10028,
    "query": 11028,
    "color": 0,
    "city": "Shenzhen",
    "description": null,
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780595610,
    "last_online": 1780225876,
    "icon": null,
    "name": "[高倍PVE]1000倍|快乐摸鱼|轻松刷怪|农场服",
    "connect": "8.135.5.255:10028",
    "request": "8.135.5.255:11028",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "CN",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1780216212,
    "last_update": 1780595610,
    "banned": false,
    "wipe": 1780134440,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 13165,
    "language": "zh",
    "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/11677472");
$data = json_decode($json, true);
var_dump($data);