面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11759356
json
{
  "response": {
    "fps": 55,
    "fps_avg": 54,
    "entities_count": 99562,
    "world_seed": 8532762,
    "world_size": 4000,
    "steam_id": "90286840657702913",
    "domain": null,
    "id": 11759356,
    "ip": "92.118.16.90",
    "port": 28025,
    "query": 28026,
    "project_id": null,
    "color": 0,
    "city": "London",
    "description": "![[EU] Ryzen Rust | LINUX 10x loot (MyMini|Kits|HomeTP)](https://files.catbox.moe/b5znkv.png)\nWelcome to Ryzen Rust!\nNO PROFILE BANS, Account must not be new to play. Due to no EAC, this must be regulated.\n\n1. No cheating, talking about cheating, or calling out cheaters in chat!\n2. No toxicity.\n3. No racist names, pictures, or otherwise.\n\nUse /info ingame for more information! Enjoy.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780931710,
    "last_online": 1781346030,
    "icon": null,
    "name": "[EU] Ryzen Rust | LINUX 10x loot (MyMini|Kits|HomeTP)",
    "connect": "92.118.16.90:28025",
    "request": "92.118.16.90:28026",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 60,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780931710,
    "last_update": 1781346030,
    "banned": false,
    "wipe": 1780769786,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5949,
    "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/11759356");
$data = json_decode($json, true);
var_dump($data);