JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/2512581
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 2512581,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": "",
    "game": 252490,
    "owner": 52294,
    "boosts": 1,
    "last_offline": 1759763036,
    "last_online": 1756212625,
    "icon": null,
    "name": "[EU] AVOCADO RUST X1 | NOLIMIT | CLASSIC | CLAN | WIPE 25.08",
    "connect": null,
    "request": null,
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": null,
    "numplayers": 0,
    "maxplayers": 200,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "DE",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1705499556,
    "last_update": 1759763036,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 13043,
    "language": "de",
    "parked": true,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": {
      "username": "gggggggg555555",
      "avatar": "4d59d623-0144-40e7-bdfb-cee648c996de.jpg"
    },
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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