面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11637409
json
{
  "response": {
    "channels": {
      "onlinecount": 10,
      "items": [
        {
          "clients": 1,
          "id": 1,
          "items": [],
          "name": "New IP: 45.131.64.79 or ts.u8g.net",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2,
          "items": [],
          "name": "[cspacer]📢 Server migrated 📢",
          "order": 1,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 3,
          "items": [],
          "name": "[cspacer]to improve our DDoS Protection.",
          "order": 2,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 4,
          "items": [],
          "name": "[cspacer] ⬇️ Join using ⬇️",
          "order": 3,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 5,
          "items": [],
          "name": "[cspacer]ts.u8g.net",
          "order": 4,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6,
          "items": [],
          "name": "[cspacer]u8g",
          "order": 5,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 8,
          "items": [],
          "name": "[cspacer]ts.ultim8gaming.net",
          "order": 6,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 9,
          "items": [],
          "name": "[cspacer]45.131.64.79",
          "order": 8,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 13,
          "items": [],
          "name": "[cspacer]___",
          "order": 9,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 4670,
          "items": [],
          "name": "twitch.tv/dawhel33t",
          "order": 13,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "1+JH3L5wuZ5EgoMjF+oxXgPwQ6M=",
    "platform": "Linux",
    "created": 1760497168,
    "uptime": 10080178,
    "steam_id": null,
    "domain": null,
    "id": 11637409,
    "ip": "109.71.253.52",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Gelnhausen",
    "description": "⚠️ New IP: ts.u8g.net or 45.131.64.79 ⚠️",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779917079,
    "last_online": 1780299625,
    "icon": null,
    "name": "Ultim8Gaming.net 🚨 NEW IP: ts.u8g.net or 45.131.64.79 🚨",
    "connect": "109.71.253.52:9987",
    "request": "109.71.253.52:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 2,
    "maxplayers": 32,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 63,
    "add_date": 1779917079,
    "last_update": 1780299625,
    "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": 89,
    "language": "de",
    "parked": false,
    "app": {
      "id": 1629110,
      "steam_id": 9000043,
      "name": "Teamspeak 3",
      "url": "teamspeak-3"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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