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

text
https://api.gamemonitoring.in/servers/11429950
json
{
  "response": {
    "channels": {
      "onlinecount": 30,
      "items": [
        {
          "clients": 1,
          "id": 7,
          "items": [],
          "name": "-=][̲̲̅̅R̲̲̅̅a̲nk📊 Willkommen",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 26,
          "items": [
            {
              "clients": 0,
              "id": 27,
              "items": [],
              "name": "Team #1",
              "order": 0,
              "parent_id": 26,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 28,
              "items": [],
              "name": "Team #2",
              "order": 27,
              "parent_id": 26,
              "topic": ""
            }
          ],
          "name": "🔴-=][̲̲̅̅R̲̲̅̅a̲nk📊Battlefield 2142 🔴",
          "order": 1,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1,
          "items": [
            {
              "clients": 0,
              "id": 8,
              "items": [
                {
                  "clients": 0,
                  "id": 16,
                  "items": [],
                  "name": "Team #1",
                  "order": 0,
                  "parent_id": 8,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 9,
                  "items": [],
                  "name": "Team #2",
                  "order": 16,
                  "parent_id": 8,
                  "topic": ""
                }
              ],
              "name": "-=][̲̲̅̅R̲̲̅̅a̲nk📊 Matchmaking",
              "order": 0,
              "parent_id": 1,
              "topic": "Matchmaking"
            }
          ],
          "name": "🔴-=][̲̲̅̅R̲̲̅̅a̲nk📊-=WarmupServer=-🔴",
          "order": 2,
          "parent_id": 0,
          "topic": "Default Channel has no topic"
        },
        {
          "clients": 1,
          "id": 30,
          "items": [],
          "name": "faceit",
          "order": 5,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 13,
          "items": [],
          "name": "-=][̲̲̅̅R̲̲̅̅a̲nk📊  »Suche Mitspieler",
          "order": 7,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2,
          "items": [
            {
              "clients": 0,
              "id": 17,
              "items": [
                {
                  "clients": 0,
                  "id": 18,
                  "items": [],
                  "name": "Team #1",
                  "order": 0,
                  "parent_id": 17,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 19,
                  "items": [],
                  "name": "Team #2",
                  "order": 18,
                  "parent_id": 17,
                  "topic": ""
                }
              ],
              "name": "-=][̲̲̅̅R̲̲̅̅a̲nk📊 Matchmaking",
              "order": 0,
              "parent_id": 2,
              "topic": ""
            }
          ],
          "name": "🔴-=][̲̲̅̅R̲̲̅̅a̲nk📊GunGame🏠🔴",
          "order": 13,
          "parent_id": 0,
          "topic": "Default Channel has no topic"
        },
        {
          "clients": 0,
          "id": 5,
          "items": [
            {
              "clients": 0,
              "id": 20,
              "items": [],
              "name": "Raum #1",
              "order": 0,
              "parent_id": 5,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 22,
              "items": [],
              "name": "Raum #2",
              "order": 20,
              "parent_id": 5,
              "topic": ""
            }
          ],
          "name": "-=][̲̲̅̅R̲̲̅̅a̲nk📊  AFK Bereich",
          "order": 14,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 14,
          "items": [
            {
              "clients": 0,
              "id": 4,
              "items": [],
              "name": "-=][̲̲̅̅R̲̲̅̅a̲nk📊 Minecraft",
              "order": 0,
              "parent_id": 14,
              "topic": "Minecraft"
            },
            {
              "clients": 0,
              "id": 37,
              "items": [],
              "name": "Counterstrike 2",
              "order": 3,
              "parent_id": 14,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 3,
              "items": [],
              "name": "-=][̲̲̅̅R̲̲̅̅a̲nk📊  VIP Private Game",
              "order": 4,
              "parent_id": 14,
              "topic": "Counter-Strike 2"
            }
          ],
          "name": "-=][̲̲̅̅R̲̲̅̅a̲nk📊 • ● Private Area ● •",
          "order": 23,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 23,
          "items": [
            {
              "clients": 0,
              "id": 24,
              "items": [],
              "name": "Team #1",
              "order": 0,
              "parent_id": 23,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 25,
              "items": [],
              "name": "Team #2",
              "order": 24,
              "parent_id": 23,
              "topic": ""
            }
          ],
          "name": "🔴-=][̲̲̅̅R̲̲̅̅a̲nk📊Battlefield 2 🔴",
          "order": 26,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 31,
          "items": [],
          "name": "11",
          "order": 30,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 32,
          "items": [],
          "name": "Нормальный канал",
          "order": 31,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 34,
          "items": [],
          "name": "ta",
          "order": 32,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 40,
          "items": [],
          "name": "дейз",
          "order": 34,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 41,
          "items": [],
          "name": "Amir",
          "order": 40,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 52,
          "items": [],
          "name": "cscs",
          "order": 41,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "fwofn17vSuYAbDEWUtmzFu9U22E=",
    "platform": "Linux",
    "created": 1772308786,
    "uptime": 1056370,
    "steam_id": null,
    "domain": "hubcs.de",
    "id": 11429950,
    "ip": "87.106.94.33",
    "port": 9987,
    "query": null,
    "color": 0,
    "city": "Berlin",
    "description": "Counter-Strike 2 Statistiken aus mehreren Servern und verbindet sie zu einem gemeinsamen Rank-System. Egal auf welchem Server du spielst: XP, Kills, Wins und Fortschritt fließen in ein gemeinsames Profil ein. Ziel: ein kleines Netzwerk, ein durchgängiger Rang, weniger Chaos.",
    "game": 9000043,
    "owner": 184175,
    "boosts": 1,
    "last_offline": 1774910796,
    "score": 0,
    "last_online": 1776886814,
    "icon": null,
    "name": "-=][̲̲̅̅HubCS.de📊/\\\\",
    "connect": "hubcs.de:9987",
    "request": null,
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 2,
    "maxplayers": 32,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 94,
    "add_date": 1774910796,
    "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": true,
    "position_game": 32,
    "language": "ru",
    "parked": false,
    "app": {
      "id": 1629110,
      "steam_id": 9000043,
      "name": "Teamspeak 3",
      "url": "teamspeak-3"
    },
    "server_owner": {
      "username": "hubcs",
      "avatar": "9e6c0cf1-335b-4f44-9446-38060b24718e.png",
      "last_online": 1776876263
    },
    "mods": [],
    "disabled_modules": []
  }
}

कोड उदाहरण

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