JSON для программ, сайтов и прочего

text
https://api.gamemonitoring.ru/servers/11142909
json
{
  "response": {
    "channels": {
      "onlinecount": 8,
      "items": [
        {
          "clients": 0,
          "id": 718,
          "items": [],
          "name": "Chcesz własny kanał na stałe?",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2,
          "items": [],
          "name": "Gramy",
          "order": 1,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 36,
          "items": [],
          "name": "Team #1",
          "order": 2,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 37,
          "items": [],
          "name": "Team #2",
          "order": 36,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 3,
          "id": 628,
          "items": [],
          "name": "Team #3",
          "order": 37,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 719,
          "items": [],
          "name": "Pisz na maila - GanjuhA@megats.pl",
          "order": 718,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 720,
          "items": [],
          "name": "-------------------------",
          "order": 719,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 1,
          "items": [],
          "name": "Default Channel",
          "order": 720,
          "parent_id": 0,
          "topic": "Default Channel has no topic"
        }
      ]
    },
    "external_id": "HAaeQJELLCQphR2v1tkHVASuWGk=",
    "platform": "Linux",
    "created": 1547320553,
    "uptime": 1516097,
    "steam_id": null,
    "domain": null,
    "id": 11142909,
    "ip": "145.239.84.46",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Wroclaw",
    "description": "[www.megats.pl](https://www.megats.pl)\n[www.twitch.tv/GanjuhA](https://www.twitch.tv/GanjuhA)",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775764923,
    "score": 0,
    "last_online": 1776897616,
    "icon": null,
    "name": "TS Grubiorza Kebabożercy xD",
    "connect": "145.239.84.46:9987",
    "request": "145.239.84.46:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 5,
    "maxplayers": 32,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "PL",
    "status": true,
    "votes": 0,
    "points": 67,
    "add_date": 1770933678,
    "last_update": 1776897616,
    "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": 72,
    "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.ru/servers/11142909");
$data = json_decode($json, true);
var_dump($data);