JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11393323
json
{
  "response": {
    "channels": {
      "onlinecount": 90,
      "items": [
        {
          "clients": -1,
          "id": 42,
          "items": [],
          "name": "[*spacer1]_",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 46,
          "items": [],
          "name": "[*spacer3]=",
          "order": 1,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 52,
          "items": [],
          "name": "[*spacer100]=",
          "order": 20,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 44,
          "items": [
            {
              "clients": 1,
              "id": 164,
              "items": [],
              "name": "Шипилявня",
              "order": 0,
              "parent_id": 44,
              "topic": ""
            }
          ],
          "name": "[cspacer2]-٠•●✟ Welcome to Hell ✟●•٠-",
          "order": 42,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 1,
          "items": [
            {
              "clients": 2,
              "id": 167,
              "items": [],
              "name": "Комната 1",
              "order": 0,
              "parent_id": 1,
              "topic": ""
            },
            {
              "clients": 2,
              "id": 168,
              "items": [],
              "name": "Комната 2",
              "order": 167,
              "parent_id": 1,
              "topic": ""
            },
            {
              "clients": 2,
              "id": 169,
              "items": [],
              "name": "Комната 3",
              "order": 168,
              "parent_id": 1,
              "topic": ""
            },
            {
              "clients": 2,
              "id": 266,
              "items": [],
              "name": "Комната 4",
              "order": 169,
              "parent_id": 1,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 267,
              "items": [],
              "name": "Комната 5",
              "order": 266,
              "parent_id": 1,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 269,
              "items": [],
              "name": "Комната 6",
              "order": 267,
              "parent_id": 1,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 270,
              "items": [],
              "name": "Комната 7",
              "order": 269,
              "parent_id": 1,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 271,
              "items": [],
              "name": "Комната 9",
              "order": 270,
              "parent_id": 1,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 272,
              "items": [],
              "name": "Комната 10",
              "order": 271,
              "parent_id": 1,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 48,
              "items": [],
              "name": "Музыка",
              "order": 272,
              "parent_id": 1,
              "topic": ""
            }
          ],
          "name": "[cspacer]˜”*°•. Гостевая .•°*”˜",
          "order": 43,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 43,
          "items": [],
          "name": "[*spacer2]=",
          "order": 44,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 49,
          "items": [
            {
              "clients": 0,
              "id": 86,
              "items": [],
              "name": "ВОПРОСЫ ?????",
              "order": 0,
              "parent_id": 49,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 252,
              "items": [],
              "name": "NΞVΞR SΞTTLΞ",
              "order": 86,
              "parent_id": 49,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 9,
              "items": [],
              "name": "TOP SECRET (for Admin)",
              "order": 191,
              "parent_id": 49,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 191,
              "items": [],
              "name": "Тех. поддержка",
              "order": 252,
              "parent_id": 49,
              "topic": ""
            }
          ],
          "name": "[cspacer] ☜ Администрация ☞",
          "order": 46,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 50,
          "items": [],
          "name": "[*spacer4]=",
          "order": 49,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 204,
          "items": [
            {
              "clients": 0,
              "id": 207,
              "items": [],
              "name": "Комната 1",
              "order": 0,
              "parent_id": 204,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 208,
              "items": [],
              "name": "Комната 2",
              "order": 207,
              "parent_id": 204,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 210,
              "items": [],
              "name": "AFK",
              "order": 208,
              "parent_id": 204,
              "topic": ""
            }
          ],
          "name": "[cspacer]˜”*°•. SaqoKuban .•°*”˜",
          "order": 50,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 13,
          "items": [
            {
              "clients": 0,
              "id": 12,
              "items": [],
              "name": "Музыкa",
              "order": 0,
              "parent_id": 13,
              "topic": ""
            }
          ],
          "name": "[cspacer]˜”*°•. A F K .•°*”˜",
          "order": 52,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 65,
          "items": [],
          "name": "[*spacer10]=",
          "order": 64,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 233,
          "items": [
            {
              "clients": 0,
              "id": 241,
              "items": [],
              "name": "Личное",
              "order": 0,
              "parent_id": 233,
              "topic": "Выяснение отношений (разборки)"
            },
            {
              "clients": 0,
              "id": 239,
              "items": [],
              "name": "Хата 2",
              "order": 238,
              "parent_id": 233,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 240,
              "items": [],
              "name": "АФК",
              "order": 239,
              "parent_id": 233,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 238,
              "items": [],
              "name": "Хата 1",
              "order": 241,
              "parent_id": 233,
              "topic": ""
            }
          ],
          "name": "[cspacer]˜”*°•. Soul Eaters .•°*”˜",
          "order": 65,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 160,
          "items": [],
          "name": "[*spacer6]=",
          "order": 110,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 121,
          "items": [
            {
              "clients": 0,
              "id": 122,
              "items": [],
              "name": "Solo 1",
              "order": 0,
              "parent_id": 121,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 123,
              "items": [],
              "name": "Solo 2",
              "order": 122,
              "parent_id": 121,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 124,
              "items": [],
              "name": "Solo 3",
              "order": 123,
              "parent_id": 121,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 137,
              "items": [],
              "name": "Solo 4",
              "order": 124,
              "parent_id": 121,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 128,
              "items": [],
              "name": "DUO 2",
              "order": 125,
              "parent_id": 121,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 133,
              "items": [],
              "name": "SQUAD 1",
              "order": 128,
              "parent_id": 121,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 134,
              "items": [],
              "name": "SQUAD 2",
              "order": 133,
              "parent_id": 121,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 125,
              "items": [],
              "name": "DUO 1",
              "order": 137,
              "parent_id": 121,
              "topic": ""
            }
          ],
          "name": "[cspacer]☭PLAYERUNKNOWN'S BATTLEGROUNDS☭",
          "order": 116,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 177,
          "items": [],
          "name": "[*spacer9]=",
          "order": 121,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 116,
          "items": [],
          "name": "[*spacer7]=",
          "order": 156,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 156,
          "items": [
            {
              "clients": 0,
              "id": 161,
              "items": [],
              "name": "Party 1",
              "order": 0,
              "parent_id": 156,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 162,
              "items": [],
              "name": "Party 2",
              "order": 161,
              "parent_id": 156,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 170,
              "items": [],
              "name": "Party 3",
              "order": 162,
              "parent_id": 156,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 171,
              "items": [],
              "name": "Party 4",
              "order": 170,
              "parent_id": 156,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 245,
              "items": [],
              "name": "Какая-то комната",
              "order": 171,
              "parent_id": 156,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 242,
              "items": [],
              "name": "AFK",
              "order": 244,
              "parent_id": 156,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 244,
              "items": [],
              "name": "Пшли бы Вы лессом...",
              "order": 245,
              "parent_id": 156,
              "topic": ""
            }
          ],
          "name": "[cspacer]˜”*°•. L2team .•°*”˜",
          "order": 160,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 64,
          "items": [
            {
              "clients": 0,
              "id": 91,
              "items": [
                {
                  "clients": 0,
                  "id": 264,
                  "items": [],
                  "name": "СЗВ pass",
                  "order": 0,
                  "parent_id": 91,
                  "topic": ""
                }
              ],
              "name": "СЗВ",
              "order": 0,
              "parent_id": 64,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 213,
              "items": [],
              "name": "Steam",
              "order": 66,
              "parent_id": 64,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 68,
              "items": [],
              "name": "МУзыка",
              "order": 67,
              "parent_id": 64,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 212,
              "items": [],
              "name": "Space Engineers",
              "order": 91,
              "parent_id": 64,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 66,
              "items": [
                {
                  "clients": 0,
                  "id": 77,
                  "items": [
                    {
                      "clients": 0,
                      "id": 93,
                      "items": [
                        {
                          "clients": 0,
                          "id": 76,
                          "items": [],
                          "name": "Apex: Legends",
                          "order": 0,
                          "parent_id": 93,
                          "topic": ""
                        }
                      ],
                      "name": "MONSTER HUNTER: WORLD",
                      "order": 0,
                      "parent_id": 77,
                      "topic": ""
                    }
                  ],
                  "name": "Desert Eagle",
                  "order": 0,
                  "parent_id": 66,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 79,
                  "items": [
                    {
                      "clients": 0,
                      "id": 75,
                      "items": [],
                      "name": "Uplay",
                      "order": 0,
                      "parent_id": 79,
                      "topic": ""
                    }
                  ],
                  "name": "Staff",
                  "order": 77,
                  "parent_id": 66,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 229,
                  "items": [],
                  "name": "Battle.net",
                  "order": 79,
                  "parent_id": 66,
                  "topic": ""
                }
              ],
              "name": "Сервер ARK",
              "order": 212,
              "parent_id": 64,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 228,
              "items": [],
              "name": "Rockstar",
              "order": 213,
              "parent_id": 64,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 230,
              "items": [],
              "name": "EpicGames",
              "order": 228,
              "parent_id": 64,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 67,
              "items": [],
              "name": "AFK",
              "order": 230,
              "parent_id": 64,
              "topic": ""
            }
          ],
          "name": "[cspacer]˜”*°•. ARK .•°*”˜",
          "order": 177,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 211,
          "items": [],
          "name": "[*spacer5]=",
          "order": 204,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 110,
          "items": [
            {
              "clients": -1,
              "id": 251,
              "items": [],
              "name": "ПРАЙМ ТАЙМ (20:00-00:00)",
              "order": 0,
              "parent_id": 110,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 250,
              "items": [],
              "name": "Олимп (РАКИ В АТАКИ !!!11)",
              "order": 111,
              "parent_id": 110,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 223,
              "items": [
                {
                  "clients": 2,
                  "id": 258,
                  "items": [],
                  "name": "Территория спаривания",
                  "order": 0,
                  "parent_id": 223,
                  "topic": ""
                },
                {
                  "clients": -1,
                  "id": 263,
                  "items": [],
                  "name": "Дотеры хуже Олимперов",
                  "order": 258,
                  "parent_id": 223,
                  "topic": ""
                }
              ],
              "name": "HadesNebulae",
              "order": 172,
              "parent_id": 110,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 216,
              "items": [],
              "name": "Доброе утро, Вьетнам",
              "order": 214,
              "parent_id": 110,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 217,
              "items": [],
              "name": "Чё то я заебался",
              "order": 216,
              "parent_id": 110,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 112,
              "items": [],
              "name": "AFK",
              "order": 217,
              "parent_id": 110,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 172,
              "items": [],
              "name": "я тут но...",
              "order": 222,
              "parent_id": 110,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 224,
              "items": [],
              "name": "Комната 2",
              "order": 223,
              "parent_id": 110,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 214,
              "items": [],
              "name": "Movie",
              "order": 224,
              "parent_id": 110,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 222,
              "items": [],
              "name": "сплю....",
              "order": 250,
              "parent_id": 110,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 111,
              "items": [],
              "name": "13",
              "order": 251,
              "parent_id": 110,
              "topic": ""
            }
          ],
          "name": "[cspacer] ☜★☞ Team 13 ☜★☞",
          "order": 211,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 234,
          "items": [],
          "name": "[*spacer11]=",
          "order": 233,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 20,
          "items": [
            {
              "clients": 0,
              "id": 55,
              "items": [],
              "name": "Команда тьмы",
              "order": 0,
              "parent_id": 20,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 54,
              "items": [],
              "name": "Команда света",
              "order": 55,
              "parent_id": 20,
              "topic": ""
            }
          ],
          "name": "[cspacer]˜”*°•. Dota 2 .•°*”˜",
          "order": 234,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "YtU3KBxQvEcARKAEUtXFa9fg+C0=",
    "platform": "Linux",
    "created": 0,
    "uptime": 1625163,
    "steam_id": null,
    "domain": "ts.weba.ru",
    "id": 11393323,
    "ip": "37.153.0.104",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "St Petersburg",
    "description": "Добро пожаловать на TeamSpeak сервер, web сайт ts.weba.ru\n\n**<u>Администратор</u>:**\n[_13](client://18//5Be6D1TfQLFB/0VUFbqJScRQAc=~_13)\n\n **<u>Модераторы</u>:**\n(client://0/yz6GTgxVVqIj4arLfE2ImFZ07jQ=~Matrix)\n[Кетти](client://0/ZmP418J9177LsY46NgVraZ371RU=~%D0%9A%D0%B5%D1%82%D1%82%D0%B8)\n(client://11275/+VhFsKD6p0yGMZtWjLQ27jtgNyw=~iHa)\n\nПо всем вопросам обращайтесь к модераторам или администратору сервера.",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776090712,
    "score": 0,
    "last_online": 1776891616,
    "icon": null,
    "name": "TeamSpeak ]I[ Server",
    "connect": "ts.weba.ru:9987",
    "request": "37.153.0.104:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 11,
    "maxplayers": 32,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "RU",
    "status": true,
    "votes": 0,
    "points": 76,
    "add_date": 1774596803,
    "last_update": 1776891616,
    "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": 52,
    "language": "ru",
    "parked": false,
    "app": {
      "id": 1629110,
      "steam_id": 9000043,
      "name": "Teamspeak 3",
      "url": "teamspeak-3"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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