面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11131344
json
{
  "response": {
    "fps": 94,
    "fps_avg": 90,
    "entities_count": 172571,
    "world_seed": 60,
    "world_size": 5500,
    "steam_id": "90286235258194959",
    "domain": null,
    "id": 11131344,
    "ip": "157.85.93.119",
    "port": 25115,
    "query": 25116,
    "color": 0,
    "city": "Dallas",
    "description": "Tired of getting on Vanilla Rust or some other high pop server and getting swacked\r\nCome on over and learn and enjoy the game.\r\nInstantCraft and Instant Recycle are turned on.\r\nRecyclers are located at all monuments and events.\r\nOfflines / Weekend Raids Only\r\nReport any violations via the report button or via the discord to Doc Hamburgler",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780591415,
    "last_online": 1779879023,
    "icon": null,
    "name": "Noob Friendly - Working Parents",
    "connect": "157.85.93.119:25115",
    "request": "157.85.93.119:25116",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 125,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1770397351,
    "last_update": 1780591415,
    "banned": false,
    "wipe": 1778196190,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 10729,
    "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/11131344");
$data = json_decode($json, true);
var_dump($data);