JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/1444131
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 1444131,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": "[{\"id\":\"2xvulasnp\",\"type\":\"image\",\"data\":{\"caption\":\"GORODOK x1.5 (MAX 3) VANILLA+ WIPE 21.03\",\"withBorder\":false,\"withBackground\":false,\"stretched\":true,\"file\":{\"url\":\"https://imgur.com/sXyUzoY.png\"}}},{\"id\":\"nXqNSFEqvj\",\"type\":\"paragraph\",\"data\":{\"text\":\"GORODOK x1.5 (MAX 3) VANILLA+ WIPE 21.03\"}},{\"id\":\"SVfI7gWa58\",\"type\":\"paragraph\",\"data\":{\"text\":\"- Ванильный полуклассический х1.5 сервер, с максимальным количеством игроков в пати Х3. Переработчики в рыбачке\"}},{\"id\":\"jBOiWvOxVh\",\"type\":\"paragraph\",\"data\":{\"text\":\"- Наш магазин - https://gorodok.survivalshop.org/\"}},{\"id\":\"YtoELJfL-t\",\"type\":\"paragraph\",\"data\":{\"text\":\"- Наша группа ВК - https://vk.com/gorodok_rust\"}},{\"id\":\"gz3IuQw9C_\",\"type\":\"paragraph\",\"data\":{\"text\":\"- Наш дискорд\"}},{\"id\":\"ZJw7qGGWyx\",\"type\":\"paragraph\",\"data\":{\"text\":\"https://discord.gg/fqsjxvWY\"}}]",
    "game": 252490,
    "owner": 100813,
    "boosts": 1,
    "last_offline": 1754645642,
    "last_online": 1751662820,
    "icon": null,
    "name": "Name is not set on server",
    "connect": null,
    "request": null,
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": null,
    "numplayers": 0,
    "maxplayers": 200,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1697302998,
    "last_update": 1754645642,
    "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": 13203,
    "language": "ru",
    "parked": true,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": {
      "username": "dasssssssssssssssssssssssssssss",
      "avatar": "9c83d54d-463a-49e8-9470-f2ba22f7d32b.jpg"
    },
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

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