面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11261213
json
{
  "response": {
    "fps": 74,
    "fps_avg": 74,
    "entities_count": 96790,
    "world_seed": 1371793030,
    "world_size": 3500,
    "steam_id": "90286253341287424",
    "domain": null,
    "id": 11261213,
    "ip": "24.216.176.76",
    "port": 28021,
    "query": 28022,
    "color": 0,
    "city": "Lake Saint Louis",
    "description": "![Rust R Us 10x | Kits | Loot+ | Raidable bases | Skill Tree](https://dunb17ur4ymx4.cloudfront.net/webstore/favicons/d9ce0d31940065428c6fb456059a2efee0542913.png)\nRust R Us Server Informtion: \r\n \r\n Custom Raidable Bases with customized loot tables \r\n Offline Raid Protection \r\n Extended TC Range \r\n Skip Night \r\n Rewards \r\n Better TC \r\n Skill Tree \r\n MAX 10 Team size \r\n Free Skinbox \r\n Custom loot+ table removing all of the junk prefabs \r\n Placeable Recyclers \r\n Custom Outpost Shops \r\n recyclers at monuments \r\n faster airdrops, Faster smelting, Faster crafting, and Fast recycling \r\n Blueprint sharing \r\n bosses and events (Large rig, airfield event, dome and more) \r\n Active Admins \r\n Join our discord at: https://discord.gg/Xxp2KF9gh5",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778616781,
    "last_online": 1780553427,
    "icon": null,
    "name": "Rust R Us 10x | Kits | Loot+ | Raidable bases | Skill Tree",
    "connect": "24.216.176.76:28021",
    "request": "24.216.176.76:28022",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1774555226,
    "last_update": 1780553427,
    "banned": false,
    "wipe": 1778197099,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4360,
    "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/11261213");
$data = json_decode($json, true);
var_dump($data);