JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/7466842
json
{
  "response": {
    "fps": 101,
    "fps_avg": 98,
    "entities_count": 57608,
    "world_seed": 1337,
    "world_size": 3250,
    "steam_id": "90286582584912902",
    "domain": null,
    "id": 7466842,
    "ip": "116.202.52.158",
    "port": 20520,
    "query": 20521,
    "color": 0,
    "city": "Falkenstein",
    "description": "РЖАВЫЙ АЛЬЯНС   \r\n Честная игра без доната. \r\n Периодичность вайпов один раз в месяц.  \r\n Стирание карты раз в две недели.  \r\n Рейты не ресурсы Х2  \r\n Нет лимита игроков в команде.  \r\n На сервере система tp, skin, kit. \r\n Вайп сервера 02.04 следующий 02.05.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780313653,
    "last_online": 1780602036,
    "icon": null,
    "name": "РЖАВЫЙ АЛЬЯНС | ДЛЯ НОВИЧКОВ",
    "connect": "116.202.52.158:20520",
    "request": "116.202.52.158:20521",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1739234717,
    "last_update": 1780602036,
    "banned": false,
    "wipe": 1780598605,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3197,
    "language": "de",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

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