JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/9632309
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 9632309,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": null,
    "game": 4000,
    "owner": 133671,
    "boosts": 1,
    "last_offline": 1762840889,
    "score": 0,
    "last_online": 1761956429,
    "icon": null,
    "name": "Metrostroi Light Server",
    "connect": null,
    "request": null,
    "map": "gm_metro_chapaevskaya_line_redu",
    "gamemode": "Sandbox",
    "version": null,
    "numplayers": 0,
    "maxplayers": 10,
    "bots": 0,
    "secured": false,
    "private": true,
    "country": "UA",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1750865499,
    "last_update": 1762840889,
    "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": 3753,
    "language": "uk",
    "parked": true,
    "app": {
      "id": 30,
      "steam_id": 4000,
      "name": "Garry's Mod",
      "url": "garrys-mod"
    },
    "server_owner": {
      "username": "nikitasoroka1708",
      "avatar": "8560c396-ac65-4c4a-88a3-53aafa42f9f9.jpg",
      "last_online": 1769679167
    },
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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