面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11511811
json
{
  "response": {
    "fps": 256,
    "fps_avg": 256,
    "entities_count": 14818,
    "world_seed": 1434965,
    "world_size": 2000,
    "steam_id": "90286135355593755",
    "domain": null,
    "id": 11511811,
    "ip": "157.85.89.158",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "São Paulo",
    "description": "![ChicoRust - BR 2X SOLO/DUO](https://cdn.discordapp.com/attachments/760269041641193502/1497290298018234398/ChicoRust_Banner.png?ex=69ecfbc1server.headerimage)\nCHICORUST HOST BR 2X\r\nWIPES:\r\n\r\n- Quarta-feira 18h BRT\r\n- Sábados 13h BRT\r\nBlueprints Compartilhadas no TIME\r\nDiscord: https://discord.gg/mHKej3tAT",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779576808,
    "last_online": 1780579236,
    "icon": null,
    "name": "ChicoRust - BR 2X SOLO/DUO",
    "connect": "157.85.89.158:28015",
    "request": "157.85.89.158:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 40,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "BR",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779353865,
    "last_update": 1780579236,
    "banned": false,
    "wipe": 1779576918,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5261,
    "language": "pt",
    "parked": false,
    "app": {
      "id": 252490,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11511811");
$data = json_decode($json, true);
var_dump($data);