GAME OVER \p REPUBLIC OF GAMER \p PUBLIC 的 API

面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11142917
json
{
  "response": {
    "channels": {
      "onlinecount": 45,
      "items": [
        {
          "clients": 0,
          "id": 9,
          "items": [],
          "name": "[*spacer0]═",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 17,
          "items": [],
          "name": "[*spacer70]═",
          "order": 1,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 36,
          "items": [],
          "name": "╠═ ● Aldebaran (2)",
          "order": 2,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 18,
          "items": [],
          "name": "╠═ ● Delphinus (3)",
          "order": 3,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1544,
          "items": [],
          "name": "╠═ ●  Hydrus (3)",
          "order": 4,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 39,
          "items": [],
          "name": "╠═ ● Proxima (4)",
          "order": 5,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 11,
          "items": [],
          "name": "[*spacer10]═",
          "order": 6,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 12,
          "items": [],
          "name": "[*spacer20]═",
          "order": 7,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 1,
          "items": [],
          "name": "[cspacer0] •:: L O B B Y ::•",
          "order": 9,
          "parent_id": 0,
          "topic": "Default Channel has no topic"
        },
        {
          "clients": 0,
          "id": 26,
          "items": [],
          "name": "[cspacer0]• • • PRIVATE • • •",
          "order": 11,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2,
          "items": [],
          "name": "╔═ ● Andromeda (∞)",
          "order": 15,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 15,
          "items": [],
          "name": "[cspacer0]• • • PUBLIC • • •",
          "order": 17,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 4,
          "items": [],
          "name": "╠═ ● Hercules (3)",
          "order": 18,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 32,
          "items": [],
          "name": "╠═ ● Nebula (4)",
          "order": 19,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 22,
          "items": [],
          "name": "╠═ ● Arcturus (2)",
          "order": 21,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 37,
          "items": [],
          "name": "╠═ ● Bellatrix (2)",
          "order": 22,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 24,
          "items": [],
          "name": "╠═ ● Camelopardalis (3)",
          "order": 23,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 30,
          "items": [],
          "name": "╠═ ● Canis Major (3)",
          "order": 24,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 47,
          "items": [],
          "name": "[cspacer0]• • • SUPPORT • • •",
          "order": 25,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 27,
          "items": [],
          "name": "╔═══ ● ADMIN I",
          "order": 26,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 28,
          "items": [],
          "name": "╠═══ ● ADMIN II",
          "order": 27,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 29,
          "items": [],
          "name": "╚═══ ● ADMIN III",
          "order": 28,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 25,
          "items": [],
          "name": "[*spacer100]═",
          "order": 29,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 3,
          "items": [],
          "name": "╠═ ● Cassiopeia (3)",
          "order": 30,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 19,
          "items": [],
          "name": "╠═ ● Libra (4)",
          "order": 31,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 38,
          "items": [],
          "name": "╠═ ● Pleione (4)",
          "order": 32,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 1546,
          "items": [],
          "name": "╠═ ● Vela (8)",
          "order": 33,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 35,
          "items": [],
          "name": "╠═ ● Reticulum (5)",
          "order": 34,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 372,
          "items": [],
          "name": "╠═ ● Sagittarius (6)",
          "order": 35,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 21,
          "items": [],
          "name": "╠═ ● Alpha Centauri (2)",
          "order": 36,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 23,
          "items": [],
          "name": "╠═ ● Boötes (2)",
          "order": 37,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 5,
          "items": [],
          "name": "╠═ ● Procyon (4)",
          "order": 38,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 34,
          "items": [],
          "name": "╠═ ● Regulus (5)",
          "order": 39,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1545,
          "items": [],
          "name": "╠═ ● Tucana (6)",
          "order": 40,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7,
          "items": [],
          "name": "[cspacer0] •:: A F K ::•",
          "order": 46,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 48,
          "items": [],
          "name": "╔═══ ● ROOM I",
          "order": 47,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 49,
          "items": [],
          "name": "╠═══ ● ROOM II",
          "order": 48,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 50,
          "items": [],
          "name": "╚═══ ● ROOM III",
          "order": 49,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 46,
          "items": [],
          "name": "[*spacer300]═",
          "order": 50,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6,
          "items": [],
          "name": "╚═ ● VY Canis Majoris (∞)",
          "order": 73,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 40,
          "items": [],
          "name": "╠═ ● Sirius (6)",
          "order": 372,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 4,
          "id": 73,
          "items": [],
          "name": "╠═ ● Volans (8)",
          "order": 1543,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 31,
          "items": [],
          "name": "╠═ ● Krypton (4)",
          "order": 1544,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 33,
          "items": [],
          "name": "╠═ ● Vega (6)",
          "order": 1545,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1543,
          "items": [],
          "name": "╠═ ● Vulpecula (8)",
          "order": 1546,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "2BOXwoty3EDRmXrnSQYhkvQ0qu0=",
    "platform": "Windows",
    "created": 1572327681,
    "uptime": 155138,
    "steam_id": null,
    "domain": null,
    "id": 11142917,
    "ip": "135.19.214.2",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Longueuil",
    "description": "This TeamSpeak 3 is free to use so check www.teamspeak.com/en/downloads/ for latest information. \n\nRegistered since 2013 \n\nMontreal, Canada server\n\nTEAMSPEAK 5 NOW OUT FOR DOWNLOAD\nteamspeak.com/en/downloads/#ts5\n03/11 electrical outage at 6am est this morning!   -- Panne de courant à 6h00 heure de l'Est ce matin ! --",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1770933678,
    "score": 0,
    "last_online": 1776898217,
    "icon": null,
    "name": "GAME OVER \\p REPUBLIC OF GAMER \\p PUBLIC",
    "connect": "135.19.214.2:9987",
    "request": "135.19.214.2:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 8,
    "maxplayers": 512,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "CA",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1770933678,
    "last_update": 1776898217,
    "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": 109,
    "language": "en",
    "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/11142917");
$data = json_decode($json, true);
var_dump($data);