面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11511408
json
{
  "response": {
    "fps": 222,
    "fps_avg": 224,
    "entities_count": 95123,
    "world_seed": 1214497996,
    "world_size": 4000,
    "steam_id": 90286271386418180,
    "domain": null,
    "id": 11511408,
    "ip": "15.235.23.48",
    "port": 21298,
    "query": 21299,
    "color": 0,
    "city": "Montreal",
    "description": "![Shattered Earth 5x | Kits/Mini/Loot++ | Weekly](https://pb.rustdedicated.com/api/files/1pmot3sjdt94wfe/asn8nxfqqay3you/shattered_5x_uuw6b29otp.jpg)\nWelcome to Shattered Earth 5x / Loot++ / Clans.\r\n\r\n[Features]\r\n* Server shop /s\r\n* 5X Gather/Mining/Pickup\r\n* Instant crafting, recycle, airdrop\r\n* Fast sleeping bags and bed spawns\r\n* Always day time, quick smelting\r\n* Automatic Team Auth on TC & Turrets\r\n* Long workbench range, loot sorting button \r\n* Car spawns with parts\r\n* Auto split items in furnaces\r\n* Tier 1 & Electrical BPS unlocked\r\n* Share blueprints with players /bs help\r\n* Upgrade while building /bgrade 1-4\r\n* Safe distance trading /trade name\r\n* Personal minicopter /mymini\r\n* Clain kits /kit\r\n* Home Teleportation /home add name\r\n* Outpost and Bandit Teleport /otp, /bpt\r\n* Remove Tool /remove\r\nFor more information, join our discord server.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780552414,
    "last_online": 1779948026,
    "icon": null,
    "name": "Shattered Earth 5x | Kits/Mini/Loot++ | Weekly",
    "connect": "15.235.23.48:21298",
    "request": "15.235.23.48:21299",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 125,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CA",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779353846,
    "last_update": 1780552414,
    "banned": false,
    "wipe": 1778702929,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 11904,
    "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/11511408");
$data = json_decode($json, true);
var_dump($data);