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

text
https://api.gamemonitoring.in/servers/10481793
json
{
  "response": {
    "channels": {
      "onlinecount": 39,
      "items": [
        {
          "clients": 0,
          "id": 2,
          "items": [],
          "name": "[*spacer156]━",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 3,
          "items": [
            {
              "clients": -1,
              "id": 4,
              "items": [],
              "name": "• Server Working",
              "order": 0,
              "parent_id": 3,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 6,
              "items": [],
              "name": "• Duschkabine 🚿 mit anfassen🧸",
              "order": 4,
              "parent_id": 3,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 9,
              "items": [],
              "name": "• -฿- ☢ Divine Wallet ☢  -฿-",
              "order": 6,
              "parent_id": 3,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 11,
              "items": [],
              "name": "• Speedy's Bauern Grube",
              "order": 7,
              "parent_id": 3,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 10,
              "items": [],
              "name": "• Chaimer",
              "order": 9,
              "parent_id": 3,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 7,
              "items": [],
              "name": "• Chillout Lounge",
              "order": 10,
              "parent_id": 3,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 169,
              "items": [
                {
                  "clients": 0,
                  "id": 185,
                  "items": [],
                  "name": "• testing 1",
                  "order": 0,
                  "parent_id": 169,
                  "topic": ""
                }
              ],
              "name": "Testing",
              "order": 11,
              "parent_id": 3,
              "topic": ""
            }
          ],
          "name": "[cspacer]► Admin Area ◄",
          "order": 2,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 12,
          "items": [],
          "name": "[*spacer0]━",
          "order": 3,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 13,
          "items": [],
          "name": "[spacer0]",
          "order": 12,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 14,
          "items": [],
          "name": "[cspacer]► Welcome Channel  ◄",
          "order": 13,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 15,
          "items": [],
          "name": "[spacer10]",
          "order": 14,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 16,
          "items": [],
          "name": "[*spacer1]━",
          "order": 15,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 17,
          "items": [],
          "name": "[cspacer]Dot Zip Info",
          "order": 16,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 18,
          "items": [],
          "name": "[*spacer14]━",
          "order": 17,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 19,
          "items": [
            {
              "clients": 0,
              "id": 121,
              "items": [],
              "name": "• Talk 1",
              "order": 0,
              "parent_id": 19,
              "topic": ""
            }
          ],
          "name": "[cspacer0]► Talk Channels ◄",
          "order": 18,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 25,
          "items": [],
          "name": "[*spacer11]━",
          "order": 19,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 26,
          "items": [],
          "name": "[cspacer0] ► Games ◄",
          "order": 25,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 59,
          "items": [],
          "name": "[*spacer16]",
          "order": 26,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 60,
          "items": [
            {
              "clients": 0,
              "id": 61,
              "items": [],
              "name": "• Liga 1",
              "order": 0,
              "parent_id": 60,
              "topic": ""
            }
          ],
          "name": "[cspacer0]► CS:GO  ◄",
          "order": 59,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 66,
          "items": [],
          "name": "[*spacer17]",
          "order": 60,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 76,
          "items": [
            {
              "clients": 0,
              "id": 77,
              "items": [],
              "name": "• FlexQ",
              "order": 0,
              "parent_id": 76,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 78,
              "items": [],
              "name": "• Talk 1",
              "order": 77,
              "parent_id": 76,
              "topic": ""
            }
          ],
          "name": "[cspacer0]► League of Legends  ◄",
          "order": 66,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 80,
          "items": [],
          "name": "[*spacer20]",
          "order": 76,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 81,
          "items": [
            {
              "clients": 0,
              "id": 82,
              "items": [],
              "name": "• Talk 1",
              "order": 0,
              "parent_id": 81,
              "topic": ""
            }
          ],
          "name": "[cspacer0]► Minecraft  ◄",
          "order": 80,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 85,
          "items": [],
          "name": "[*spacer200]",
          "order": 81,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 93,
          "items": [],
          "name": "[*spacer22]━",
          "order": 85,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 94,
          "items": [
            {
              "clients": 0,
              "id": 95,
              "items": [],
              "name": "• Talk 1",
              "order": 0,
              "parent_id": 94,
              "topic": ""
            }
          ],
          "name": "[cspacer0]► Diverse Games  ◄",
          "order": 93,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 98,
          "items": [],
          "name": "[*spacer23]━",
          "order": 94,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 99,
          "items": [
            {
              "clients": 0,
              "id": 100,
              "items": [],
              "name": "• AFK",
              "order": 0,
              "parent_id": 99,
              "topic": ""
            }
          ],
          "name": "[cspacer0]► AFK Channels ◄",
          "order": 98,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 101,
          "items": [],
          "name": "[spacer159]",
          "order": 99,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "O69vcLKjThE+RjArtQN6ce/uUpg=",
    "platform": "Linux",
    "created": 0,
    "uptime": 253503,
    "steam_id": null,
    "domain": null,
    "id": 10481793,
    "ip": "159.195.26.158",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Nuremberg",
    "description": "Welcome to DotZip.",
    "game": 9000043,
    "owner": 140893,
    "boosts": 1,
    "last_offline": 1775764923,
    "score": 0,
    "last_online": 1776337214,
    "icon": null,
    "name": "DotZip Multigaming Community",
    "connect": "159.195.26.158:9987",
    "request": "159.195.26.158:9987",
    "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": 93,
    "add_date": 1760822932,
    "last_update": 1776337214,
    "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": 17,
    "language": "de",
    "parked": false,
    "app": {
      "id": 1629110,
      "steam_id": 9000043,
      "name": "Teamspeak 3",
      "url": "teamspeak-3"
    },
    "server_owner": {
      "username": "IceCupe",
      "avatar": "c5862e56-f607-4a18-9d9f-2e41c044a512.jpg",
      "last_online": 1761587692
    },
    "mods": [],
    "disabled_modules": []
  }
}

कोड उदाहरण

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