面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/520013
json
{
  "response": {
    "fps": 30,
    "fps_avg": 29,
    "entities_count": 145664,
    "world_seed": 315630260,
    "world_size": 4500,
    "steam_id": "90286581625901069",
    "domain": null,
    "id": 520013,
    "ip": "216.39.240.13",
    "port": 28048,
    "query": 28045,
    "color": 0,
    "city": "Ashburn",
    "description": "![RustGamingNation 100000x PvE [Events|Purge|Zombies|SkillTree]](https://www.dropbox.com/scl/fi/187avc9uicnm8mghru599/v502SmH.png?rlkey=pdo51grnj7i36st01dmcsfts5&st=xjmmom43&dl=1)\nRustGamingNation 100000x PvE\r\nEvents | Purge | Zombies | SkillTree\r\nCustom PvE server with raidable bases, zombies, events, progression, and active development.\r\nFriendly community | Regular wipes | Active admins",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780546460,
    "last_online": 1780578031,
    "icon": null,
    "name": "RustGamingNation 100000x PvE [Events|Purge|Zombies|SkillTree]",
    "connect": "216.39.240.13:28048",
    "request": "216.39.240.13:28045",
    "map": "by klauz24",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 3,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1643496958,
    "last_update": 1780578031,
    "banned": false,
    "wipe": 1779897782,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1504,
    "language": "en",
    "parked": false,
    "app": {
      "id": 252490,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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