面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10534483
json
{
  "response": {
    "fps": 218,
    "fps_avg": 215,
    "entities_count": 81711,
    "world_seed": 2024799384,
    "world_size": 3750,
    "steam_id": "90286590210478095",
    "domain": null,
    "id": 10534483,
    "ip": "64.87.42.21",
    "port": 28015,
    "query": 2706,
    "color": 0,
    "city": "Chicago",
    "description": "![Dirty Dan's Rust Emporium | No Decay | 3x Gather | 3x Stack](https://www.dropbox.com/scl/fi/wacumk1atogr8g1d40m0l/Copilot_20260216_201829.png?rlkey=a426atwgz1gf8ptezpr1scyms&st=e5hi4054&dl=1)\n\r\nNew server Currently in testing phases.  Expect reboots sporadically as I tweak QOL settings and add new mods. (I'm also open to mod suggestions.)\r\nMini spawns, no decay, sort button, 2X Recycle, admin shop, shorter nights, longer days, 10min crate timers. \r\nWe are trying to maintain the essence of rust without the toxic experience.  A place where newer players can come learn the game a bit. \r\nAny suggestions or problems please join our discord at https://discord.gg/8TdDb3QD",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780294997,
    "last_online": 1780589436,
    "icon": null,
    "name": "Dirty Dan's Rust Emporium | No Decay | 3x Gather | 3x Stack",
    "connect": "64.87.42.21:28015",
    "request": "64.87.42.21:2706",
    "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": 1762518692,
    "last_update": 1780589436,
    "banned": false,
    "wipe": 1778236218,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3687,
    "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/10534483");
$data = json_decode($json, true);
var_dump($data);