面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11759781
json
{
  "response": {
    "fps": 240,
    "fps_avg": 239,
    "entities_count": 37892,
    "world_seed": 1115,
    "world_size": 2700,
    "steam_id": "90286658556355590",
    "domain": null,
    "id": 11759781,
    "ip": "157.85.89.73",
    "port": 28015,
    "query": 28016,
    "project_id": null,
    "color": 0,
    "city": "São Paulo",
    "description": "![[AR/SA] Rust Simple | Mensual | Vanilla](https://rustsimple.sistemassimples.com.ar/rust/rustsimple_header_1024x512.png)\nRUST SIMPLE - Servidor Vanilla en Espanol\r\nWipe completo mensual en el force wipe\r\nMapa 2900 - Vanilla puro sin pay to win\r\nComunidad Argentina/LATAM - Bajo ping\r\nAnti-toxico - Admin activo y presente\r\nSumate y construi con nosotros",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780931734,
    "last_online": 1780956030,
    "icon": null,
    "name": "[AR/SA] Rust Simple | Mensual | Vanilla",
    "connect": "157.85.89.73:28015",
    "request": "157.85.89.73:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 75,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "BR",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780931734,
    "last_update": 1780956030,
    "banned": false,
    "wipe": 1780630050,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 6146,
    "language": "pt",
    "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/11759781");
$data = json_decode($json, true);
var_dump($data);