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

text
https://api.gamemonitoring.in/servers/11142887
json
{
  "response": {
    "channels": {
      "onlinecount": 17,
      "items": [
        {
          "clients": 1,
          "id": 1,
          "items": [],
          "name": "Home",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2,
          "items": [],
          "name": "Admins: online 1",
          "order": 1,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2285,
          "items": [
            {
              "clients": -1,
              "id": 2067,
              "items": [],
              "name": "Moderators ➜ Neaktivne Miesnosti",
              "order": 0,
              "parent_id": 2285,
              "topic": ""
            }
          ],
          "name": "[cspacer180] ∙•●  VIP Rooms  ●•∙",
          "order": 2,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 8,
          "items": [],
          "name": "Free 2",
          "order": 7,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 9,
          "items": [],
          "name": "Free 3",
          "order": 8,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 61,
          "items": [],
          "name": "[cspacer180] ∙•●  Public Channels  ●•∙",
          "order": 9,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 23,
          "items": [],
          "name": "PUBG",
          "order": 19,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2331,
          "items": [],
          "name": "LoL",
          "order": 21,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 21,
          "items": [],
          "name": "CS2",
          "order": 22,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 22,
          "items": [],
          "name": "Rust",
          "order": 23,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2040,
          "items": [],
          "name": "EFT",
          "order": 61,
          "parent_id": 0,
          "topic": "Norvinks region"
        },
        {
          "clients": 0,
          "id": 7,
          "items": [],
          "name": "Free 1",
          "order": 1137,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 19,
          "items": [],
          "name": "Dota 2",
          "order": 2040,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1137,
          "items": [],
          "name": "[cspacer180] ∙•●  Free Channels  ●•∙",
          "order": 2285,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2332,
          "items": [],
          "name": "WoW",
          "order": 2331,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2158,
          "items": [],
          "name": "[cspacer180] ∙•●  Private Channels  ●•∙",
          "order": 2332,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "pTM1+CtM+VwR0oALJD7ogmM9HHw=",
    "platform": "Linux",
    "created": 1516403378,
    "uptime": 926229,
    "steam_id": null,
    "domain": null,
    "id": 11142887,
    "ip": "185.91.116.137",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Úpice",
    "description": null,
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1774235514,
    "score": 0,
    "last_online": 1776915637,
    "icon": null,
    "name": "ChillSpeak TeamSpeak 3 Server",
    "connect": "185.91.116.137:9987",
    "request": "185.91.116.137:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 1,
    "maxplayers": 100,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "CZ",
    "status": true,
    "votes": 0,
    "points": 31,
    "add_date": 1770933678,
    "last_update": 1776915637,
    "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": 169,
    "language": "cs",
    "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/11142887");
$data = json_decode($json, true);
var_dump($data);