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

text
https://api.gamemonitoring.in/servers/11142918
json
{
  "response": {
    "channels": {
      "onlinecount": 58,
      "items": [
        {
          "clients": 0,
          "id": 135,
          "items": [],
          "name": "== APEX: Legends ==",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 136,
          "items": [],
          "name": "== COD: Warzone ==",
          "order": 9,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 172,
          "items": [],
          "name": "[spacer345345345340]",
          "order": 10,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 142,
          "items": [],
          "name": "[spacer05645645645]",
          "order": 12,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 176,
          "items": [],
          "name": "[spacer867845664356450]",
          "order": 18,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 70,
          "items": [],
          "name": "[spacer9878978978970]",
          "order": 35,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 10,
          "items": [],
          "name": "++++ AFK ++++ (No Voice)",
          "order": 70,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 18,
          "items": [],
          "name": "Lobby Chat",
          "order": 75,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 107,
          "items": [
            {
              "clients": 0,
              "id": 116,
              "items": [],
              "name": "-- General Racing --",
              "order": 0,
              "parent_id": 107,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 115,
              "items": [],
              "name": "++ Super Late Models ++",
              "order": 114,
              "parent_id": 107,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 114,
              "items": [],
              "name": "++ Pit Paddock 'n Scale House ++",
              "order": 116,
              "parent_id": 107,
              "topic": ""
            }
          ],
          "name": "== iRacing ==",
          "order": 94,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 94,
          "items": [
            {
              "clients": 0,
              "id": 117,
              "items": [],
              "name": "++ FiveM ++",
              "order": 0,
              "parent_id": 94,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 118,
              "items": [],
              "name": "++ GTA Online ++",
              "order": 117,
              "parent_id": 94,
              "topic": ""
            }
          ],
          "name": "== GTA V ==",
          "order": 95,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 9,
          "items": [
            {
              "clients": 0,
              "id": 144,
              "items": [],
              "name": "Vietnam: Mike Force Server",
              "order": 0,
              "parent_id": 9,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 17,
              "items": [],
              "name": "TFAR",
              "order": 144,
              "parent_id": 9,
              "topic": ""
            }
          ],
          "name": "==  ARMA3 ==",
          "order": 106,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 146,
          "items": [],
          "name": "== Microsoft Flight Sim 2020 ==",
          "order": 107,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 156,
          "items": [],
          "name": "== Forza 5 Horizon ==",
          "order": 109,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 149,
          "items": [],
          "name": "== Rust ==",
          "order": 110,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 143,
          "items": [],
          "name": "== Pub-G ==",
          "order": 111,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 132,
          "items": [],
          "name": "== War Thunder ==",
          "order": 113,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 75,
          "items": [],
          "name": "[spacer65465464560]",
          "order": 132,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 106,
          "items": [],
          "name": "== ARK: Survival Evolved ==",
          "order": 135,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 109,
          "items": [],
          "name": "== DCS World Beta ==",
          "order": 136,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 35,
          "items": [],
          "name": "==  LZ Xray == (No Talking)",
          "order": 140,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 119,
          "items": [
            {
              "clients": 0,
              "id": 124,
              "items": [],
              "name": "■ Synthetic FM - The radio for the Synth",
              "order": 0,
              "parent_id": 119,
              "topic": ""
            }
          ],
          "name": "Internet Radio Stream:",
          "order": 142,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 110,
          "items": [],
          "name": "== R6 Raven Shield ==",
          "order": 143,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 111,
          "items": [],
          "name": "== Minecraft ==",
          "order": 146,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 140,
          "items": [],
          "name": "[spacer0]================",
          "order": 147,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 147,
          "items": [],
          "name": "== Reichstag ==",
          "order": 148,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 113,
          "items": [],
          "name": "== Red Dead 2 (PC) ==",
          "order": 149,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 148,
          "items": [],
          "name": "[spacer64686168840]",
          "order": 151,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 95,
          "items": [],
          "name": "== Ground Branch ==",
          "order": 156,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 12,
          "items": [
            {
              "clients": 0,
              "id": 134,
              "items": [],
              "name": "$$  Crypto Coin  $$",
              "order": 0,
              "parent_id": 12,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 150,
              "items": [
                {
                  "clients": 0,
                  "id": 164,
                  "items": [],
                  "name": "++ Factory Floor  ++",
                  "order": 0,
                  "parent_id": 150,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 170,
                  "items": [],
                  "name": "++ Chassis Shop Weld Fab Center ++",
                  "order": 164,
                  "parent_id": 150,
                  "topic": ""
                }
              ],
              "name": "rg31-mrap's Office",
              "order": 97,
              "parent_id": 12,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 157,
              "items": [
                {
                  "clients": 0,
                  "id": 161,
                  "items": [],
                  "name": "++ Palenistine ++",
                  "order": 0,
                  "parent_id": 157,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 167,
                  "items": [],
                  "name": "++ Golan Heights ++",
                  "order": 161,
                  "parent_id": 157,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 173,
                  "items": [],
                  "name": "++  Silver Lions Shekel Counting BRR  ++",
                  "order": 167,
                  "parent_id": 157,
                  "topic": ""
                }
              ],
              "name": "Slut's West Bank Office",
              "order": 98,
              "parent_id": 12,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 97,
              "items": [],
              "name": "Main Office",
              "order": 134,
              "parent_id": 12,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 158,
              "items": [
                {
                  "clients": 0,
                  "id": 168,
                  "items": [
                    {
                      "clients": 0,
                      "id": 171,
                      "items": [],
                      "name": "The Showers",
                      "order": 0,
                      "parent_id": 168,
                      "topic": ""
                    }
                  ],
                  "name": "++ Auschwitz Train Station ++",
                  "order": 0,
                  "parent_id": 158,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 169,
                  "items": [],
                  "name": "++ Western Germany ++",
                  "order": 168,
                  "parent_id": 158,
                  "topic": ""
                }
              ],
              "name": "Welthauptstadt     Berlin",
              "order": 150,
              "parent_id": 12,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 165,
              "items": [],
              "name": "Server Room",
              "order": 157,
              "parent_id": 12,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 98,
              "items": [
                {
                  "clients": 0,
                  "id": 34,
                  "items": [
                    {
                      "clients": 0,
                      "id": 166,
                      "items": [],
                      "name": "++ Skate Park ++",
                      "order": 0,
                      "parent_id": 34,
                      "topic": ""
                    }
                  ],
                  "name": "\"Server Room\"",
                  "order": 0,
                  "parent_id": 98,
                  "topic": ""
                }
              ],
              "name": "Switch's Office",
              "order": 158,
              "parent_id": 12,
              "topic": ""
            }
          ],
          "name": "++++ Organization Staff ++++",
          "order": 172,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 151,
          "items": [
            {
              "clients": 0,
              "id": 177,
              "items": [],
              "name": "wishing you well from USA :)",
              "order": 0,
              "parent_id": 151,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 163,
              "items": [],
              "name": "++ AFK ++",
              "order": 162,
              "parent_id": 151,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 162,
              "items": [],
              "name": "++ Cool People Only ++",
              "order": 177,
              "parent_id": 151,
              "topic": ""
            }
          ],
          "name": "== Wish's Office ==",
          "order": 176,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "nKUMpAJ0IQxn5u3nQlXqA/xL3Lk=",
    "platform": "Windows",
    "created": 1549513571,
    "uptime": 1889892,
    "steam_id": null,
    "domain": null,
    "id": 11142918,
    "ip": "104.243.46.138",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Miami",
    "description": "Welcome to Miami!!!!\n\nWelcome! Glad you made it!",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1774992731,
    "score": 0,
    "last_online": 1776896419,
    "icon": null,
    "name": "= i9 9900k $ Miami, FL $ =",
    "connect": "104.243.46.138:9987",
    "request": "104.243.46.138:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 1,
    "maxplayers": 32,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1770933678,
    "last_update": 1776896419,
    "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": 131,
    "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/11142918");
$data = json_decode($json, true);
var_dump($data);