JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/10914228
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 10914228,
    "ip": "45.95.31.100",
    "port": 27015,
    "query": 27015,
    "color": 0,
    "city": "Moscow",
    "description": "[{\"id\":\"4ESuM5fCXD\",\"type\":\"paragraph\",\"data\":{\"text\":\"🌟 [CS2] BattleLane.ru \"}},{\"id\":\"sY_H9qmoK7\",\"type\":\"paragraph\",\"data\":{\"text\":\"🗺️ awp_lego_2 и другие AWP карты\"}},{\"id\":\"OnDQlT2Pyw\",\"type\":\"paragraph\",\"data\":{\"text\":\"⚡ Стабильный FPS, VAC protected  \"}},{\"id\":\"RIXAnjZZZg\",\"type\":\"paragraph\",\"data\":{\"text\":\"💎 Бесплатная випка за актив | Подключайся!\"}},{\"id\":\"kICje7ajrO\",\"type\":\"paragraph\",\"data\":{\"text\":\"Discord: discord.com/invite/WRmqCgfyDf\"}}]",
    "game": 730,
    "owner": 155053,
    "boosts": 1,
    "last_offline": 1775949071,
    "score": 0,
    "last_online": 1775754612,
    "icon": null,
    "name": "[CS2] BattleLane.ru - DUST2 #1 | !KNIFE !SKINS",
    "connect": "45.95.31.100:27015",
    "request": "45.95.31.100:27015",
    "map": "de_dust2",
    "gamemode": "Counter-Strike 2",
    "version": null,
    "numplayers": 0,
    "maxplayers": 24,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1768414480,
    "last_update": 1775949071,
    "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": 16256,
    "language": "ru",
    "parked": false,
    "app": {
      "id": 2,
      "steam_id": 730,
      "name": "Counter-Strike 2",
      "url": "counter-strike-2"
    },
    "server_owner": {
      "username": "battlelane",
      "avatar": "b79c2037-ccf0-4d4a-8982-9cdfd12e5b96.jpg",
      "last_online": 1771930821
    },
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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