JSON для программ, сайтов и прочего

text
https://api.gamemonitoring.ru/servers/11142889
json
{
  "response": {
    "channels": {
      "onlinecount": 123,
      "items": [
        {
          "clients": 0,
          "id": 97,
          "items": [],
          "name": "[spacerxrds0]",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 99,
          "items": [],
          "name": "[*spacer5]━",
          "order": 1,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 3,
          "items": [],
          "name": "[cspacer0]TSGA.PL / Gameaddiction.pl",
          "order": 2,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 4,
          "items": [],
          "name": "[cspacer101]Rekord serwera - 32",
          "order": 3,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 46,
          "items": [],
          "name": "[cspacer]Online - X/32",
          "order": 4,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 570,
          "items": [],
          "name": "[spacererrrr0]",
          "order": 5,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 92,
          "items": [],
          "name": "[cspacer]Ile godzin spędziłeś na TS?",
          "order": 6,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 59,
          "items": [],
          "name": "[*spacerfrr]━",
          "order": 7,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 6,
          "items": [],
          "name": "[cspacer0]Regulamin",
          "order": 8,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 567,
          "items": [],
          "name": "[spacer4354334520]",
          "order": 9,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 17,
          "items": [],
          "name": "[*spacer1]━",
          "order": 11,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 13,
          "items": [],
          "name": "Kanał Prywatny",
          "order": 12,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 14,
          "items": [],
          "name": "Chciałbym otrzymać rangę...",
          "order": 13,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 441,
          "items": [],
          "name": "[spacerfff3f0]",
          "order": 14,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 60,
          "items": [],
          "name": "[*spacer7]━",
          "order": 15,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 140,
          "items": [],
          "name": "[cspacer0x]",
          "order": 17,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 7,
          "items": [],
          "name": "[cspacer0]  Administracja",
          "order": 18,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 561,
          "items": [],
          "name": "[*spacer8]━",
          "order": 20,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 25,
          "items": [
            {
              "clients": 0,
              "id": 158,
              "items": [],
              "name": "Kanał 1",
              "order": 0,
              "parent_id": 25,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 195,
              "items": [],
              "name": "Kanał 2",
              "order": 158,
              "parent_id": 25,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 360,
              "items": [],
              "name": "Kanał 3",
              "order": 195,
              "parent_id": 25,
              "topic": ""
            }
          ],
          "name": "Kanały 3 osobowe",
          "order": 21,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 29,
          "items": [
            {
              "clients": 0,
              "id": 147,
              "items": [],
              "name": "Kanał 1",
              "order": 0,
              "parent_id": 29,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 169,
              "items": [],
              "name": "Kanał 2",
              "order": 147,
              "parent_id": 29,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 359,
              "items": [],
              "name": "Kanał 3",
              "order": 169,
              "parent_id": 29,
              "topic": ""
            }
          ],
          "name": "Kanały 4 osobowe",
          "order": 25,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 33,
          "items": [
            {
              "clients": 0,
              "id": 230,
              "items": [],
              "name": "Kanał 1",
              "order": 0,
              "parent_id": 33,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 232,
              "items": [],
              "name": "Kanał 2",
              "order": 230,
              "parent_id": 33,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 358,
              "items": [],
              "name": "Kanał 3",
              "order": 232,
              "parent_id": 33,
              "topic": ""
            }
          ],
          "name": "Kanały 5 osobowe",
          "order": 29,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 565,
          "items": [],
          "name": "[spacersdadadsadsad0]",
          "order": 33,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 40,
          "items": [],
          "name": "[cspacer] Strefa Prywatna",
          "order": 38,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 713,
          "items": [],
          "name": "[cspacer23] Informacje",
          "order": 40,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 8,
          "items": [],
          "name": "[*spacers]━",
          "order": 46,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 49,
          "items": [],
          "name": "Tyralnia",
          "order": 47,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 50,
          "items": [],
          "name": "Rozmowy telefoniczne",
          "order": 49,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 15,
          "items": [],
          "name": "[spacer0]",
          "order": 50,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 21,
          "items": [
            {
              "clients": 0,
              "id": 1140,
              "items": [],
              "name": "Kanał 1",
              "order": 0,
              "parent_id": 21,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 357,
              "items": [],
              "name": "Kanal 3",
              "order": 151,
              "parent_id": 21,
              "topic": ""
            },
            {
              "clients": 2,
              "id": 151,
              "items": [],
              "name": "Kanał 2",
              "order": 1140,
              "parent_id": 21,
              "topic": ""
            }
          ],
          "name": "Kanały 2 osobowe",
          "order": 51,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 489,
          "items": [],
          "name": "[spacerrrrr0]",
          "order": 59,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 20,
          "items": [],
          "name": "[cspacer] Strefa Publiczna",
          "order": 60,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 5,
          "items": [],
          "name": "[*spacerrrrrrr0]━",
          "order": 91,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 91,
          "items": [],
          "name": "[cspacer]komenda !onlinetime do BOT2",
          "order": 92,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 679,
          "items": [],
          "name": "[spacer0gjgff]",
          "order": 93,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2,
          "items": [],
          "name": "[*spacerrrrrr]━",
          "order": 97,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 416,
          "items": [],
          "name": "[cspacer]TSGA.PL",
          "order": 98,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 415,
          "items": [],
          "name": "[spacerfddfdf4s0]",
          "order": 99,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 18,
          "items": [],
          "name": "[*spacerasdadr]━",
          "order": 128,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 9,
          "items": [
            {
              "clients": 0,
              "id": 103,
              "items": [],
              "name": "Włodarz główny",
              "order": 0,
              "parent_id": 9,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 105,
              "items": [],
              "name": "Muzyczka",
              "order": 103,
              "parent_id": 9,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 714,
              "items": [],
              "name": "Tajne Posiedzenia",
              "order": 105,
              "parent_id": 9,
              "topic": ""
            }
          ],
          "name": "[spacer]JackM_101 - [Właściciel]",
          "order": 130,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 12,
          "items": [],
          "name": "Pytanie do Admina",
          "order": 140,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 47,
          "items": [],
          "name": "Muzyka",
          "order": 141,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 11,
          "items": [],
          "name": "[cspacer]Pomoc Techniczna",
          "order": 404,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 571,
          "items": [],
          "name": "[spacerererreererr0]",
          "order": 405,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 488,
          "items": [],
          "name": "[spacerdsadsar0]",
          "order": 415,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 1,
          "items": [],
          "name": "[cspacer]  Witaj na serwerze!",
          "order": 416,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 141,
          "items": [],
          "name": "Tutaj znajdziesz stacje radiowe do bota!",
          "order": 426,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 708,
          "items": [
            {
              "clients": 0,
              "id": 709,
              "items": [],
              "name": "Ministranci",
              "order": 0,
              "parent_id": 708,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 711,
              "items": [],
              "name": "Zaczarowany burdel",
              "order": 709,
              "parent_id": 708,
              "topic": ""
            }
          ],
          "name": "7. Kolęda Proboszcza",
          "order": 437,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 98,
          "items": [],
          "name": "[*spacer4]━",
          "order": 441,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 454,
          "items": [],
          "name": "[*spacerrr]━",
          "order": 452,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 452,
          "items": [],
          "name": "[cspacer788]Strefa tymczasowa",
          "order": 453,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 673,
          "items": [],
          "name": "[spacer0wer]",
          "order": 454,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 564,
          "items": [],
          "name": "[spacer2342414210]",
          "order": 456,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 668,
          "items": [],
          "name": "[cspacer0] AFK",
          "order": 488,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 568,
          "items": [],
          "name": "[spaceraar0]",
          "order": 489,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 691,
          "items": [
            {
              "clients": 0,
              "id": 692,
              "items": [],
              "name": "1.SSSSSS",
              "order": 0,
              "parent_id": 691,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 694,
              "items": [],
              "name": "2.",
              "order": 692,
              "parent_id": 691,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 695,
              "items": [],
              "name": "3.",
              "order": 694,
              "parent_id": 691,
              "topic": ""
            }
          ],
          "name": "4. Kręgielnia",
          "order": 499,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 566,
          "items": [],
          "name": "[spacerrrrrrr]",
          "order": 561,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 580,
          "items": [
            {
              "clients": 0,
              "id": 581,
              "items": [],
              "name": "KMW",
              "order": 0,
              "parent_id": 580,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 582,
              "items": [],
              "name": "2.",
              "order": 581,
              "parent_id": 580,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 583,
              "items": [],
              "name": "3.",
              "order": 582,
              "parent_id": 580,
              "topic": ""
            }
          ],
          "name": "1.",
          "order": 564,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 38,
          "items": [],
          "name": "[*spacer10]━",
          "order": 565,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 51,
          "items": [
            {
              "clients": 0,
              "id": 148,
              "items": [],
              "name": "Kanał 1",
              "order": 0,
              "parent_id": 51,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 161,
              "items": [],
              "name": "Kanał 2",
              "order": 148,
              "parent_id": 51,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 310,
              "items": [],
              "name": "Kanał 3",
              "order": 161,
              "parent_id": 51,
              "topic": ""
            }
          ],
          "name": "Kanały Nielimitowane",
          "order": 566,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 93,
          "items": [
            {
              "clients": 0,
              "id": 94,
              "items": [],
              "name": "1",
              "order": 0,
              "parent_id": 93,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 95,
              "items": [],
              "name": "2",
              "order": 94,
              "parent_id": 93,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 96,
              "items": [],
              "name": "Lobby",
              "order": 95,
              "parent_id": 93,
              "topic": ""
            }
          ],
          "name": "[spacer] (Rekrutacja)  [Server Admin]",
          "order": 567,
          "parent_id": 0,
          "topic": " "
        },
        {
          "clients": 0,
          "id": 130,
          "items": [],
          "name": "[spacerek]",
          "order": 568,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 603,
          "items": [],
          "name": "[spacerxddsad0]",
          "order": 569,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 128,
          "items": [],
          "name": "[spacerspacja0]",
          "order": 570,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 569,
          "items": [],
          "name": "[spacer0rrrrrrr]",
          "order": 571,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 675,
          "items": [
            {
              "clients": 0,
              "id": 676,
              "items": [],
              "name": "🤍 🥰 🔥 Krzysztof to je*nie 🔥 🥰 💚",
              "order": 0,
              "parent_id": 675,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 677,
              "items": [],
              "name": "🤍 🐍  Zyglatorka🐍 💚",
              "order": 676,
              "parent_id": 675,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 678,
              "items": [],
              "name": "🤍 🤬😭😴 Bida😴😭🤬 💚",
              "order": 677,
              "parent_id": 675,
              "topic": ""
            }
          ],
          "name": "2. ★ ✈ ⭐  Odklejeni ⭐ ✈  ★",
          "order": 580,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 405,
          "items": [],
          "name": "[spacerspacja02]",
          "order": 584,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 404,
          "items": [],
          "name": "[*spacer]━",
          "order": 603,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 426,
          "items": [],
          "name": "[spacer0ffffffffffff]",
          "order": 668,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 499,
          "items": [
            {
              "clients": 0,
              "id": 500,
              "items": [],
              "name": "HALO KTO PODPALIŁ",
              "order": 0,
              "parent_id": 499,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 501,
              "items": [],
              "name": "JA NIE WIEM KTO PODPALIL",
              "order": 500,
              "parent_id": 499,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 502,
              "items": [],
              "name": "JUZ SIE DOPALA",
              "order": 501,
              "parent_id": 499,
              "topic": ""
            }
          ],
          "name": "3. Bishop",
          "order": 675,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 584,
          "items": [
            {
              "clients": 0,
              "id": 656,
              "items": [],
              "name": "1",
              "order": 0,
              "parent_id": 584,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 657,
              "items": [],
              "name": "2",
              "order": 656,
              "parent_id": 584,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 658,
              "items": [],
              "name": "3",
              "order": 657,
              "parent_id": 584,
              "topic": ""
            }
          ],
          "name": "[spacer] (Rekrutacja) - [Admin]",
          "order": 679,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 696,
          "items": [
            {
              "clients": 0,
              "id": 697,
              "items": [],
              "name": "1",
              "order": 0,
              "parent_id": 696,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 698,
              "items": [],
              "name": "2.",
              "order": 697,
              "parent_id": 696,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 699,
              "items": [],
              "name": "3.",
              "order": 698,
              "parent_id": 696,
              "topic": ""
            }
          ],
          "name": "5. Elorafaelo",
          "order": 691,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 705,
          "items": [
            {
              "clients": 0,
              "id": 707,
              "items": [],
              "name": "Topic",
              "order": 0,
              "parent_id": 705,
              "topic": ""
            }
          ],
          "name": "6. ARK",
          "order": 696,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 437,
          "items": [],
          "name": "[spacer0tt]",
          "order": 705,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 950,
          "items": [],
          "name": "[spaceredrtghj0]",
          "order": 708,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 456,
          "items": [],
          "name": "[*spacer9]━",
          "order": 713,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 953,
          "items": [],
          "name": "[spacerdcdcdcdcr0]",
          "order": 948,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 948,
          "items": [],
          "name": "8. Orko totoszko",
          "order": 950,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 954,
          "items": [],
          "name": "9.Bajzel & Bonzo",
          "order": 953,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 960,
          "items": [],
          "name": "[spacert7t78t0]",
          "order": 954,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 961,
          "items": [],
          "name": "10. KULAWY CS",
          "order": 960,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 453,
          "items": [],
          "name": "[*spacerr]━",
          "order": 961,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "ZJV2ANRVMr7d8vNdW/ujSKLIWhA=",
    "platform": "Linux",
    "created": 1554536926,
    "uptime": 39494027,
    "steam_id": null,
    "domain": null,
    "id": 11142889,
    "ip": "51.68.143.107",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Warsaw",
    "description": "Witaj, zapraszamy na stronę serwera https://gameaddiction.pl\nRekrutacja na opiekuna została otwarta. Zapraszamy do kontaktu z JackM_101 i Storm",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1770933678,
    "score": 0,
    "last_online": 1776897616,
    "icon": null,
    "name": "TSGA.PL i Gameaddiction.pl - Serwer dla graczy",
    "connect": "51.68.143.107:9987",
    "request": "51.68.143.107:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 3,
    "maxplayers": 32,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "PL",
    "status": true,
    "votes": 0,
    "points": 67,
    "add_date": 1770933678,
    "last_update": 1776897616,
    "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": 71,
    "language": "pl",
    "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.ru/servers/11142889");
$data = json_decode($json, true);
var_dump($data);