面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11606849
json
{
  "response": {
    "fps": 73,
    "fps_avg": 73,
    "entities_count": 124414,
    "world_seed": 1601636052,
    "world_size": 4500,
    "steam_id": "90286589937115139",
    "domain": null,
    "id": 11606849,
    "ip": "173.225.104.251",
    "port": 28080,
    "query": 28015,
    "color": 0,
    "city": "Teterboro",
    "description": "![Vanilla Rust PVE](https://i.postimg.cc/PJZCk3Rt/rust-server.jpg)\n2 WEEK WIPES   ..English is a must...Do not open touch anything not yours, MUST upgrade base from TWIG, Keep all workbenches inside .Call out when looting Monuments and Airdrops @Airfield  @Launch  @Cargo  @Bradley  @Airdrop T4    WE have set Pure tea sales 200 scrap to make it fair for all  . No  Diesel or Blueprint frag sales...  4 Water Wheel Limit",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780136017,
    "last_online": 1780593630,
    "icon": null,
    "name": "Vanilla Rust PVE",
    "connect": "173.225.104.251:28080",
    "request": "173.225.104.251:28015",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1779915486,
    "last_update": 1780593630,
    "banned": false,
    "wipe": 1779295670,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1963,
    "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/11606849");
$data = json_decode($json, true);
var_dump($data);