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

text
https://api.gamemonitoring.in/servers/11180581
json
{
  "response": {
    "channels": {
      "onlinecount": 38,
      "items": [
        {
          "clients": -1,
          "id": 1,
          "items": [],
          "name": "Canal de Bienvenida",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 29,
          "items": [
            {
              "clients": 0,
              "id": 1152,
              "items": [],
              "name": "Falsos Autonomos",
              "order": 0,
              "parent_id": 29,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 41,
              "items": [],
              "name": "Congo Libre",
              "order": 1152,
              "parent_id": 29,
              "topic": "Ebufuefue"
            }
          ],
          "name": "Counter Strike",
          "order": 1,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1141,
          "items": [
            {
              "clients": 0,
              "id": 40,
              "items": [],
              "name": "Mylta",
              "order": 0,
              "parent_id": 1141,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1145,
              "items": [],
              "name": "Saint Denis",
              "order": 6,
              "parent_id": 1141,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1144,
              "items": [],
              "name": "Blackwater",
              "order": 40,
              "parent_id": 1141,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1149,
              "items": [],
              "name": "Búnker XZ",
              "order": 1144,
              "parent_id": 1141,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 6,
              "items": [],
              "name": "Quick Match # 1",
              "order": 1149,
              "parent_id": 1141,
              "topic": ""
            }
          ],
          "name": "Red Dead Redemption 2",
          "order": 2,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1142,
          "items": [],
          "name": "Congo Libre",
          "order": 3,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 5,
          "items": [
            {
              "clients": 0,
              "id": 20,
              "items": [],
              "name": "Canal #2",
              "order": 0,
              "parent_id": 5,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 19,
              "items": [],
              "name": "Canal #1",
              "order": 20,
              "parent_id": 5,
              "topic": ""
            }
          ],
          "name": "Overwatch",
          "order": 4,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1146,
          "items": [],
          "name": "Diablo III",
          "order": 5,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1140,
          "items": [
            {
              "clients": 0,
              "id": 1156,
              "items": [],
              "name": "Gente q no debió hacer caso a sus amigos",
              "order": 0,
              "parent_id": 1140,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 682,
              "items": [],
              "name": "Rush b",
              "order": 72,
              "parent_id": 1140,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1132,
              "items": [],
              "name": "Team PoPy",
              "order": 682,
              "parent_id": 1140,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 72,
              "items": [],
              "name": "Sauna muy Muy Gay",
              "order": 1156,
              "parent_id": 1140,
              "topic": ""
            }
          ],
          "name": "Fire in the hole",
          "order": 29,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 2,
          "items": [
            {
              "clients": 0,
              "id": 16,
              "items": [
                {
                  "clients": 0,
                  "id": 112,
                  "items": [],
                  "name": "Congo Libre",
                  "order": 0,
                  "parent_id": 16,
                  "topic": "CS"
                }
              ],
              "name": "Pochinki",
              "order": 0,
              "parent_id": 2,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 18,
              "items": [],
              "name": "Georgepol",
              "order": 16,
              "parent_id": 2,
              "topic": ""
            }
          ],
          "name": "Player Unknowns Battle Ground",
          "order": 1140,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 3,
          "items": [
            {
              "clients": 0,
              "id": 32,
              "items": [],
              "name": "Party #2",
              "order": 0,
              "parent_id": 3,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 10,
              "items": [],
              "name": "No clasificatoria # 1",
              "order": 7,
              "parent_id": 3,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 13,
              "items": [],
              "name": "No clasificatoria # 2",
              "order": 10,
              "parent_id": 3,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 15,
              "items": [],
              "name": "Ranked # 2",
              "order": 13,
              "parent_id": 3,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 7,
              "items": [],
              "name": "Quick Match # 2",
              "order": 32,
              "parent_id": 3,
              "topic": ""
            }
          ],
          "name": "Heroes of the Storm",
          "order": 1141,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 4,
          "items": [
            {
              "clients": 0,
              "id": 21,
              "items": [],
              "name": "Protoss",
              "order": 0,
              "parent_id": 4,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 22,
              "items": [],
              "name": "Zerg",
              "order": 21,
              "parent_id": 4,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 23,
              "items": [],
              "name": "Terran",
              "order": 22,
              "parent_id": 4,
              "topic": ""
            }
          ],
          "name": "Starcraft",
          "order": 1142,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 66,
          "items": [
            {
              "clients": 0,
              "id": 1147,
              "items": [],
              "name": "Diablo III",
              "order": 0,
              "parent_id": 66,
              "topic": ""
            },
            {
              "clients": 2,
              "id": 70,
              "items": [],
              "name": "Canal  #2",
              "order": 67,
              "parent_id": 66,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 67,
              "items": [],
              "name": "Canal  #1",
              "order": 1147,
              "parent_id": 66,
              "topic": ""
            }
          ],
          "name": "Otros Juegos",
          "order": 1146,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "9hjUQyOpcz3ECL1srR9I0NUetRA=",
    "platform": "Linux",
    "created": 1504649803,
    "uptime": 2776873,
    "steam_id": null,
    "domain": null,
    "id": 11180581,
    "ip": "212.227.169.44",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Madrid",
    "description": "Sevidor gaming público, new fag portate bien o BAN\nhttp://static-es.hudo.com/images/posters/804/image.jpg\n\nSi quieres un canal privado de patilla habla con un admin por chat",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776332568,
    "score": 0,
    "last_online": 1776354020,
    "icon": null,
    "name": "[ESP] QUE DOLOR GAMING [TS] - quedolor.com",
    "connect": "212.227.169.44:9987",
    "request": "212.227.169.44:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 3,
    "maxplayers": 32,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "ES",
    "status": true,
    "votes": 0,
    "points": 64,
    "add_date": 1772229617,
    "last_update": 1776354020,
    "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": 91,
    "language": "es",
    "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/11180581");
$data = json_decode($json, true);
var_dump($data);