面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/568089
json
{
  "response": {
    "fps": 52,
    "fps_avg": 48,
    "entities_count": 93118,
    "world_seed": 255308939,
    "world_size": 4000,
    "steam_id": "90286538774774797",
    "domain": null,
    "id": 568089,
    "ip": "216.244.65.251",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Tukwila",
    "description": "![RUSTWORLD.CC [US] Seattle - Main | PVP/Monthly](http://www.hostedinc.net/rustworldlogo.jpg)\n==================== RUSTWORLD.CC ===================\r\n\r\nus2.rustworld.cc - Seattle, WA\r\nRustworld.CC Main Server in Seattle\r\nPVP allowed, Monthly Wipes\r\n\r\nRules: http://www.rustworld.cc/rules.php\r\nSupport: http://www.rustworld.cc/support.php\r\nDonate: http://www.rustworld.cc/donate.php\r\n\r\nServer provided by: Rust World Foundation Inc",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780449259,
    "last_online": 1780572028,
    "icon": null,
    "name": "RUSTWORLD.CC [US] Seattle - Main | PVP/Monthly",
    "connect": "216.244.65.251:28015",
    "request": "216.244.65.251:28017",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1668891356,
    "last_update": 1780572028,
    "banned": false,
    "wipe": 1778185457,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1389,
    "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/568089");
$data = json_decode($json, true);
var_dump($data);