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

text
https://api.gamemonitoring.in/servers/11142902
json
{
  "response": {
    "channels": {
      "onlinecount": 49,
      "items": [
        {
          "clients": 0,
          "id": 264,
          "items": [],
          "name": "[spacer02]",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 265,
          "items": [
            {
              "clients": 0,
              "id": 266,
              "items": [],
              "name": "PIDE TU CANAL PRIVADO",
              "order": 0,
              "parent_id": 265,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 267,
              "items": [],
              "name": "NORMAS DE USO",
              "order": 266,
              "parent_id": 265,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 268,
              "items": [],
              "name": "AFK",
              "order": 267,
              "parent_id": 265,
              "topic": ""
            }
          ],
          "name": "BIENVENIDOS",
          "order": 264,
          "parent_id": 0,
          "topic": "BIENVENIDOS!!"
        },
        {
          "clients": 0,
          "id": 269,
          "items": [
            {
              "clients": 0,
              "id": 270,
              "items": [],
              "name": "PUBLICA 1",
              "order": 0,
              "parent_id": 269,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 271,
              "items": [],
              "name": "PUBLICA 2",
              "order": 270,
              "parent_id": 269,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 272,
              "items": [],
              "name": "PUBLICA 3",
              "order": 271,
              "parent_id": 269,
              "topic": ""
            }
          ],
          "name": "[spacer0]                   ZONA PUBLICA",
          "order": 265,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 274,
          "items": [],
          "name": "[spacer0]                    ZONA CLANES",
          "order": 269,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 275,
          "items": [
            {
              "clients": 2,
              "id": 391,
              "items": [],
              "name": "BATTLEFIELD 6",
              "order": 0,
              "parent_id": 275,
              "topic": ""
            }
          ],
          "name": "CLAN KAKI",
          "order": 274,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 277,
          "items": [
            {
              "clients": 0,
              "id": 276,
              "items": [],
              "name": "ORO- BATTLEFIELD 6",
              "order": 0,
              "parent_id": 277,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 278,
              "items": [],
              "name": "Oro - TERTULIAS",
              "order": 276,
              "parent_id": 277,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 279,
              "items": [],
              "name": "Oro - Battlefield 6",
              "order": 278,
              "parent_id": 277,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 280,
              "items": [],
              "name": "Oro - Invitados",
              "order": 279,
              "parent_id": 277,
              "topic": ""
            }
          ],
          "name": "CLAN ORO",
          "order": 275,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 3,
          "id": 281,
          "items": [
            {
              "clients": 0,
              "id": 439,
              "items": [],
              "name": "Clan the crow cs",
              "order": 0,
              "parent_id": 281,
              "topic": ""
            }
          ],
          "name": "CLAN THE CROW",
          "order": 277,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 282,
          "items": [],
          "name": "team floW",
          "order": 281,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 283,
          "items": [],
          "name": "heroes2korea",
          "order": 282,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 284,
          "items": [
            {
              "clients": 0,
              "id": 285,
              "items": [],
              "name": "EL RINCONSITO DE LOS LLORONES",
              "order": 0,
              "parent_id": 284,
              "topic": ""
            }
          ],
          "name": "AQUI MANDA EL NIGGA",
          "order": 283,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 286,
          "items": [],
          "name": "Reinos",
          "order": 284,
          "parent_id": 0,
          "topic": "Paella Hunters"
        },
        {
          "clients": 0,
          "id": 287,
          "items": [
            {
              "clients": 0,
              "id": 288,
              "items": [],
              "name": "- (Oldera) Chanel - Level UP",
              "order": 0,
              "parent_id": 287,
              "topic": ""
            }
          ],
          "name": "- (Oldera)",
          "order": 286,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 289,
          "items": [
            {
              "clients": 0,
              "id": 290,
              "items": [],
              "name": "Zinks",
              "order": 0,
              "parent_id": 289,
              "topic": ""
            }
          ],
          "name": "MNK-Equipo Valorant",
          "order": 287,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 296,
          "items": [],
          "name": "CS2",
          "order": 289,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 297,
          "items": [],
          "name": "KLAN CQC ----------------------------",
          "order": 296,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 298,
          "items": [],
          "name": "CLAN DE LOS LORES TERCEROS",
          "order": 297,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 299,
          "items": [
            {
              "clients": 0,
              "id": 300,
              "items": [],
              "name": "Valhalla",
              "order": 0,
              "parent_id": 299,
              "topic": ""
            }
          ],
          "name": "R.R.T.S",
          "order": 298,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 301,
          "items": [],
          "name": "pibardos",
          "order": 299,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 302,
          "items": [
            {
              "clients": 0,
              "id": 303,
              "items": [],
              "name": "-Farm",
              "order": 0,
              "parent_id": 302,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 304,
              "items": [],
              "name": "-PvP",
              "order": 303,
              "parent_id": 302,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 305,
              "items": [],
              "name": "-AFK",
              "order": 304,
              "parent_id": 302,
              "topic": ""
            }
          ],
          "name": "FakeDeath",
          "order": 301,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 965,
          "items": [],
          "name": "La Madriguera",
          "order": 302,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 316,
          "items": [],
          "name": "rocket league",
          "order": 306,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 309,
          "items": [],
          "name": "[spacer06]",
          "order": 307,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 310,
          "items": [],
          "name": "[spacer07]",
          "order": 309,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 311,
          "items": [],
          "name": "[spacer08]                ZONA TEMPORAL",
          "order": 310,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 3,
          "id": 1556,
          "items": [],
          "name": "ofensivo",
          "order": 311,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 307,
          "items": [
            {
              "clients": 0,
              "id": 308,
              "items": [],
              "name": "TEAM AEJOL",
              "order": 0,
              "parent_id": 307,
              "topic": ""
            }
          ],
          "name": "[spacer0]                  OFI Y SOPORTE",
          "order": 316,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 306,
          "items": [],
          "name": "Wo_ONDeR",
          "order": 965,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 3,
          "id": 1557,
          "items": [],
          "name": "sdadsad",
          "order": 1556,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 2,
          "id": 1559,
          "items": [],
          "name": "tia mildred",
          "order": 1557,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "WKk/OxcaWWt6XWtuQlMlBkUqrUY=",
    "platform": "Linux",
    "created": 1618846613,
    "uptime": 12005710,
    "steam_id": null,
    "domain": null,
    "id": 11142902,
    "ip": "152.228.172.63",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Gravelines",
    "description": "Be Gamer!",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775764923,
    "score": 0,
    "last_online": 1776018638,
    "icon": null,
    "name": "AEJOL BE GAMER",
    "connect": "152.228.172.63:9987",
    "request": "152.228.172.63:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 17,
    "maxplayers": 512,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "FR",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1770933678,
    "last_update": 1776018638,
    "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": 119,
    "language": "fr",
    "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/11142902");
$data = json_decode($json, true);
var_dump($data);