面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/5234470
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 60701,
    "world_seed": 1166142245,
    "world_size": 3500,
    "steam_id": "90286588499994627",
    "domain": null,
    "id": 5234470,
    "ip": "92.118.19.60",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Dallas",
    "description": "![[US]The Fall - Vanilla|Monthly](https://i.imgur.com/KSp9wJe.jpg)\nFresh Starts, Fierce Competition: Monthly Vanilla Rust Server\r\n   + Monthly Map & Blueprint Wipes: Build empires, then conquer new frontiers every month!\r\n   + No Team Limit: Form massive alliances or forge your own legend as a lone wolf.\r\n   + Fair Play: Untainted Vanilla experience, managed by a non-playing admin.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470419,
    "last_online": 1780567828,
    "icon": null,
    "name": "[US]The Fall - Vanilla|Monthly",
    "connect": "92.118.19.60:28015",
    "request": "92.118.19.60:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1721207766,
    "last_update": 1780567828,
    "banned": false,
    "wipe": 1778176514,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2566,
    "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/5234470");
$data = json_decode($json, true);
var_dump($data);