JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11492131
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 11492131,
    "ip": "161.132.39.36",
    "port": 27015,
    "query": 27015,
    "color": 0,
    "city": "Macusani",
    "description": "[{\"id\":\"bNuebLJDrN\",\"type\":\"paragraph\",\"data\":{\"text\":\"Unanse al grupo de Discord:\"}},{\"id\":\"cwpiA9zoxQ\",\"type\":\"paragraph\",\"data\":{\"text\":\"https://discord.gg/H3QjURRzEV\"}}]",
    "game": 550,
    "owner": 193282,
    "boosts": 1,
    "last_offline": 1778508740,
    "score": 0,
    "last_online": 1778356214,
    "icon": null,
    "name": "Left 4 Dead Pachacutec",
    "connect": "161.132.39.36:27015",
    "request": "161.132.39.36:27015",
    "map": "c1m1_hotel",
    "gamemode": "left4dead2",
    "version": "2243",
    "numplayers": 0,
    "maxplayers": 4,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "PE",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1778205647,
    "last_update": 1778508740,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 1,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 12949,
    "language": "es",
    "parked": false,
    "app": {
      "id": 11,
      "steam_id": 550,
      "name": "Left 4 Dead 2",
      "url": "left-4-dead-2"
    },
    "server_owner": {
      "username": "blackmesarojo",
      "avatar": "b2dcae69-03ce-4fd5-8d25-00332438ccea.png",
      "last_online": 1778282308
    },
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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