面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10633492
json
{
  "response": {
    "steam_id": "90286238937029645",
    "domain": null,
    "id": 10633492,
    "ip": "89.28.237.19",
    "port": 28100,
    "query": 28101,
    "color": 0,
    "city": "Dallas",
    "description": "![APGAMING.GG | US 2x Vanilla+ Monthly](https://pub-b71a075f7c494709ab567e9a69aca93c.r2.dev/cdn/1778554625981-apgaming-header-calm.jpg)\nAPGAMING.GG | 2X Vanilla+ Quads · Monthly. discord.gg/apgaming · /infoWELCOME TO AP GAMING | 2x Vanilla RUST \r\n\r\n━━ THE EXPERIENCE ━━\r\nRust exactly as intended — no mods,",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779531211,
    "last_online": 1779811369,
    "icon": null,
    "name": "APGAMING.GG | US 2x Vanilla+ Monthly",
    "connect": "89.28.237.19:28100",
    "request": "89.28.237.19:28101",
    "map": "APGAMING.GG",
    "gamemode": "Rust",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 125,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1763713837,
    "last_update": 1779811369,
    "banned": false,
    "wipe": 1778197437,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3935,
    "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/10633492");
$data = json_decode($json, true);
var_dump($data);