面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11677624
json
{
  "response": {
    "fps": 156,
    "fps_avg": 159,
    "entities_count": 248657,
    "world_seed": 1,
    "world_size": 3500,
    "steam_id": "90286593712028684",
    "domain": null,
    "id": 11677624,
    "ip": "51.161.199.178",
    "port": 25596,
    "query": 25599,
    "color": 0,
    "city": "North Sydney",
    "description": "![[AU] Devine 10x | Kits | Clans | TP | Loot+ | Beta](https://cdn3.mapstr.gg/71104c7fe8c42942ca0f359223e1732e.png)\nWelcome to [AU] Devine 10x, a balanced 10x modded Rust experience designed for fast progression while keeping the survival and PvP feeling of vanilla. Whether you're solo, duo, or running a large clan, Devine 10x offers everything you need to dominate the island.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780577020,
    "last_online": 1780634428,
    "icon": null,
    "name": "[AU] Devine 10x | Kits | Clans | TP | Loot+ | Beta",
    "connect": "51.161.199.178:25596",
    "request": "51.161.199.178:25599",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 250,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "AU",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780216217,
    "last_update": 1780634428,
    "banned": false,
    "wipe": 1778330384,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5489,
    "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/11677624");
$data = json_decode($json, true);
var_dump($data);