JSON for programs, websites and more

text
https://api.gamemonitoring.net/servers/11142922
json
{
  "response": {
    "channels": {
      "onlinecount": 16,
      "items": [
        {
          "clients": 0,
          "id": 3,
          "items": [],
          "name": "AFK",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 8,
          "items": [
            {
              "clients": 0,
              "id": 40,
              "items": [],
              "name": "Battlefield 2042",
              "order": 0,
              "parent_id": 8,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 5,
              "items": [],
              "name": "PUBG PUSH THE KNOCK",
              "order": 4,
              "parent_id": 8,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 17,
              "items": [],
              "name": "Battlefield 3, 4, 1, V",
              "order": 5,
              "parent_id": 8,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 19,
              "items": [],
              "name": "Hell Let Loose",
              "order": 16,
              "parent_id": 8,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 21,
              "items": [],
              "name": "Call of Duty - Modern Warfare 2",
              "order": 17,
              "parent_id": 8,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 45,
              "items": [],
              "name": "Hunt: Showdown",
              "order": 19,
              "parent_id": 8,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 47,
              "items": [],
              "name": "World War 3",
              "order": 20,
              "parent_id": 8,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 46,
              "items": [],
              "name": "Cyberpunk 2077",
              "order": 21,
              "parent_id": 8,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 4,
              "items": [],
              "name": "PUBG - Not Pushing the Knock",
              "order": 40,
              "parent_id": 8,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 20,
              "items": [],
              "name": "Squad",
              "order": 45,
              "parent_id": 8,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 16,
              "items": [],
              "name": "Guild Wars 2",
              "order": 46,
              "parent_id": 8,
              "topic": ""
            }
          ],
          "name": "Games",
          "order": 1,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 1,
          "items": [],
          "name": "Lobby/Bar",
          "order": 3,
          "parent_id": 0,
          "topic": "Default Channel has no topic"
        },
        {
          "clients": 0,
          "id": 12,
          "items": [],
          "name": "PGC Meeting Room",
          "order": 8,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 13,
          "items": [],
          "name": "Tech Support",
          "order": 12,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "pDNFapSHHRyuMlAa9ZTiG30ddLE=",
    "platform": "Linux",
    "created": 1562709387,
    "uptime": 372380,
    "steam_id": null,
    "domain": null,
    "id": 11142922,
    "ip": "104.248.107.245",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Toronto",
    "description": "Welcome to Phoenix Global Community.\nCelebrating 10 years of gaming since Feb. 6, 2012.",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1770933679,
    "score": 0,
    "last_online": 1776897619,
    "icon": null,
    "name": "Phoenix Global Community",
    "connect": "104.248.107.245:9987",
    "request": "104.248.107.245:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 1,
    "maxplayers": 32,
    "bots": 0,
    "secured": null,
    "private": true,
    "country": "CA",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1770933679,
    "last_update": 1776897619,
    "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": 133,
    "language": "en",
    "parked": false,
    "app": {
      "id": 1629110,
      "steam_id": 9000043,
      "name": "Teamspeak 3",
      "url": "teamspeak-3"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Code examples

php
<?php
$json = file_get_contents("https://api.gamemonitoring.net/servers/11142922");
$data = json_decode($json, true);
var_dump($data);