面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10805376
json
{
  "response": {
    "fps": 42,
    "fps_avg": 43,
    "entities_count": 113012,
    "world_seed": 1,
    "world_size": 4700,
    "steam_id": "90286606394536965",
    "domain": null,
    "id": 10805376,
    "ip": "91.229.114.175",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Chicago",
    "description": "![[US] EPIC PvE | RB | XP | RP | No Decay | No Raid | No Kill](https://i.postimg.cc/pd57xVDD/Epic_Image.png)\nWelcome to Epic PVE - Your Ultimate Building Paradise!\r\n\r\nNo Decay, No Raid, No Kill - Focus on creativity without the chaos. Build epic bases, farms, and artworks on vast, open land perfect for artistic souls.\r\n\r\nEvents for Action Lovers - Trigger-happy? Join thrilling events to scratch that combat itch!\r\n\r\nStarter Kit & Perks:\r\n- Type /kit in chat for a free starter kit (1 per wipe) - great for builders and fighters alike.\r\n- /mini to spawn a free, indestructible mini copter with unlimited fuel, and rockets!\r\n\r\nMore Commands:\r\n- /shop for all the goodies.\r\n- /stats to track your progress AND the leaderboard.\r\n- /s or /skin to open the Skinbox.\r\n- /info for more information and commands.\r\n\r\nPlus, tons of QOL plugins to make life easier - too many to list!\r\n\r\nCome enjoy your Epic Adventure on Epic PVE. See you in-game!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780601667,
    "last_online": 1780629024,
    "icon": null,
    "name": "[US] EPIC PvE | RB | XP | RP | No Decay | No Raid | No Kill",
    "connect": "91.229.114.175:28015",
    "request": "91.229.114.175:28017",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 12,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 66,
    "add_date": 1766921254,
    "last_update": 1780629024,
    "banned": false,
    "wipe": 1780602058,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 828,
    "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/10805376");
$data = json_decode($json, true);
var_dump($data);