面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11607069
json
{
  "response": {
    "fps": 115,
    "fps_avg": 113,
    "entities_count": 71336,
    "world_seed": 1521489270,
    "world_size": 3500,
    "steam_id": "90286589715799069",
    "domain": null,
    "id": 11607069,
    "ip": "216.105.171.130",
    "port": 28025,
    "query": 28027,
    "color": 0,
    "city": "Chicago",
    "description": "![*Freedom Lands* PREMIUM|1.5X|50% UP|QUAD MAX|PVP|RAID 4P-4AM](https://i.imgur.com/IMiC0uh.png)\nCall a spade a spade.\r\n\r\nWelcome to Freedom Lands 1.5X!\r\n\r\nServer Info:\r\n- 1.5x Gather\r\n- Vanilla Sulfur & HQM\r\n- Quad Max\r\n- Softcore\r\n- Premium Server\r\n- 50% Upkeep\r\n- PvP 24/7\r\n- Raid Window: 4PM - 4AM Eastern\r\n- Raid Protection: 4AM - 4PM Eastern\r\n- Monthly Wipe\r\n- Daily Restart: 6:00AM Eastern\r\n\r\nRules:\r\n- Max group size is 4\r\n- No teaming over the group limit\r\n- No cheating, scripting, exploiting, or ban evasion\r\n- Respect the raid window",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780567467,
    "last_online": 1780574435,
    "icon": null,
    "name": "*Freedom Lands* PREMIUM|1.5X|50% UP|QUAD MAX|PVP|RAID 4P-4AM",
    "connect": "216.105.171.130:28025",
    "request": "216.105.171.130:28027",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 70,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779915493,
    "last_update": 1780574435,
    "banned": false,
    "wipe": 1780567669,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5553,
    "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/11607069");
$data = json_decode($json, true);
var_dump($data);