面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10534282
json
{
  "response": {
    "fps": 62,
    "fps_avg": 62,
    "entities_count": 108513,
    "world_seed": 2000244304,
    "world_size": 4500,
    "steam_id": "90286771576033288",
    "domain": null,
    "id": 10534282,
    "ip": "135.131.173.223",
    "port": 28015,
    "query": 28017,
    "project_id": null,
    "color": 0,
    "city": "Nampa",
    "description": "Rust server in Boise ID.\nRaiding zombie hordes, Recyclers on oil rigs and cargo ships. Stack sizes increased. 10x HQM out of the furnace. One second crate unlock. Superfast cooking and refining. Locks on helis and horses. Craftable recyclers (up to 2). Minis have spotlights and storage.\nDiscord: https://discord.gg/zUjJytbZAd",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780684464,
    "last_online": 1781343031,
    "icon": null,
    "name": "Rust Idaho. TruePVE,Zombie Hordes,Raidable Boats.",
    "connect": "135.131.173.223:28015",
    "request": "135.131.173.223:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1762518664,
    "last_update": 1781343031,
    "banned": false,
    "wipe": 1780684786,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3865,
    "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/10534282");
$data = json_decode($json, true);
var_dump($data);