JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11534867
json
{
  "response": {
    "steam_id": "90286043609356297",
    "domain": null,
    "id": 11534867,
    "ip": "185.229.237.79",
    "port": 16261,
    "query": 16261,
    "color": 0,
    "city": "Sant'Agata",
    "description": "Campagna mil sim della squadra hog of war https://discord.gg/yTv6rnhavu",
    "game": 108600,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780270402,
    "last_online": 1779397229,
    "icon": null,
    "name": "Hog of War Campagnia milsim",
    "connect": "185.229.237.79:16261",
    "request": "185.229.237.79:16261",
    "map": "Fort Benning B42;Fort JadeLake;",
    "gamemode": "Project Zomboid",
    "version": "42.18",
    "numplayers": 0,
    "maxplayers": 32,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "IT",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779355241,
    "last_update": 1780270402,
    "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": 9731,
    "language": "it",
    "parked": false,
    "app": {
      "id": 71,
      "steam_id": 108600,
      "name": "Project Zomboid",
      "url": "project-zomboid"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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