面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/9528319
json
{
  "response": {
    "fps": 110,
    "fps_avg": 91,
    "entities_count": 116737,
    "world_seed": 1337,
    "world_size": 4500,
    "steam_id": "90286553280157702",
    "domain": null,
    "id": 9528319,
    "ip": "104.128.58.135",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Chicago",
    "description": "![LuffyRust Chicago USA - 10xPvP|BP-Share|Kits|Skins|Backpacks|an](https://www.luffyrust.com/img/headerimage/10xpvpheaderv4.png)\nLuffyRust Chicago USA - Bi-Weekly Wipe Noob Friendly Community\r\n· 10X PvP Skins BP-Share Kits Backpacks MyMini\r\n· Blueprint Sharing within teams / clans\r\n· Vote daily to get great rewards and levels /vote\r\n· Use /info to learn all about LuffyRust and commands\r\n· Noob Friendly Environment PLUS Active Staff\r\n· Join Discord https://discord.gg/luffynetwork\r\n· LuffyRust Website https://www.luffyrust.com",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779399819,
    "last_online": 1780552232,
    "icon": null,
    "name": "LuffyRust Chicago USA - 10xPvP|BP-Share|Kits|Skins|Backpacks|an",
    "connect": "104.128.58.135:28015",
    "request": "104.128.58.135:28016",
    "map": "https://discord.gg/luffynetwork",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1750538022,
    "last_update": 1780552232,
    "banned": false,
    "wipe": 1779399643,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3052,
    "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/9528319");
$data = json_decode($json, true);
var_dump($data);