面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11645131
json
{
  "response": {
    "fps": 56,
    "fps_avg": 56,
    "entities_count": 50117,
    "world_seed": 0,
    "world_size": 3500,
    "steam_id": "90286604355912733",
    "domain": null,
    "id": 11645131,
    "ip": "66.51.96.70",
    "port": 28050,
    "query": 28051,
    "color": 0,
    "city": "Ashburn",
    "description": "![RustyOG Hardcore PvE | 3500 Map | Zombies | Skills | Survival](https://images.rustyog.net/image/rog%20hc%20color.png)\nRustyOG Hardcore PvE\r\n\r\nA tougher RustyOG experience on smaller 3500 maps.\r\n\r\n- Custom zombie NPCs & roaming threats\r\n- Slower RPG-style skill progression\r\n- Hardcore-balanced PvE events\r\n- Raidable bases & survival-focused content\r\n- Balanced RP shop with wipe-based progression\r\n- Reduced loot shortcuts\r\n- Smaller map, more danger, less empty running\r\n\r\nHardcore PvE-focused\r\nSolo & small group friendly\r\nActive, fair admins\r\nBuilt for older / mature Rust players\r\n\r\nWebsite: rustyog.net\r\nDiscord: discord.gg/rustyog\r\n\r\nScavenge. Survive. Adapt.\r\nRust — with the training wheels removed.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780596862,
    "last_online": 1780644026,
    "icon": null,
    "name": "RustyOG Hardcore PvE | 3500 Map | Zombies | Skills | Survival",
    "connect": "66.51.96.70:28050",
    "request": "66.51.96.70:28051",
    "map": "Procedural Map",
    "gamemode": "Hardcore",
    "version": "2627",
    "numplayers": 1,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1780177448,
    "last_update": 1780644026,
    "banned": false,
    "wipe": 1780596842,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2346,
    "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/11645131");
$data = json_decode($json, true);
var_dump($data);