JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/10454533
json
{
  "response": {
    "channels": {
      "onlinecount": 20,
      "items": [
        {
          "clients": 0,
          "id": 36469,
          "items": [],
          "name": "[cspacer]Privilege rooms",
          "order": 0,
          "parent_id": 0,
          "topic": "https://csoolymp.com/"
        },
        {
          "clients": 0,
          "id": 36475,
          "items": [],
          "name": "[cspacer]Rating matches",
          "order": 31137,
          "parent_id": 0,
          "topic": "https://csoolymp.com/"
        },
        {
          "clients": 1,
          "id": 31125,
          "items": [],
          "name": "🎧",
          "order": 32083,
          "parent_id": 0,
          "topic": "https://csoolymp.com/"
        },
        {
          "clients": 0,
          "id": 36465,
          "items": [],
          "name": "Officer's Room",
          "order": 36462,
          "parent_id": 0,
          "topic": "https://csoolymp.com/"
        },
        {
          "clients": 0,
          "id": 36466,
          "items": [],
          "name": "Reception",
          "order": 36464,
          "parent_id": 0,
          "topic": "https://csoolymp.com/"
        },
        {
          "clients": 0,
          "id": 36464,
          "items": [],
          "name": "Meeting",
          "order": 36465,
          "parent_id": 0,
          "topic": "https://csoolymp.com/"
        },
        {
          "clients": 0,
          "id": 36470,
          "items": [],
          "name": "Waiting for RM",
          "order": 36466,
          "parent_id": 0,
          "topic": "https://csoolymp.com/"
        },
        {
          "clients": 0,
          "id": 36462,
          "items": [],
          "name": "Chapter Room",
          "order": 36469,
          "parent_id": 0,
          "topic": "https://csoolymp.com/"
        },
        {
          "clients": 0,
          "id": 36933,
          "items": [],
          "name": "CHAT",
          "order": 36470,
          "parent_id": 0,
          "topic": "https://csoolymp.com/chat/wf/"
        },
        {
          "clients": 1,
          "id": 32083,
          "items": [],
          "name": "📻",
          "order": 36471,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 36473,
          "items": [],
          "name": "RM Team《✧》Diamond-Master",
          "order": 36472,
          "parent_id": 0,
          "topic": "https://csoolymp.com/"
        },
        {
          "clients": 0,
          "id": 36474,
          "items": [],
          "name": "RM Team《✧》The Grandmaster",
          "order": 36473,
          "parent_id": 0,
          "topic": "https://csoolymp.com/"
        },
        {
          "clients": 0,
          "id": 36476,
          "items": [],
          "name": "[cspacer]Pleasures",
          "order": 36474,
          "parent_id": 0,
          "topic": "https://csoolymp.com/"
        },
        {
          "clients": 0,
          "id": 36472,
          "items": [],
          "name": "RM Team《✧》Gold-Platinum",
          "order": 36475,
          "parent_id": 0,
          "topic": "https://csoolymp.com/"
        },
        {
          "clients": 0,
          "id": 36477,
          "items": [],
          "name": "Team《✧》PVE",
          "order": 36476,
          "parent_id": 0,
          "topic": "https://csoolymp.com/"
        },
        {
          "clients": 0,
          "id": 36478,
          "items": [],
          "name": "Team《✧》Chill",
          "order": 36477,
          "parent_id": 0,
          "topic": "https://csoolymp.com/"
        },
        {
          "clients": 0,
          "id": 36479,
          "items": [],
          "name": "Team《✧》Public",
          "order": 36478,
          "parent_id": 0,
          "topic": "https://csoolymp.com/"
        },
        {
          "clients": 0,
          "id": 36471,
          "items": [],
          "name": "[cspacer]Recreation",
          "order": 36479,
          "parent_id": 0,
          "topic": "https://csoolymp.com/"
        },
        {
          "clients": 2,
          "id": 31137,
          "items": [],
          "name": "[spacer]  Living room",
          "order": 36480,
          "parent_id": 0,
          "topic": "https://csoolymp.com/"
        },
        {
          "clients": 0,
          "id": 36480,
          "items": [],
          "name": "Away From Keyboard",
          "order": 36933,
          "parent_id": 0,
          "topic": "https://csoolymp.com/"
        }
      ]
    },
    "external_id": "37O+n+gu8B/Cq+Z0NRgVE8QTO4o=",
    "platform": "Linux",
    "created": 1594139154,
    "uptime": 1748941,
    "steam_id": null,
    "domain": null,
    "id": 10454533,
    "ip": "185.232.169.31",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Moscow",
    "description": "This server is served by hosting csoolymp.com",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1777431196,
    "score": 0,
    "last_online": 1778697138,
    "icon": null,
    "name": "Олимп",
    "connect": "185.232.169.31:9987",
    "request": "185.232.169.31:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 4,
    "maxplayers": 32,
    "bots": 0,
    "secured": null,
    "private": true,
    "country": "RU",
    "status": true,
    "votes": 0,
    "points": 65,
    "add_date": 1760043662,
    "last_update": 1778697138,
    "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": 75,
    "language": "ru",
    "parked": false,
    "app": {
      "id": 1629110,
      "steam_id": 9000043,
      "name": "Teamspeak 3",
      "url": "teamspeak-3"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

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