JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/10269688
json
{
  "response": {
    "channels": {
      "onlinecount": 86,
      "items": [
        {
          "clients": 1,
          "id": 31,
          "items": [],
          "name": "1st",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 827575,
          "items": [],
          "name": "Rez776",
          "order": 1,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 694627,
          "items": [],
          "name": "dota 3",
          "order": 8,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 8,
          "items": [],
          "name": "Секс по тимспику",
          "order": 31,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 59135,
          "items": [],
          "name": "M1x0ne",
          "order": 12804,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 72790,
          "items": [],
          "name": "Arena Breakout",
          "order": 59135,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 271911,
          "items": [],
          "name": "vikingRise400",
          "order": 72790,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 296179,
          "items": [],
          "name": "Багати ричи",
          "order": 271911,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 300976,
          "items": [],
          "name": "[cspacer] ~",
          "order": 271912,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 377613,
          "items": [],
          "name": "CHILLOUT ZONE",
          "order": 296179,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 300977,
          "items": [],
          "name": "[cspacer]",
          "order": 300976,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 1,
          "items": [],
          "name": "Spawn",
          "order": 300977,
          "parent_id": 0,
          "topic": "Default Channel has no topic"
        },
        {
          "clients": 0,
          "id": 391963,
          "items": [],
          "name": "Бубенцы",
          "order": 377613,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 399942,
          "items": [],
          "name": "bankai",
          "order": 391963,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 400271,
          "items": [],
          "name": "Hueta",
          "order": 399942,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 404905,
          "items": [],
          "name": "Veid",
          "order": 400271,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 415150,
          "items": [],
          "name": "ZHLRUSH",
          "order": 404905,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 450921,
          "items": [],
          "name": "Постоянный канал",
          "order": 415150,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 591971,
          "items": [],
          "name": "[cspacer][cspacer][cspacer][cspacer]",
          "order": 433956,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 571787,
          "items": [],
          "name": "Электричка \"Барнаул - Новокузнецк\"",
          "order": 450921,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 602351,
          "items": [],
          "name": "WPPL",
          "order": 571787,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 12804,
          "items": [],
          "name": "BetBoom",
          "order": 591918,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 433956,
          "items": [
            {
              "clients": 0,
              "id": 553327,
              "items": [],
              "name": "asd",
              "order": 0,
              "parent_id": 433956,
              "topic": ""
            }
          ],
          "name": "uWu",
          "order": 591970,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 591918,
          "items": [],
          "name": "etomuoperatoraostav",
          "order": 591971,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 606551,
          "items": [],
          "name": "🐸🐸🐸Шалашик🐸🐸🐸",
          "order": 602351,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 651667,
          "items": [],
          "name": "ХЭППИ ТРИ ФРЕНДС",
          "order": 606551,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 653705,
          "items": [],
          "name": "aziatki",
          "order": 651667,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 655879,
          "items": [],
          "name": "Bregan D'aerthe",
          "order": 653705,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 671273,
          "items": [],
          "name": "da da net net",
          "order": 655879,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 679358,
          "items": [],
          "name": "МожноАзачем",
          "order": 671273,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 684532,
          "items": [],
          "name": "Север",
          "order": 679358,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 701890,
          "items": [],
          "name": "poxuidobeg",
          "order": 684532,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 591970,
          "items": [],
          "name": "[cspacer][cspacer]",
          "order": 694627,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 726139,
          "items": [],
          "name": "MISTER",
          "order": 701890,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 730122,
          "items": [],
          "name": "Team LF",
          "order": 714313,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 714313,
          "items": [],
          "name": "Team HTN",
          "order": 726139,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 743809,
          "items": [],
          "name": "❌❌❌❌Faceit killer 2.0❌❌❌❌",
          "order": 730122,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 271912,
          "items": [],
          "name": "[cspacer][cspacer][cspacer]",
          "order": 743809,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 838948,
          "items": [],
          "name": "клоп",
          "order": 827575,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 847502,
          "items": [],
          "name": "🏆🏆🏆🏆🏆🏆🏆🏆🏆",
          "order": 838948,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 848759,
          "items": [],
          "name": "dodo",
          "order": 847502,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 848993,
          "items": [],
          "name": "жучара",
          "order": 848759,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 849134,
          "items": [],
          "name": "PUPAAAAAAAAAAAAAAAAAAAAA",
          "order": 848993,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 3,
          "id": 849222,
          "items": [],
          "name": "niger",
          "order": 849134,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 849366,
          "items": [],
          "name": "3333",
          "order": 849222,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 849379,
          "items": [],
          "name": "221",
          "order": 849366,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 849444,
          "items": [],
          "name": "БАУНТИ ТРИО КЛУБНИКА",
          "order": 849379,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 849451,
          "items": [],
          "name": "ПЧЕЛЫ",
          "order": 849444,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 849470,
          "items": [],
          "name": "ZALUPA",
          "order": 849451,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 849498,
          "items": [],
          "name": "джаз",
          "order": 849470,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 849829,
          "items": [],
          "name": "21312313",
          "order": 849498,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 849917,
          "items": [],
          "name": "дядя",
          "order": 849829,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 849968,
          "items": [],
          "name": "DM",
          "order": 849917,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 849974,
          "items": [],
          "name": "bebriki",
          "order": 849968,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 849977,
          "items": [],
          "name": "KPSS",
          "order": 849974,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 849979,
          "items": [],
          "name": "ЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖ",
          "order": 849977,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 4,
          "id": 849980,
          "items": [],
          "name": "67",
          "order": 849979,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 849981,
          "items": [],
          "name": "кс2тема",
          "order": 849980,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 849983,
          "items": [],
          "name": "Коллекционный магнат Иван",
          "order": 849981,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 849984,
          "items": [],
          "name": "okok",
          "order": 849983,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 849985,
          "items": [],
          "name": "ААААРРРРХХХХХХАААААААРРРРРРААААААА",
          "order": 849984,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 849986,
          "items": [],
          "name": "888",
          "order": 849985,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 849989,
          "items": [],
          "name": "2222222222222222222222222222222222222222",
          "order": 849986,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 3,
          "id": 849990,
          "items": [],
          "name": "nz",
          "order": 849989,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 849992,
          "items": [],
          "name": "Я_МакТрахер",
          "order": 849990,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 849994,
          "items": [],
          "name": "hfndsuifhdsiugfdhgfuigfdgfd",
          "order": 849992,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 849995,
          "items": [],
          "name": "1234",
          "order": 849994,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 850000,
          "items": [],
          "name": "❤️❤️❤️❤️",
          "order": 849995,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 850001,
          "items": [],
          "name": "ремацк",
          "order": 850000,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 850002,
          "items": [],
          "name": "Toksa",
          "order": 850001,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 850003,
          "items": [],
          "name": "snus",
          "order": 850002,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 850004,
          "items": [],
          "name": "связь",
          "order": 850003,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 850005,
          "items": [],
          "name": "caacaccacaac12",
          "order": 850004,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 850006,
          "items": [],
          "name": "покемоны",
          "order": 850005,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 850007,
          "items": [],
          "name": "@_@",
          "order": 850006,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 850009,
          "items": [],
          "name": "Безработные",
          "order": 850007,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 850010,
          "items": [],
          "name": "Liga_Pro",
          "order": 850009,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 850011,
          "items": [],
          "name": "asdd",
          "order": 850010,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 850012,
          "items": [],
          "name": "игры",
          "order": 850011,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 850013,
          "items": [],
          "name": "Залетай нах",
          "order": 850012,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 850014,
          "items": [],
          "name": "xxl",
          "order": 850013,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 850015,
          "items": [],
          "name": "кнцуегуешневолшrgjfkfm",
          "order": 850014,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 850016,
          "items": [],
          "name": "АГАТА",
          "order": 850015,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 850017,
          "items": [],
          "name": "777",
          "order": 850016,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 850018,
          "items": [],
          "name": "scaryzzz",
          "order": 850017,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "8a1+t1Q8dqV7xou5meHiOSRM4ZQ=",
    "platform": "Linux",
    "created": 1728679874,
    "uptime": 1231298,
    "steam_id": null,
    "domain": "you.are.bot",
    "id": 10269688,
    "ip": "5.42.211.211",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Moscow",
    "description": "Welcome to chasm\nНайти канал: CTRL + F => Название",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779235982,
    "last_online": 1780468813,
    "icon": null,
    "name": "chasm",
    "connect": "you.are.bot:9987",
    "request": "5.42.211.211:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 90,
    "maxplayers": 1500,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "RU",
    "status": true,
    "votes": 0,
    "points": 122,
    "add_date": 1757093024,
    "last_update": 1780468813,
    "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": 4,
    "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/10269688");
$data = json_decode($json, true);
var_dump($data);