JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/5635163
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 5635163,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": "Moscow",
    "description": "[{\"id\":\"eS9ZueMI0t\",\"type\":\"paragraph\",\"data\":{\"text\":\"Discord - https://discord.com/invite/razdor-dayz\"}}]",
    "game": 221100,
    "owner": 139582,
    "boosts": 1,
    "last_offline": 1766289748,
    "score": 5,
    "last_online": 1765414811,
    "icon": null,
    "name": "Last Day of Life| 3pp| vanila++ \\ OBT",
    "connect": null,
    "request": null,
    "map": "chernarusplus",
    "gamemode": null,
    "version": null,
    "numplayers": 0,
    "maxplayers": 60,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1723730553,
    "last_update": 1766289748,
    "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": 4339,
    "language": "ru",
    "parked": true,
    "app": {
      "id": 63,
      "steam_id": 221100,
      "name": "DayZ",
      "url": "dayz"
    },
    "server_owner": {
      "username": "YOstiCK",
      "avatar": "e1d4a15c-673d-4665-9513-ab543be00697.jpg",
      "last_online": 1768606338
    },
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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