JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/6399629
json
{
  "response": {
    "fps": 168,
    "fps_avg": 166,
    "entities_count": 153917,
    "world_seed": 1337,
    "world_size": 4250,
    "steam_id": "90286604687628308",
    "domain": null,
    "id": 6399629,
    "ip": "95.31.118.91",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Moscow",
    "description": "![NEW RUST Server PvE [RAID/ZOMBIE/PLUGIN/KIT]](https://i.imgur.com/Th8kKEV.jpeg)\n- Настоящий PvE-сервер - полностью отключён урон!, \r\n- Рейд-базы с ботами и лутом! \r\n- Различные скины на предметы и одежду \r\n- Множество плагинов, зомби, умные животные! \r\n- Увеличенные стаки, добыча х10! \r\n- Неломаемое оружие и инструменты! \r\n- Вызов мини-коптера и вертолётов для всех \r\n - KIT-ящики с различными наборами \r\n- Рейды, корабли, самолёты \r\n =================================",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780598072,
    "last_online": 1780608028,
    "icon": null,
    "name": "NEW RUST Server PvE [RAID/ZOMBIE/PLUGIN/KIT]",
    "connect": "95.31.118.91:28015",
    "request": "95.31.118.91:28017",
    "map": "Custom Map",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 5,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "RU",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1729806602,
    "last_update": 1780608028,
    "banned": false,
    "wipe": 1780595430,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1672,
    "language": "ru",
    "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/6399629");
$data = json_decode($json, true);
var_dump($data);