Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/10973045
json
{
  "response": {
    "channels": {
      "onlinecount": 3,
      "items": [
        {
          "clients": 2,
          "id": 2,
          "items": [],
          "name": "Adminitração",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 3,
          "items": [],
          "name": "Ali Ababwa",
          "order": 1,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 1,
          "items": [],
          "name": "Sala de Espera",
          "order": 2,
          "parent_id": 0,
          "topic": "https:/forum.cristalf.srv.br/teamspeak3"
        }
      ]
    },
    "external_id": "jg8Lgl+NX9wKSJ5VOJZlhwXt46E=",
    "platform": "Linux",
    "created": 1725588514,
    "uptime": 271224,
    "steam_id": null,
    "domain": null,
    "id": 10973045,
    "ip": "177.54.201.194",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Ribeirão Preto",
    "description": "Seja bem-vindo ao TeamSpeak3 #CristalF.SRV.BR, acesse www.cristalf.srv.br para mais informações!\nMais informações acesse whatsapp.cristalf.srv.br",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776089513,
    "score": 0,
    "last_online": 1776361222,
    "icon": null,
    "name": "TeamSpeak3 #CristalF.SRV.BR",
    "connect": "177.54.201.194:9987",
    "request": "177.54.201.194:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 3,
    "maxplayers": 32,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "BR",
    "status": true,
    "votes": 0,
    "points": 64,
    "add_date": 1769219716,
    "last_update": 1776361222,
    "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": 95,
    "language": "pt",
    "parked": false,
    "app": {
      "id": 1629110,
      "steam_id": 9000043,
      "name": "Teamspeak 3",
      "url": "teamspeak-3"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Kod örnekleri

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