JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/543297
json
{
  "response": {
    "fps": 107,
    "fps_avg": 103,
    "entities_count": 106293,
    "world_seed": 2116633843,
    "world_size": 4250,
    "steam_id": "90286613385450501",
    "domain": null,
    "id": 543297,
    "ip": "185.189.255.102",
    "port": 35200,
    "query": 35210,
    "color": 0,
    "city": "Moscow",
    "description": "![MAD RUST | X10](https://s3.twcstorage.ru/18982670-madrust/x10head.png)\nДобро пожаловать на игровой проект MAD RUST!\r\n\r\nОсобенности сервера MAD RUST | x10:\r\n- Рейты х10\r\n- Киты, Хоум, Кланы, Трейд, Ивенты и т.д.\r\n- Голосование за пропуск ночи.\r\n- Донат магазин с обширным ассортиментом.\r\n- Стабильная работа сервера, uptime 24\\7.\r\n- Активная и отзывчивая администрация\r\n- Лояльные правила сервера.\r\n\r\nЕженедельный вайп, каждый четверг в ~21:00 по МСК.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780641263,
    "last_online": 1780639231,
    "icon": null,
    "name": "MAD RUST | X10",
    "connect": "185.189.255.102:35200",
    "request": "185.189.255.102:35210",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1644057654,
    "last_update": 1780641263,
    "banned": false,
    "wipe": 1780599844,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 9577,
    "language": "ru",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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