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

text
https://api.gamemonitoring.in/servers/11142911
json
{
  "response": {
    "channels": {
      "onlinecount": 48,
      "items": [
        {
          "clients": -1,
          "id": 621,
          "items": [],
          "name": "[spacerhelp]",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 733,
          "items": [],
          "name": "[Cspacer310]",
          "order": 3,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 1484,
          "items": [],
          "name": "[spacer7770]",
          "order": 13,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 622,
          "items": [],
          "name": "[spacerhelp2]",
          "order": 492,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 3,
          "items": [],
          "name": "[cspacer]ts.nouri.blue",
          "order": 503,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 492,
          "items": [
            {
              "clients": -1,
              "id": 218,
              "items": [
                {
                  "clients": 0,
                  "id": 1144,
                  "items": [],
                  "name": "Move",
                  "order": 0,
                  "parent_id": 218,
                  "topic": ""
                }
              ],
              "name": "⧉ szafa",
              "order": 0,
              "parent_id": 492,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 495,
              "items": [],
              "name": "⧉ Invisible",
              "order": 218,
              "parent_id": 492,
              "topic": ""
            }
          ],
          "name": "⛊ Administration",
          "order": 621,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 503,
          "items": [],
          "name": "[spacerumain]",
          "order": 622,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1298,
          "items": [],
          "name": "[spacerr]",
          "order": 623,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 623,
          "items": [
            {
              "clients": 0,
              "id": 624,
              "items": [],
              "name": "1. Kanał",
              "order": 0,
              "parent_id": 623,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 625,
              "items": [],
              "name": "2. Kanał",
              "order": 624,
              "parent_id": 623,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 626,
              "items": [],
              "name": "3. Kanał",
              "order": 625,
              "parent_id": 623,
              "topic": ""
            }
          ],
          "name": "» Open [Bez limitu] «",
          "order": 733,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 13,
          "items": [],
          "name": "[spacer1]",
          "order": 750,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 750,
          "items": [
            {
              "clients": 0,
              "id": 751,
              "items": [],
              "name": "1 \\p [J4B0L] Crazy Drinkers",
              "order": 0,
              "parent_id": 750,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 752,
              "items": [],
              "name": "2 \\p Plutony",
              "order": 751,
              "parent_id": 750,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 765,
              "items": [],
              "name": "3 \\p AFK WTF",
              "order": 752,
              "parent_id": 750,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 756,
              "items": [],
              "name": "× Poczelalnia [ Move ]",
              "order": 765,
              "parent_id": 750,
              "topic": ""
            }
          ],
          "name": "[lspacer1]╠» Kanał główny",
          "order": 759,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1296,
          "items": [],
          "name": "[spacere]",
          "order": 956,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2092,
          "items": [],
          "name": "No taaaaaaaaaaa",
          "order": 993,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 759,
          "items": [
            {
              "clients": 0,
              "id": 763,
              "items": [],
              "name": "1 \\p Główny sztab",
              "order": 0,
              "parent_id": 759,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 760,
              "items": [],
              "name": "2 \\p Norka Sponziego",
              "order": 763,
              "parent_id": 759,
              "topic": ""
            }
          ],
          "name": "[lspacer2]ɯ  Sztab",
          "order": 1296,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 993,
          "items": [
            {
              "clients": 0,
              "id": 994,
              "items": [],
              "name": "1 \\p Rzegnaci \\p !!DonMariuszKrul!!",
              "order": 0,
              "parent_id": 993,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1001,
              "items": [],
              "name": "2 \\p Ni chuja szmaciurko",
              "order": 994,
              "parent_id": 993,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1002,
              "items": [],
              "name": "3 \\p Zaparowały ci oczy",
              "order": 1001,
              "parent_id": 993,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1043,
              "items": [],
              "name": "4 \\p Aleja sław",
              "order": 1002,
              "parent_id": 993,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1003,
              "items": [],
              "name": "× Poczelalnia [ Move ]",
              "order": 1043,
              "parent_id": 993,
              "topic": ""
            }
          ],
          "name": "[spacer7]̯ Areczek ze Szwajcarii",
          "order": 1298,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 956,
          "items": [
            {
              "clients": 0,
              "id": 957,
              "items": [],
              "name": "1 \\p Głębooooka stuuudzienka",
              "order": 0,
              "parent_id": 956,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 958,
              "items": [],
              "name": "2 \\p Najlepsi Gracze",
              "order": 957,
              "parent_id": 956,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 959,
              "items": [],
              "name": "3 \\p Palestyński Vietcong Rzepakowy",
              "order": 958,
              "parent_id": 956,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 960,
              "items": [],
              "name": "× Korytarz [ Move ]",
              "order": 959,
              "parent_id": 956,
              "topic": ""
            }
          ],
          "name": "[spacer4]╠» Kanał główny",
          "order": 1299,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1509,
          "items": [],
          "name": "Gomgoma Channel",
          "order": 1453,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1453,
          "items": [],
          "name": "trabzon",
          "order": 1483,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1483,
          "items": [],
          "name": "usługi hydrauliczne groszek",
          "order": 1484,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2164,
          "items": [],
          "name": "rl",
          "order": 1509,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 1299,
          "items": [],
          "name": "[spacert]",
          "order": 2092,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2168,
          "items": [],
          "name": "penka",
          "order": 2164,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2169,
          "items": [],
          "name": "kurnik",
          "order": 2168,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2170,
          "items": [],
          "name": "ams",
          "order": 2169,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2171,
          "items": [],
          "name": "AMS WM",
          "order": 2170,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2172,
          "items": [],
          "name": "gorzelnia",
          "order": 2171,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2174,
          "items": [],
          "name": "penka228",
          "order": 2172,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "wI+tEOq3uaDx1dr2YxYnAdJuDt4=",
    "platform": "Linux",
    "created": 1630677691,
    "uptime": 315613,
    "steam_id": null,
    "domain": null,
    "id": 11142911,
    "ip": "217.182.77.153",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Wroclaw",
    "description": "Server is Currently Unavailable",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776586350,
    "score": 0,
    "last_online": 1776902418,
    "icon": null,
    "name": "⛊ \\p Ośrodek Psychiatryczny, oddział zakaźny",
    "connect": "217.182.77.153:9987",
    "request": "217.182.77.153:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 1,
    "maxplayers": 450,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "PL",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1770933678,
    "last_update": 1776902418,
    "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": 129,
    "language": "pl",
    "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/11142911");
$data = json_decode($json, true);
var_dump($data);