面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11606382
json
{
  "response": {
    "fps": 90,
    "fps_avg": 89,
    "entities_count": 65516,
    "world_seed": 1,
    "world_size": 3500,
    "steam_id": "90286454208759808",
    "domain": null,
    "id": 11606382,
    "ip": "178.63.123.235",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Falkenstein",
    "description": "![[ES] RUST IBERIA | Vanilla | Solo Españoles | Wipe 10/05](https://i.ibb.co/TwnSdCM/Rust-Header-Image-Raised.png)\nBienvenido a Rust Iberia.\\\r\n\\\r\nServidor 100% Vanilla orientado a la comunidad española.\\\r\n\\\r\n- Grupo: Solo/Duo/Trio\\\r\n- Mapa: Procedural (Tamaño 3500)\\\r\n- Normas: Respeto y juego limpio.\\\r\n- Admin Activo (No juega, solo vigila).",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779915469,
    "last_online": 1780557026,
    "icon": null,
    "name": "[ES] RUST IBERIA | Vanilla | Solo Españoles | Wipe 10/05",
    "connect": "178.63.123.235:28015",
    "request": "178.63.123.235:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779915469,
    "last_update": 1780557026,
    "banned": false,
    "wipe": 1778506151,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5356,
    "language": "de",
    "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/11606382");
$data = json_decode($json, true);
var_dump($data);