面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11607042
json
{
  "response": {
    "fps": 30,
    "fps_avg": 35,
    "entities_count": 91576,
    "world_seed": 0,
    "world_size": 4500,
    "steam_id": "90286293577714689",
    "domain": null,
    "id": 11607042,
    "ip": "91.229.114.107",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Chicago",
    "description": "![Project Rust Paradox | 1x | PvE/PvP | Noob Friendly](https://www.dropbox.com/scl/fi/1r1oq6idwgsrphbvg7fc3/paradox-city.png?rlkey=0j3s8m3diye4bnz4swn6lz32e&dl=1)\nBRAND NEW SERVER! | FOG OF WAR  | Monthly Wipes |  Custom Maps & Monuments | PvE with PvP Zones + PvP Islands | Clans 8 Max | Battlepass | 72hr Offline Raid Protection | Custom Loot | Kits | Skill Tree | Quests | Raid Bases | Zombies |  Server Shop | Skinbox | Custom Weapons | Medical Upgrades | Auto Doors | Auto Lock TC | Auto Upgrade/Repair  | Quests | No Vehicle Decay | Safezone TP | Daily Rewards | Voting Rewards | Recycler Prefabs | Safezone Recyclers |  RP Features | Sign Artist | Active Events | Discord Community | Constant Updates | Join Today!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780565016,
    "last_online": 1779993028,
    "icon": null,
    "name": "Project Rust Paradox | 1x | PvE/PvP | Noob Friendly",
    "connect": "91.229.114.107:28015",
    "request": "91.229.114.107:28017",
    "map": "Urban Warzone",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779915493,
    "last_update": 1780565016,
    "banned": false,
    "wipe": 1779628482,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 1,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 12290,
    "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/11607042");
$data = json_decode($json, true);
var_dump($data);