面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11645044
json
{
  "response": {
    "fps": 222,
    "fps_avg": 212,
    "entities_count": 92916,
    "world_seed": 3492394,
    "world_size": 4000,
    "steam_id": "90286440013185027",
    "domain": null,
    "id": 11645044,
    "ip": "51.79.46.224",
    "port": 20889,
    "query": 20890,
    "color": 0,
    "city": "Montreal",
    "description": null,
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780553014,
    "last_online": 1780342987,
    "icon": null,
    "name": "A Shockbyte Rust Server",
    "connect": "51.79.46.224:20889",
    "request": "51.79.46.224:20890",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 1,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "CA",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1780177444,
    "last_update": 1780553014,
    "banned": false,
    "wipe": 1779839445,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 12591,
    "language": "en",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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