面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11261173
json
{
  "response": {
    "fps": 60,
    "fps_avg": 60,
    "entities_count": 81999,
    "world_seed": 10801386,
    "world_size": 4000,
    "steam_id": "90286620311158787",
    "domain": null,
    "id": 11261173,
    "ip": "91.229.114.45",
    "port": 28083,
    "query": 28085,
    "color": 0,
    "city": "Chicago",
    "description": "![TERMINUS - End of Making | Loot-Only Survival | PvE/PvP Zones](https://i.ibb.co/qKftwxx/terminus-header.png)\nCreation is over. \r\nIn Terminus the workbenches are silent.\r\nNothing new is made here—everything you use was left behind.\r\nSurvival depends entirely on what you can find.\r\nEvery monument matters.\r\nTerminus is not about domination.\r\nIt’s about endurance in a world that cannot be rebuilt.\r\nIf you want tension...\r\nWELCOME TO TERMINUS.\r\n\r\nMore Info and Discord @ PlayTerminus.com",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780635858,
    "last_online": 1780638627,
    "icon": null,
    "name": "TERMINUS - End of Making | Loot-Only Survival | PvE/PvP Zones",
    "connect": "91.229.114.45:28083",
    "request": "91.229.114.45:28085",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1774555223,
    "last_update": 1780638627,
    "banned": false,
    "wipe": 1780599546,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4178,
    "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/11261173");
$data = json_decode($json, true);
var_dump($data);