JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11602635
json
{
  "response": {
    "channels": {
      "onlinecount": 11,
      "items": [
        {
          "clients": 1,
          "id": 1,
          "items": [],
          "name": "👉 👋 WELCOME LaGroapa",
          "order": 0,
          "parent_id": 0,
          "topic": "Default Channel has no topic"
        },
        {
          "clients": 0,
          "id": 10,
          "items": [],
          "name": "Staff",
          "order": 1,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 3,
          "items": [],
          "name": "Respwan LaGROAPA",
          "order": 2,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 17,
          "items": [],
          "name": "AWP ONLY",
          "order": 3,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 2,
          "items": [],
          "name": "Classic LaGROAPA",
          "order": 7,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 15,
          "items": [],
          "name": "Manele",
          "order": 10,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 16,
          "items": [],
          "name": "KissFM",
          "order": 15,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 7,
          "items": [],
          "name": "AFK",
          "order": 16,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 4,
          "items": [
            {
              "clients": 0,
              "id": 5,
              "items": [],
              "name": "CT",
              "order": 0,
              "parent_id": 4,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 6,
              "items": [],
              "name": "T",
              "order": 5,
              "parent_id": 4,
              "topic": ""
            }
          ],
          "name": "MIX-LaGROAPA",
          "order": 17,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "+HRPlAPzlWSTztkJiUNCxLSrG9Y=",
    "platform": "Linux",
    "created": 1772890508,
    "uptime": 7532274,
    "steam_id": null,
    "domain": null,
    "id": 11602635,
    "ip": "80.96.197.41",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Șipotu",
    "description": "**Bine ai venit pe TeamSpeak-ul oficial LaGroapa!**\nWebsite: https://lagroapa.ro\nTeamSpeak: ts.lagroapa.ro\n**Reguli generale:**\n• Respectă ceilalți utilizatori\n• Fără spam sau reclame\n• Limbaj decent pe server\n• Respectă deciziile staff-ului\n**Servere CS 1.6 LaGroapa:**\n• Classic LaGroapa\n• Respawn LaGroapa\n• Counter-StrikeGlobal Offensive\n• MIX LaGroapa\n• VIP Free LaGroapa\n**Ai nevoie de ajutor?**\nIntră pe canalul Staff și un admin te va ajuta.\nDistracție plăcută pe serverele LaGroapa!",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779382072,
    "last_online": 1780438824,
    "icon": null,
    "name": "ts.lagroapa.ro",
    "connect": "80.96.197.41:9987",
    "request": "80.96.197.41:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 3,
    "maxplayers": 64,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "RO",
    "status": true,
    "votes": 0,
    "points": 63,
    "add_date": 1779382072,
    "last_update": 1780438824,
    "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": 105,
    "language": "ro",
    "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/11602635");
$data = json_decode($json, true);
var_dump($data);