JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11142900
json
{
  "response": {
    "channels": {
      "onlinecount": 98,
      "items": [
        {
          "clients": 1,
          "id": 1,
          "items": [],
          "name": "Гостевая / Guests",
          "order": 0,
          "parent_id": 0,
          "topic": "Default Channel has no topic"
        },
        {
          "clients": 0,
          "id": 23,
          "items": [],
          "name": "AFK ( ̄o ̄) zzZZzzZZ",
          "order": 1,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 33,
          "items": [
            {
              "clients": 0,
              "id": 34,
              "items": [],
              "name": "CS:GO Channel 1",
              "order": 0,
              "parent_id": 33,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 35,
              "items": [],
              "name": "CS:GO Channel 2",
              "order": 34,
              "parent_id": 33,
              "topic": ""
            }
          ],
          "name": "CS:GO",
          "order": 5,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 54,
          "items": [],
          "name": "[cspacer0]Advanced Mixed Games #1",
          "order": 14,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 14,
          "items": [],
          "name": "[*spacer1]___",
          "order": 23,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 76,
          "items": [],
          "name": "ПАНТЕРА РУМ",
          "order": 25,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 454,
          "items": [],
          "name": "Українська розвідка!",
          "order": 26,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 61,
          "items": [],
          "name": "Overwatch",
          "order": 33,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 126,
          "items": [],
          "name": "TaskForceRadio",
          "order": 38,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 84,
          "items": [],
          "name": "Приемная",
          "order": 40,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 85,
          "items": [
            {
              "clients": 0,
              "id": 86,
              "items": [],
              "name": "7 Days to die Channel 1",
              "order": 0,
              "parent_id": 85,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 87,
              "items": [],
              "name": "7 Days to die Channel 2",
              "order": 86,
              "parent_id": 85,
              "topic": ""
            }
          ],
          "name": "7 Days to die",
          "order": 43,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 95,
          "items": [
            {
              "clients": 0,
              "id": 96,
              "items": [],
              "name": "Курительная",
              "order": 0,
              "parent_id": 95,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 97,
              "items": [],
              "name": "Пидер рум (парилка)",
              "order": 96,
              "parent_id": 95,
              "topic": ""
            }
          ],
          "name": "На релаксе",
          "order": 46,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 120,
          "items": [],
          "name": "[cspacer0]☕ ПРАВИЛА☕",
          "order": 54,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 92,
          "items": [],
          "name": "[cspacer5]ИлитА",
          "order": 56,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 101,
          "items": [
            {
              "clients": 0,
              "id": 273,
              "items": [],
              "name": "Вас опять проДинамил ХТО-ТО из Тамбова.",
              "order": 0,
              "parent_id": 101,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 531,
              "items": [
                {
                  "clients": 0,
                  "id": 565,
                  "items": [],
                  "name": "Zа Украинцев Порву V Клочья",
                  "order": 0,
                  "parent_id": 531,
                  "topic": "„Коммунизм всецело противен духу украинской нации.“"
                }
              ],
              "name": "🤡  БЛЯДСКИЙ ЦИРК🤡",
              "order": 273,
              "parent_id": 101,
              "topic": ""
            }
          ],
          "name": "Комната петуха",
          "order": 57,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 584,
          "items": [],
          "name": "Русский военный корабль - иди нахуй",
          "order": 58,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 406,
          "items": [
            {
              "clients": 0,
              "id": 407,
              "items": [],
              "name": "Говнокодим",
              "order": 0,
              "parent_id": 406,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 225,
              "items": [
                {
                  "clients": 0,
                  "id": 410,
                  "items": [],
                  "name": "Компілюємо",
                  "order": 0,
                  "parent_id": 225,
                  "topic": ""
                }
              ],
              "name": "ШТIРЛИЦЬ",
              "order": 407,
              "parent_id": 406,
              "topic": ""
            }
          ],
          "name": "Ойтішники 👩‍💻",
          "order": 60,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 63,
          "items": [],
          "name": "Overwatch Channel 1",
          "order": 61,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 70,
          "items": [],
          "name": "Overwatch Channel 2",
          "order": 63,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 60,
          "items": [
            {
              "clients": 0,
              "id": 62,
              "items": [],
              "name": "ArmA 3 Channel 1",
              "order": 0,
              "parent_id": 60,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 64,
              "items": [],
              "name": "ArmA 3 Channel 2",
              "order": 62,
              "parent_id": 60,
              "topic": ""
            }
          ],
          "name": "ArmA 3",
          "order": 65,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 43,
          "items": [
            {
              "clients": 0,
              "id": 44,
              "items": [],
              "name": "PUBG Channel 1",
              "order": 0,
              "parent_id": 43,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 45,
              "items": [],
              "name": "PUBG Channel 2",
              "order": 44,
              "parent_id": 43,
              "topic": ""
            }
          ],
          "name": "PUBG",
          "order": 70,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 83,
          "items": [
            {
              "clients": 0,
              "id": 102,
              "items": [],
              "name": "TTT",
              "order": 0,
              "parent_id": 83,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 103,
              "items": [],
              "name": "SCP: Сикрет лаборатори)0",
              "order": 102,
              "parent_id": 83,
              "topic": ""
            }
          ],
          "name": "Garry's Mod",
          "order": 72,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 123,
          "items": [],
          "name": "ДУРКА",
          "order": 76,
          "parent_id": 0,
          "topic": "З ТАКИМИ ПРЕКОЛАМИ ТОБИ СЮДА"
        },
        {
          "clients": 0,
          "id": 89,
          "items": [],
          "name": "[*spacer0]___",
          "order": 83,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 57,
          "items": [],
          "name": "Участники проекта",
          "order": 84,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 203,
          "items": [
            {
              "clients": 0,
              "id": 204,
              "items": [],
              "name": "Pay Day 2 Channel 1",
              "order": 0,
              "parent_id": 203,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 205,
              "items": [],
              "name": "Pay Day 2 Channel 2",
              "order": 204,
              "parent_id": 203,
              "topic": ""
            }
          ],
          "name": "Pay Day 2",
          "order": 85,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 91,
          "items": [],
          "name": "[cspacer1]48 хромосом (◑‿◐)",
          "order": 89,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 5,
          "items": [
            {
              "clients": 0,
              "id": 31,
              "items": [],
              "name": "Dota 2 Channel 1",
              "order": 0,
              "parent_id": 5,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 32,
              "items": [],
              "name": "Dota 2 Channel 2",
              "order": 31,
              "parent_id": 5,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 151,
              "items": [],
              "name": "nazarov fiend room",
              "order": 32,
              "parent_id": 5,
              "topic": "ученики ZXCNAZAROVA"
            }
          ],
          "name": "Dota 2",
          "order": 91,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 367,
          "items": [],
          "name": "Рум Великого Челябинска",
          "order": 92,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 283,
          "items": [],
          "name": "Арена Гурубаши",
          "order": 93,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 38,
          "items": [],
          "name": "[*spacer4]___",
          "order": 95,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 58,
          "items": [
            {
              "clients": 0,
              "id": 59,
              "items": [],
              "name": "ЛЯСІК ШОК КОНТЕНТ 18+",
              "order": 0,
              "parent_id": 58,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 42,
              "items": [],
              "name": "BDSM RED ROOM",
              "order": 59,
              "parent_id": 58,
              "topic": ""
            }
          ],
          "name": "ВАЖНО ДЛЯ ЮЗВЕРЕЙ! (ノ◕ヮ◕)ノ",
          "order": 101,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 309,
          "items": [
            {
              "clients": 0,
              "id": 310,
              "items": [],
              "name": "Squad Channel 1",
              "order": 0,
              "parent_id": 309,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 311,
              "items": [],
              "name": "Squad Channel 2",
              "order": 310,
              "parent_id": 309,
              "topic": ""
            }
          ],
          "name": "Squad",
          "order": 113,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 462,
          "items": [],
          "name": "[*spacer12]___",
          "order": 120,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 46,
          "items": [
            {
              "clients": 0,
              "id": 47,
              "items": [],
              "name": "Team 1",
              "order": 0,
              "parent_id": 46,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 48,
              "items": [],
              "name": "Team 2",
              "order": 47,
              "parent_id": 46,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 593,
              "items": [],
              "name": "Team 3",
              "order": 48,
              "parent_id": 46,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 594,
              "items": [],
              "name": "Team 4",
              "order": 593,
              "parent_id": 46,
              "topic": ""
            }
          ],
          "name": "Стратежная",
          "order": 123,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 480,
          "items": [],
          "name": "WROT",
          "order": 203,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 25,
          "items": [],
          "name": "Zalupa Room",
          "order": 283,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 72,
          "items": [
            {
              "clients": 0,
              "id": 75,
              "items": [],
              "name": "DayZ Epoch",
              "order": 0,
              "parent_id": 72,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 74,
              "items": [],
              "name": "DayZ Standalone",
              "order": 75,
              "parent_id": 72,
              "topic": ""
            }
          ],
          "name": "DayZ",
          "order": 299,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 533,
          "items": [
            {
              "clients": 0,
              "id": 534,
              "items": [],
              "name": "МОЯ ЖИЗНЬ",
              "order": 0,
              "parent_id": 533,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 535,
              "items": [],
              "name": "Папкины строители, мамкины грабители",
              "order": 534,
              "parent_id": 533,
              "topic": ""
            }
          ],
          "name": "Minecraft",
          "order": 309,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 93,
          "items": [],
          "name": "Данмерское королевство, где норды сасут",
          "order": 367,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 26,
          "items": [
            {
              "clients": 0,
              "id": 27,
              "items": [],
              "name": "Казарма",
              "order": 0,
              "parent_id": 26,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 100,
              "items": [],
              "name": "Планування",
              "order": 12,
              "parent_id": 26,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 12,
              "items": [],
              "name": "Force Recon",
              "order": 27,
              "parent_id": 26,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 28,
              "items": [],
              "name": "ПЕРЕГОВОРНАЯ ННА",
              "order": 100,
              "parent_id": 26,
              "topic": ""
            }
          ],
          "name": "Squad WFA",
          "order": 406,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 113,
          "items": [
            {
              "clients": 0,
              "id": 114,
              "items": [],
              "name": "ЯМА 1",
              "order": 0,
              "parent_id": 113,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 115,
              "items": [],
              "name": "ЯМА 2",
              "order": 114,
              "parent_id": 113,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 116,
              "items": [],
              "name": "ЯМА 3",
              "order": 115,
              "parent_id": 113,
              "topic": ""
            }
          ],
          "name": "ВЫГРЕБНАЯ ЯМА",
          "order": 454,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 40,
          "items": [],
          "name": "Администрация",
          "order": 462,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 56,
          "items": [],
          "name": "[*spacer7]___",
          "order": 480,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 299,
          "items": [
            {
              "clients": 0,
              "id": 300,
              "items": [],
              "name": "Mordhau Channel 1",
              "order": 0,
              "parent_id": 299,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 301,
              "items": [],
              "name": "Mordhau Channel 2",
              "order": 300,
              "parent_id": 299,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 302,
              "items": [],
              "name": "Mordhau Training",
              "order": 301,
              "parent_id": 299,
              "topic": ""
            }
          ],
          "name": "Mordhau",
          "order": 533,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 585,
          "items": [],
          "name": "Доброго вечора, ми з України",
          "order": 584,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 596,
          "items": [],
          "name": "Phasmophobia",
          "order": 585,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 65,
          "items": [
            {
              "clients": 2,
              "id": 582,
              "items": [],
              "name": "КПП",
              "order": 0,
              "parent_id": 65,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 67,
              "items": [],
              "name": "Кімната ностальгії",
              "order": 66,
              "parent_id": 65,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 104,
              "items": [],
              "name": "Гурток \"Золоті міски\"",
              "order": 67,
              "parent_id": 65,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 598,
              "items": [],
              "name": "Берлога RAF",
              "order": 104,
              "parent_id": 65,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 66,
              "items": [],
              "name": "Ветерани",
              "order": 582,
              "parent_id": 65,
              "topic": ""
            }
          ],
          "name": "ArmA 2",
          "order": 596,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "qfh+Cm+f4Tz7Rn4mwDPO/jNupY4=",
    "platform": "Linux",
    "created": 1534314399,
    "uptime": 73494,
    "steam_id": null,
    "domain": null,
    "id": 11142900,
    "ip": "185.185.41.200",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Amsterdam",
    "description": "Welcome to AMG server",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1774235512,
    "score": 0,
    "last_online": 1776897017,
    "icon": null,
    "name": "Advanced Mixed Games #1",
    "connect": "185.185.41.200:9987",
    "request": "185.185.41.200:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 3,
    "maxplayers": 32,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "NL",
    "status": true,
    "votes": 0,
    "points": 64,
    "add_date": 1770933678,
    "last_update": 1776897017,
    "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": 92,
    "language": "nl",
    "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/11142900");
$data = json_decode($json, true);
var_dump($data);