面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11800792
json
{
  "response": {
    "fps": 196,
    "fps_avg": 172,
    "entities_count": 67306,
    "world_seed": 1337,
    "world_size": 3500,
    "steam_id": "90287029122070555",
    "domain": null,
    "id": 11800792,
    "ip": "151.243.226.4",
    "port": 28015,
    "query": 28017,
    "project_id": null,
    "color": 0,
    "city": "Amsterdam",
    "description": "Wipe Schedule\r\n• Map — Every Monday @ 14:00 ICT\r\n• BP Wipe — Monthly / Force Wipe\r\n\r\nRules\r\n• No cheating / scripting\r\n• No exploiting or bug abuse\r\n• No ban evasion or banned alt accounts\r\n• Respect all players\r\n\r\nOfficial Launch — 05 June 2026\r\nDiscord: https://rustvn.online/discord\r\nFull Rules: https://rustvn.online/rules",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1781463025,
    "last_online": 1781502027,
    "icon": null,
    "name": "[SEA] RUSTVN | Vanilla | Monday | Weekly Map | Việt Nam",
    "connect": "151.243.226.4:28015",
    "request": "151.243.226.4:28017",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 1,
    "maxplayers": 168,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "NL",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1781463025,
    "last_update": 1781502027,
    "banned": false,
    "wipe": 1780901555,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 6225,
    "language": "nl",
    "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/11800792");
$data = json_decode($json, true);
var_dump($data);