面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11502161
json
{
  "response": {
    "fps": 40,
    "fps_avg": 40,
    "entities_count": 99236,
    "world_seed": 1337,
    "world_size": 3500,
    "steam_id": 90286576441308180,
    "domain": null,
    "id": 11502161,
    "ip": "34.100.244.113",
    "port": 28018,
    "query": 28019,
    "color": 0,
    "city": "Mumbai",
    "description": "![[SEA/IND] Chai & Chaos 2X | Max 6 | Loot + | Skins | Bi-Weekly](https://i.imgur.com/mkznz8m.png)\nWelcome to Chai & Chaos 2X Server:\r\nOn our servers we provide the best Rust gameplay. We run multiple balanced plugins to improve the quality of the game. Our servers also run on the best Network & Hardware possible to improve your ingame experience on our servers!\r\n\r\n→ 2X Gather / Components / Scrap / Smelt / Crafting\r\n→ Extended Workbench Range\r\n→ Auto Turret Auth\r\n→ Team-Shared Blueprints\r\n→ Max Team Limit: 6\r\n→ Performance-Optimized with Low Latency Hosting\r\n→ Building Skins(For DLC Owned)\r\n→ Map Wipe: Bi-Weekly TUESDAY-FRIDAY 6.30PM IST\r\n→ BP Wipe: Every Force Wipe\r\n\r\nFor Ticketing System, Ingame Updates & Server Stats\r\nJoin Discord ↓ ↓",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780671200,
    "last_online": 1780591828,
    "icon": null,
    "name": "[SEA/IND] Chai & Chaos 2X | Max 6 | Loot + | Skins | Bi-Weekly",
    "connect": "34.100.244.113:28018",
    "request": "34.100.244.113:28019",
    "map": "Chai & Chaos FPS+ Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "IN",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779207192,
    "last_update": 1780671200,
    "banned": false,
    "wipe": 1780403051,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 10848,
    "language": "hi",
    "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/11502161");
$data = json_decode($json, true);
var_dump($data);