JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/9089710
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 9089710,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": null,
    "game": 1766060,
    "owner": 120380,
    "boosts": 1,
    "last_offline": 1753434896,
    "score": 0,
    "last_online": 1750122033,
    "icon": null,
    "name": "Name is not set on server",
    "connect": null,
    "request": null,
    "map": "Main Map",
    "gamemode": "HumanitZ",
    "version": null,
    "numplayers": 0,
    "maxplayers": 16,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "GB",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1747112675,
    "last_update": 1753434896,
    "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": 262,
    "language": "en",
    "parked": true,
    "app": {
      "id": 1531516,
      "steam_id": 1766060,
      "name": "HumanitZ",
      "url": "humanitz"
    },
    "server_owner": {
      "username": "Gameaholic",
      "avatar": "06bf906c-494c-4a36-81aa-37ce56f1e418.jpg",
      "last_online": 1747875513
    },
    "mods": [],
    "disabled_modules": [
      "chat"
    ]
  }
}

Exemple de cod

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