面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/9558045
json
{
  "response": {
    "steam_id": "85568392934862526",
    "domain": null,
    "id": 9558045,
    "ip": "216.201.73.185",
    "port": 9010,
    "query": 9010,
    "color": 0,
    "city": "Ashburn",
    "description": null,
    "game": 304930,
    "owner": null,
    "boosts": 1,
    "last_offline": 1774436520,
    "score": 0,
    "last_online": 1776123028,
    "icon": null,
    "name": "TamboClub Unturned",
    "connect": "216.201.73.185:9010",
    "request": "216.201.73.185:9010",
    "map": "Rio de Janeiro Remastered",
    "gamemode": null,
    "version": "3.26.1.1",
    "numplayers": 0,
    "maxplayers": 8,
    "bots": 0,
    "secured": true,
    "private": true,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1750585644,
    "last_update": 1776123028,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 248,
    "language": "en",
    "parked": false,
    "app": {
      "id": 48,
      "steam_id": 304930,
      "name": "Unturned",
      "url": "unturned"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/9558045");
$data = json_decode($json, true);
var_dump($data);