JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/6234088
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 6234088,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": "![gm.link/u105738 Korona Rust X3|MAX3|TP|KITS](https://i.postimg.cc/66PJ1Dns/server-start.jpg)\n--- Тебя приветствуем Мы, пострадавшие от короны, мы выжившие ---\r\n---Тут тебя ждут...---\r\nРесурсы - Х3, Печи - Х3\r\nВыживших в команде - MAX 3\r\nУскоренный крафт\r\nДля более комфортного выживания используй - Kits, TP\r\nВайп проекта раз в две недели, ежедневный рестарт в 01.00 по МСК\r\n☣ ☢ 😷 ☢ 😷 ☢ ☣\r\n--- We welcome you, the survivors of the crown, we are the ones who survived ---\r\n--- Here, you will be awaited... ---\r\nResources - X3, Furnaces - X3\r\nMax survivors in a team - 3\r\nAccelerated crafting\r\nFor a more comfortable survival, use - Kits, TP\r\nProject wipe every two weeks, daily restart at 01.00 MSK",
    "game": 252490,
    "owner": 105738,
    "boosts": 1,
    "last_offline": 1750457064,
    "last_online": 1741734629,
    "icon": null,
    "name": "Korona Rust X3|MAX3|TP|KITS",
    "connect": null,
    "request": null,
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": null,
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "BY",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1728492542,
    "last_update": 1750457064,
    "banned": false,
    "wipe": 1741336939,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 13293,
    "language": "be",
    "parked": true,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": {
      "username": "vivikbar",
      "avatar": "0fc470a9-c9c0-4608-ab78-d7291cb045ae.jpg"
    },
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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