JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/3702908
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 3702908,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": "![gm.link/u94215 GOLD RUST PVE | EVENT |SPACE|TRADE|KIT|TP|REMOVE](https://i.postimg.cc/05Ww2t9V/1.png)\nСервер создан в режиме PVE для любых игроков профи или новичкам. \r\nСамые удобные плагины,разнообразие событий и другое ждут вас!",
    "game": 252490,
    "owner": 94215,
    "boosts": 1,
    "last_offline": 1753434896,
    "last_online": 1749558630,
    "icon": null,
    "name": "Name is not set on server",
    "connect": null,
    "request": null,
    "map": "Custom Map",
    "gamemode": "Vanilla",
    "version": null,
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "DE",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1712233999,
    "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": 10166,
    "language": "de",
    "parked": true,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": {
      "username": "sansanych12",
      "avatar": "b8566a10-4f0a-4b35-b487-75b2154eac96.jpg"
    },
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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