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

text
https://api.gamemonitoring.in/servers/11142924
json
{
  "response": {
    "channels": {
      "onlinecount": 15,
      "items": [
        {
          "clients": 1,
          "id": 2,
          "items": [],
          "name": "Admin Room",
          "order": 0,
          "parent_id": 0,
          "topic": "Admins Only!"
        },
        {
          "clients": 0,
          "id": 16,
          "items": [
            {
              "clients": 0,
              "id": 197,
              "items": [
                {
                  "clients": 0,
                  "id": 203,
                  "items": [],
                  "name": "*FTB*~Fast Sniper~Freeze Tag server",
                  "order": 0,
                  "parent_id": 197,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 207,
                  "items": [],
                  "name": "\\pPIG\\p *\\p\\p* The Limitless Fortress *\\p\\p*",
                  "order": 203,
                  "parent_id": 197,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 198,
                  "items": [
                    {
                      "clients": 0,
                      "id": 204,
                      "items": [],
                      "name": "*FTB*~Ass Kickin~ CTF Binslayer server",
                      "order": 0,
                      "parent_id": 198,
                      "topic": ""
                    },
                    {
                      "clients": 0,
                      "id": 132,
                      "items": [
                        {
                          "clients": 0,
                          "id": 15,
                          "items": [],
                          "name": "Red Room",
                          "order": 0,
                          "parent_id": 132,
                          "topic": "Red Room"
                        },
                        {
                          "clients": 0,
                          "id": 14,
                          "items": [],
                          "name": "Blue Room",
                          "order": 15,
                          "parent_id": 132,
                          "topic": "Blue Room"
                        }
                      ],
                      "name": "Match Room",
                      "order": 204,
                      "parent_id": 198,
                      "topic": "Match Discussion"
                    }
                  ],
                  "name": "Unreal Tournament 99",
                  "order": 207,
                  "parent_id": 197,
                  "topic": "FTB UT99 Room"
                }
              ],
              "name": "Unreal Tournament 2004",
              "order": 0,
              "parent_id": 16,
              "topic": "FTB UT2004 Room"
            },
            {
              "clients": 0,
              "id": 209,
              "items": [],
              "name": "Split Gate 2",
              "order": 197,
              "parent_id": 16,
              "topic": "Split Gate 2 "
            }
          ],
          "name": "Away From Keyboard",
          "order": 1,
          "parent_id": 0,
          "topic": "AFK Room"
        },
        {
          "clients": 1,
          "id": 1,
          "items": [
            {
              "clients": 0,
              "id": 199,
              "items": [],
              "name": "Extra Room",
              "order": 0,
              "parent_id": 1,
              "topic": "Extra UT Room"
            }
          ],
          "name": "Lobby",
          "order": 2,
          "parent_id": 0,
          "topic": "Welcome!"
        },
        {
          "clients": 0,
          "id": 12,
          "items": [],
          "name": "Music Room",
          "order": 3,
          "parent_id": 0,
          "topic": "Music Room"
        },
        {
          "clients": 0,
          "id": 3,
          "items": [],
          "name": "Clan Room",
          "order": 16,
          "parent_id": 0,
          "topic": "FTB Members Only!"
        }
      ]
    },
    "external_id": "X9z/FOuUpUqC+RxNwTzPJjtJ3uk=",
    "platform": "Windows",
    "created": 0,
    "uptime": 953154,
    "steam_id": null,
    "domain": null,
    "id": 11142924,
    "ip": "74.91.124.251",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Chicago",
    "description": "Welcome to the *FTB*~Clan's TeamSpeak ]\\p[ Server~, Frag'em Tag'em & Bag'em. The Way It Should Be Done! ftbclan.net\nWelcome To The FTB Clan! Visit Us @ ftbclan.net . You will not be able to talk in the Entry.unr channel. Make sure you are in your proper channel.",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775082088,
    "score": 0,
    "last_online": 1776035293,
    "icon": null,
    "name": "*FTB*~TeamSpeak ]\\p[ Server~",
    "connect": "74.91.124.251:9987",
    "request": "74.91.124.251:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 2,
    "maxplayers": 30,
    "bots": 0,
    "secured": false,
    "private": true,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 63,
    "add_date": 1770933679,
    "last_update": 1776035293,
    "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": 97,
    "language": "en",
    "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/11142924");
$data = json_decode($json, true);
var_dump($data);