JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/9851325
json
{
  "response": {
    "steam_id": "90284632440875024",
    "domain": null,
    "id": 9851325,
    "ip": "54.37.244.126",
    "port": 12881,
    "query": 13881,
    "color": 0,
    "city": "London",
    "description": null,
    "game": 393420,
    "owner": null,
    "boosts": 1,
    "last_offline": 1774899129,
    "score": 0,
    "last_online": 1776589344,
    "icon": null,
    "name": "Official World Infinite",
    "connect": "54.37.244.126:12881",
    "request": "54.37.244.126:13881",
    "map": "nullius",
    "gamemode": "Hurtworld",
    "version": "191",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": true,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1753209975,
    "last_update": 1776589344,
    "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": 28,
    "language": "en",
    "parked": false,
    "app": {
      "id": 134,
      "steam_id": 393420,
      "name": "Hurtworld",
      "url": "hurtworld"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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