JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/10454526
json
{
  "response": {
    "channels": {
      "onlinecount": 19,
      "items": [
        {
          "clients": 3,
          "id": 1,
          "items": [],
          "name": "AFK",
          "order": 0,
          "parent_id": 0,
          "topic": "ТИХО БЛ*ТЬ! ТУТ ЛЮДИ АФКАШАТ!"
        },
        {
          "clients": 0,
          "id": 734,
          "items": [],
          "name": "[spacer9]",
          "order": 1,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 841,
          "items": [],
          "name": "[spacer11]",
          "order": 84,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 743,
          "items": [],
          "name": "[spacer19]",
          "order": 91,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 735,
          "items": [],
          "name": "[spacer10]",
          "order": 733,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 733,
          "items": [],
          "name": "[cspacer2F4]• Обычные комнаты •",
          "order": 734,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 91,
          "items": [
            {
              "clients": 3,
              "id": 92,
              "items": [],
              "name": "Комната 1",
              "order": 0,
              "parent_id": 91,
              "topic": ""
            },
            {
              "clients": 3,
              "id": 93,
              "items": [],
              "name": "Комната 2",
              "order": 92,
              "parent_id": 91,
              "topic": ""
            },
            {
              "clients": 2,
              "id": 94,
              "items": [],
              "name": "Комната 3",
              "order": 93,
              "parent_id": 91,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 488,
              "items": [],
              "name": "Комната 4",
              "order": 94,
              "parent_id": 91,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 489,
              "items": [],
              "name": "Комната 5",
              "order": 488,
              "parent_id": 91,
              "topic": ""
            }
          ],
          "name": "Комнаты сервера",
          "order": 735,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 84,
          "items": [],
          "name": "[cspacer1F4]• Ваши комнаты •",
          "order": 743,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 53642,
          "items": [],
          "name": "чикибамбони",
          "order": 841,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 53645,
          "items": [],
          "name": "131313",
          "order": 53642,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 53648,
          "items": [],
          "name": "калнал",
          "order": 53645,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 53649,
          "items": [],
          "name": "52",
          "order": 53648,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 53651,
          "items": [],
          "name": "anus",
          "order": 53649,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 53654,
          "items": [],
          "name": "алексей",
          "order": 53651,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "KBWVGrxxzPSLpXS7drIUMe809jE=",
    "platform": "Linux",
    "created": 1556346431,
    "uptime": 8120487,
    "steam_id": null,
    "domain": null,
    "id": 10454526,
    "ip": "2.56.88.208",
    "port": 9987,
    "query": 10011,
    "color": 0,
    "city": "Moscow",
    "description": "HellaHost: https://servers.hellahost.ru (Хостинг виртуальных и выделенных серверов)\nHellaAnime: https://hellaanime.ovh (Аниме фильмы и сериалы)\nОсновной сервер (RU): ts.hellahost.ru\\r\nСервер в Германии: 45.146.252.140\\r\n\\r\nНаш сайт: https://servers.hellahost.ru\\r\nСайт с аниме: https://hellaanime.ovh",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1773810085,
    "score": 0,
    "last_online": 1776337812,
    "icon": null,
    "name": "HellaHost",
    "connect": "2.56.88.208:9987",
    "request": "2.56.88.208:10011",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 23,
    "maxplayers": 32,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "RU",
    "status": true,
    "votes": 0,
    "points": 97,
    "add_date": 1760035416,
    "last_update": 1776337812,
    "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": 13,
    "language": "ru",
    "parked": false,
    "app": {
      "id": 1629110,
      "steam_id": 9000043,
      "name": "Teamspeak 3",
      "url": "teamspeak-3"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

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