面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11759029
json
{
  "response": {
    "fps": 231,
    "fps_avg": 230,
    "entities_count": 35971,
    "world_seed": 1548614670,
    "world_size": 2500,
    "steam_id": "90286944708081667",
    "domain": null,
    "id": 11759029,
    "ip": "45.11.16.76",
    "port": 7002,
    "query": 26014,
    "project_id": null,
    "color": 0,
    "city": "Frankfurt am Main",
    "description": "[{\"id\":\"QHNWP81k-5\",\"type\":\"image\",\"data\":{\"caption\":\"\",\"withBorder\":false,\"withBackground\":true,\"stretched\":false,\"file\":{\"url\":\"https://cdn.gamemonitoring.net/images/content/cca16c21-3233-463f-b3d3-d46f5f790c48.webp\"}}},{\"id\":\"A1SqryzqH3\",\"type\":\"paragraph\",\"data\":{\"text\":\"🔥 IZUME RUST\\n\\n🗺 2500 Map\\n\\n🏛 Custom Monuments\\n\\n🔧 Exclusive Plugins & Unique Mechanics\\n\\n🎉 Unique Events (Soon)\\n\\n🛡 Active Staff Team\\n\\n💎 Balanced P2W\\n\\n♻ Map Wipe Every 14 Days\\n\\n📚 Blueprint Wipe Every Month\\n\\n🏗 Build • Raid • Survive\"}}]",
    "game": 252490,
    "owner": 199684,
    "boosts": 7,
    "last_offline": 1780931698,
    "last_online": 1781350211,
    "icon": null,
    "name": "Izume-Rust | Vanilla+ | NOLIMIT | FPS",
    "connect": "45.11.16.76:7002",
    "request": "45.11.16.76:26014",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 5,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 637,
    "add_date": 1780931698,
    "last_update": 1781350211,
    "banned": false,
    "wipe": 1781024812,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 10,
    "language": "en",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": {
      "username": "izume",
      "avatar": "4754849c-7f1a-4775-b515-a6b434b9c537.webp"
    },
    "mods": [
      {
        "id": 1139,
        "name": "Oxide"
      },
      {
        "id": 601,
        "name": "Car Tuning"
      },
      {
        "id": 1495,
        "name": "Vip System"
      }
    ],
    "disabled_modules": [
      "chat"
    ]
  }
}

代码示例

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