प्रोग्राम, वेबसाइट और अन्य के लिए JSON

text
https://api.gamemonitoring.in/servers/11252241
json
{
  "response": {
    "channels": {
      "onlinecount": 21,
      "items": [
        {
          "clients": 0,
          "id": 2,
          "items": [],
          "name": "[rspacer] © Since 2021",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 3,
          "items": [],
          "name": "[*spacer2]...",
          "order": 2,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 4,
          "items": [],
          "name": "[cspacer101]✅ MAIN CHANNEL - WELCOME ✅",
          "order": 3,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 5,
          "items": [
            {
              "clients": 2,
              "id": 6,
              "items": [],
              "name": "◘  Public 1 (MAX 2)",
              "order": 0,
              "parent_id": 5,
              "topic": ""
            },
            {
              "clients": 2,
              "id": 7,
              "items": [],
              "name": "◘  Public 2 (MAX 2)",
              "order": 6,
              "parent_id": 5,
              "topic": ""
            },
            {
              "clients": 2,
              "id": 8,
              "items": [],
              "name": "◘  Public 3 (MAX 2)",
              "order": 7,
              "parent_id": 5,
              "topic": ""
            }
          ],
          "name": "Public Channels",
          "order": 4,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 9,
          "items": [],
          "name": "[*spacer143]...",
          "order": 5,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 10,
          "items": [],
          "name": "[cspacer]Temporary Channels",
          "order": 9,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 11,
          "items": [],
          "name": "[*spacer113]...",
          "order": 10,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 750,
          "items": [],
          "name": "www",
          "order": 11,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 754,
          "items": [],
          "name": "kittensclub",
          "order": 750,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 757,
          "items": [],
          "name": "артур",
          "order": 754,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 759,
          "items": [],
          "name": "пупк",
          "order": 757,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 761,
          "items": [],
          "name": "win",
          "order": 759,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 762,
          "items": [],
          "name": "1234",
          "order": 761,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 763,
          "items": [],
          "name": "форт",
          "order": 762,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 765,
          "items": [],
          "name": "QWE",
          "order": 763,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 766,
          "items": [],
          "name": "111111111(rus) сверху дауны",
          "order": 765,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 768,
          "items": [],
          "name": "001",
          "order": 766,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 769,
          "items": [],
          "name": "солнце светит негры пашут",
          "order": 768,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "HbB/QWeHiYb0/kxSmPtsQuXmgQY=",
    "platform": "Linux",
    "created": 1773421635,
    "uptime": 3456854,
    "steam_id": null,
    "domain": null,
    "id": 11252241,
    "ip": "185.65.68.76",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Budapest",
    "description": "Welcome to TeamSpeak, check www.teamspeak.com for latest information",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776705799,
    "score": 0,
    "last_online": 1776886814,
    "icon": null,
    "name": "РУССКИЙ БЕСПЛАТНЫЙ ГОЛОСОВОЙ СЕРВЕР!",
    "connect": "185.65.68.76:9987",
    "request": "185.65.68.76:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 27,
    "maxplayers": 32,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "HU",
    "status": true,
    "votes": 0,
    "points": 93,
    "add_date": 1773483342,
    "last_update": 1776886814,
    "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": 35,
    "language": "hu",
    "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.in/servers/11252241");
$data = json_decode($json, true);
var_dump($data);