JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/9967321
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 9967321,
    "ip": "181.166.112.194",
    "port": 27316,
    "query": 27316,
    "color": 0,
    "city": "Tandil",
    "description": null,
    "game": 240,
    "owner": 168681,
    "boosts": 1,
    "last_offline": 1776123074,
    "score": 0,
    "last_online": 1776124815,
    "icon": null,
    "name": "[Millennials™] Jugando GunGame",
    "connect": "181.166.112.194:27316",
    "request": "181.166.112.194:27316",
    "map": "$2010$",
    "gamemode": "GunGame",
    "version": "1.0.0.34",
    "numplayers": 0,
    "maxplayers": 24,
    "bots": 4,
    "secured": false,
    "private": false,
    "country": "AR",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1754764100,
    "last_update": 1776124815,
    "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": 265,
    "language": "es",
    "parked": false,
    "app": {
      "id": 5,
      "steam_id": 240,
      "name": "Counter-Strike: Source",
      "url": "counter-strike-source"
    },
    "server_owner": {
      "username": "claudio_mi_o",
      "avatar": "c8c6256c-9d27-4ee0-a9f7-7da335f890d8.jpg",
      "last_online": 1771843579
    },
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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