面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11725659
json
{
  "response": {
    "fps": 117,
    "fps_avg": 114,
    "entities_count": 147753,
    "world_seed": 1337,
    "world_size": 5000,
    "steam_id": "90286559599914004",
    "domain": null,
    "id": 11725659,
    "ip": "172.240.109.172",
    "port": 25605,
    "query": 25575,
    "color": 0,
    "city": "Ashburn",
    "description": "![PVE Zombies |Kits|Events|Backpack](https://cdn3.mapstr.gg/47dfdebb1aa3f9b0433353679010cbe1.png)\nPvE Zombies A modded Rust PvE server focused on zombies, progression, custom content, and chill smoke-friendly vibes 🌿💨 Fight through infected hordes ☠️, dangerous boss monsters 👹, abandoned bases 🏚️, and custom events ⚡ while building your base 🏠, growing custom weed crops 🌱, farming resources ⛏️, completing quests 📜, leveling skills 📈, and exploring a world far beyond vanilla Rust 🌍 🔥 Features: ☣️ Zombies & Boss Monsters 🌱 Custom Weed Crops ⚡ Events & Quests 📈 SkillTree Progression 🎒 Backpacks 🎟️ BattlePass 🎁 SkinBox 🏚️ Abandoned Bases 💰 Economy & Shop 🌾 Custom Farming ☣️ PvE Survival Content 🛠️ Active Development & More Whether you want to grind loot 💎, build a massive compound 🏰, run a grow operation 🌿, or survive the apocalypse with friends, nonstop PvE action with a unique wasteland atmosphere ☣️ 🌿 Survive. Build. Grow. Smoke. Repeat. 👉",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780497839,
    "last_online": 1780561232,
    "icon": null,
    "name": "PVE Zombies |Kits|Events|Backpack",
    "connect": "172.240.109.172:25605",
    "request": "172.240.109.172:25575",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 40,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780388556,
    "last_update": 1780561232,
    "banned": false,
    "wipe": 1780497812,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 6091,
    "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/11725659");
$data = json_decode($json, true);
var_dump($data);