面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10741212
json
{
  "response": {
    "fps": 45,
    "fps_avg": 44,
    "entities_count": 23621,
    "world_seed": 0,
    "world_size": 6000,
    "steam_id": 90286749938257920,
    "domain": null,
    "id": 10741212,
    "ip": "209.126.2.184",
    "port": 28038,
    "query": 28041,
    "project_id": null,
    "color": 0,
    "city": "St Louis",
    "description": "![[US] Bluezone101 - 1x|FOW|Team Size: 4x|Alphaloot|Water|Boats](https://i.imgur.com/u6OAC7P.png)\nWelcome to Bluezone101!\r\n\r\n• 1x Gather Rate\r\n• Max Team Size: 4\r\n• AlphaLoot Loot Table\r\n• Boat Control Plugin\r\n• Raidable Boats Plugin\r\n• Fog Of War\r\n• Clans\r\n\r\nVisit (https://zonegaming.net/) for VIP",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780920261,
    "last_online": 1780944032,
    "icon": null,
    "name": "[US] Bluezone101 - 1x|FOW|Team Size: 4x|Alphaloot|Water|Boats",
    "connect": "209.126.2.184:28038",
    "request": "209.126.2.184:28041",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 10,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1766250811,
    "last_update": 1780944032,
    "banned": false,
    "wipe": 1780728859,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4316,
    "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/10741212");
$data = json_decode($json, true);
var_dump($data);