面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10733835
json
{
  "response": {
    "channels": {
      "onlinecount": 11,
      "items": [
        {
          "clients": 1,
          "id": 1993,
          "items": [],
          "name": "[cspacerw2]💸💸💸💸💸",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2020,
          "items": [],
          "name": "TacticalGame",
          "order": 1,
          "parent_id": 0,
          "topic": "CounterStrike 2"
        },
        {
          "clients": 0,
          "id": 1994,
          "items": [],
          "name": "[cspacer5x](`*•.(`*•..•*´).•*´)",
          "order": 1993,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2064,
          "items": [],
          "name": "[cspacer1]IP наших серверов:",
          "order": 1994,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2063,
          "items": [],
          "name": "[cspacer] ts.lowtabclub.ru",
          "order": 1995,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2065,
          "items": [],
          "name": "[*spaceruJ]♥♡",
          "order": 1996,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 4214,
          "items": [],
          "name": "qqw",
          "order": 2020,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1996,
          "items": [],
          "name": "[cspacerpx](`*•.(`*•..•*´).•*´)",
          "order": 2063,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1995,
          "items": [],
          "name": "[cspacerkc]clan.lowtabclub.ru - вы здесь",
          "order": 2064,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 1,
          "items": [],
          "name": "Проходной двор",
          "order": 2065,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 4242,
          "items": [],
          "name": "faceit123",
          "order": 4214,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "0HtnIgi8ava1ZmoGbzN7fxxQJCw=",
    "platform": "Linux",
    "created": 1612461181,
    "uptime": 4226721,
    "steam_id": null,
    "domain": null,
    "id": 10733835,
    "ip": "193.233.49.105",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Novosibirsk",
    "description": "Администрация не несет ответсвенности за пользователей сервера.",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775760124,
    "score": 0,
    "last_online": 1776519018,
    "icon": null,
    "name": "LOWTABCLUB#2",
    "connect": "193.233.49.105:9987",
    "request": "193.233.49.105:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 5,
    "maxplayers": 32,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "RU",
    "status": true,
    "votes": 0,
    "points": 68,
    "add_date": 1765808386,
    "last_update": 1776519018,
    "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": 63,
    "language": "ru",
    "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/10733835");
$data = json_decode($json, true);
var_dump($data);