面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/1206419
json
{
  "response": {
    "fps": 175,
    "fps_avg": 170,
    "entities_count": 74514,
    "world_seed": 1774238186,
    "world_size": 4000,
    "steam_id": "90286416927117320",
    "domain": null,
    "id": 1206419,
    "ip": "198.133.237.51",
    "port": 28003,
    "query": 28013,
    "color": 0,
    "city": "Chicago",
    "description": "![Island of Dr Moreau | Map Wipe 5/30 | Solo/Duo/Trio](https://www.idmcommunity.com/images/IDM_Banner_v5.jpg)\n- Wipes: Day = Saturdays @ 12PM EST | Map = Weekly BPs = Bi-Weekly\r\n- Map Size: 3.7K\r\n- Minicopter Road Spawns\r\n- Aircraft Flight Ceiling: 300m\r\n- Incrased Node Spawns & Density (Including Animals)\r\n---\r\nRules:\r\n*Solo/Duo/Trio ONLY. Team Swaps are allowed.\r\n*Allies are not allowed in bases or autorized on base TCs/Externals.\r\n*Vanilla Team Size of 3 at any time.\r\n*Accounts VAC bans under 1 year are not permitted. (Auto-Ban)\r\n*No racism, hate speech, etc - of any form.\r\n*No Pings above 180ms (auto-kick)\r\n**Some Noob-Friendly Rules**\r\n**Detailed Noob-Friendly specific rules can\r\n be found in #info-and-rules on our Discord.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780224236,
    "last_online": 1780579242,
    "icon": null,
    "name": "Island of Dr Moreau | Map Wipe 5/30 | Solo/Duo/Trio",
    "connect": "198.133.237.51:28003",
    "request": "198.133.237.51:28013",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1691955303,
    "last_update": 1780579242,
    "banned": false,
    "wipe": 1780172423,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2549,
    "language": "en",
    "parked": false,
    "app": {
      "id": 252490,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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