JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11394865
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 11394865,
    "ip": "85.190.162.99",
    "port": 10300,
    "query": 10301,
    "color": 0,
    "city": "Frankfurt am Main",
    "description": null,
    "game": 1527890,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776193279,
    "score": 0,
    "last_online": 1775376648,
    "icon": null,
    "name": null,
    "connect": null,
    "request": "85.190.162.99:10301",
    "map": null,
    "gamemode": null,
    "version": null,
    "numplayers": 0,
    "maxplayers": 16,
    "bots": 0,
    "secured": null,
    "private": true,
    "country": "DE",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1774597152,
    "last_update": 1776193279,
    "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": 4,
    "language": "de",
    "parked": false,
    "app": {
      "id": 1579582,
      "steam_id": 1527890,
      "name": "Dysterra",
      "url": "dysterra"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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