JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/2685034
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 2685034,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": "![gm.link/u30595](https://gspics.org/images/2024/03/03/0edmYI.jpg)\n۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩ \r\n PVE РЕЖИМ\r\n \r\n - МНОГО ИВЕНТОВ \r\n - СТАБИЛЬНАЯ РАБОТА СЕРВЕРА \r\n - СТАНДАРТНЫЕ NPC \r\n - НОЧЬ ДЛИТСЯ 10 МИНУТ\r\n - - РЕСТАРТ 1 РАЗ В СУТКИ \r\n - БЕЗ КОМАНД В ЧАТЕ, ВСЕ НА ГРАФИЧЕСКОМ ИНТЕРФЕЙСЕ \r\n - КИТЫ \r\n - РЕЙДБАЗЫ \r\n - НЕЛУТАЙКА\r\n - СКИЛЛЫ \r\n - СИСТЕМА УРОВНЕЙ \r\n - КАСТОМНЫЙ КРАФТ \r\n - СКИНЫ \r\n - МАГАЗИН,ЭКОНОМИКА \r\n - СУДНАЯ НОЧЬ (Полнеое PVP) 2 раза в месяц \r\n - ВАЙП 2 РАЗА В МЕСЯЦ \r\n ۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩۩",
    "game": 252490,
    "owner": 30595,
    "boosts": 1,
    "last_offline": 1750457066,
    "last_online": 1734217904,
    "icon": null,
    "name": "A Rust Server",
    "connect": null,
    "request": null,
    "map": "Procedural Map",
    "gamemode": null,
    "version": null,
    "numplayers": 0,
    "maxplayers": 250,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "FI",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1706109322,
    "last_update": 1750457066,
    "banned": false,
    "wipe": 1734216175,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 12958,
    "language": "fi",
    "parked": true,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": {
      "username": "Alex88",
      "avatar": "298d23c8-66b2-49a9-8d78-0d9ddfff264e.jpg"
    },
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

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