面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11501001
json
{
  "response": {
    "fps": 92,
    "fps_avg": 92,
    "entities_count": 89599,
    "world_seed": 376967971,
    "world_size": 4000,
    "steam_id": "90284915259592732",
    "domain": null,
    "id": 11501001,
    "ip": "94.130.34.37",
    "port": 40432,
    "query": 40434,
    "color": 0,
    "city": "Falkenstein",
    "description": "![[EU] VORTEX | SOLO ONLY | NO BP WIPE | VANILLA | MONTHLY](https://i.imgur.com/lMUUoPW.png)\nWelcome to VORTEX |SOLO| Beginner friendly\r\n\r\n[RULES]\r\n* STRICTLY SOLO: Group Size 1\r\n* NO CHEATING: Zero tolerance for hacking/scripts\r\n* BE RESPECTFUL: No racism or extreme toxicity\r\n\r\n[SERVER INFO]\r\n* Map wipes every 1st Thursday of the month (Force Wipe). Blueprints (BPs) NEVER wipe!\r\n* EXPERIENCE: 100% Pure Vanilla 1x\r\n* Active non-playing admins\r\n\r\nDISCORD: [ https://discord.gg/MED9urJW2C ]",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470419,
    "last_online": 1780552827,
    "icon": null,
    "name": "[EU] VORTEX | SOLO ONLY | NO BP WIPE | VANILLA | MONTHLY",
    "connect": "94.130.34.37:40432",
    "request": "94.130.34.37:40434",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2623",
    "numplayers": 2,
    "maxplayers": 75,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1779207166,
    "last_update": 1780552827,
    "banned": false,
    "wipe": 1775855194,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1497,
    "language": "de",
    "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/11501001");
$data = json_decode($json, true);
var_dump($data);