JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/9731534
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 9731534,
    "ip": "173.240.150.201",
    "port": 2310,
    "query": 2310,
    "color": 0,
    "city": "Maidenhead",
    "description": null,
    "game": 1766060,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775173892,
    "score": 0,
    "last_online": 1776456094,
    "icon": null,
    "name": "Dedicated",
    "connect": "173.240.150.201:2310",
    "request": "173.240.150.201:2310",
    "map": "Main Map",
    "gamemode": null,
    "version": null,
    "numplayers": 0,
    "maxplayers": 16,
    "bots": 0,
    "secured": null,
    "private": null,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1752145484,
    "last_update": 1776456094,
    "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": 61,
    "language": "en",
    "parked": false,
    "app": {
      "id": 1531516,
      "steam_id": 1766060,
      "name": "HumanitZ",
      "url": "humanitz"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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