JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/1202455
json
{
  "response": {
    "fps": 120,
    "fps_avg": 121,
    "entities_count": 115476,
    "world_seed": 1624835129,
    "world_size": 4500,
    "steam_id": "90286437819460609",
    "domain": null,
    "id": 1202455,
    "ip": "185.189.255.162",
    "port": 35000,
    "query": 35010,
    "color": 0,
    "city": "Moscow",
    "description": "![Fly Rust Classic X2](https://pic.survivalhost.org/images/2024/08/28/FLY.png)\nДобро пожаловать на  сервер Fly Rust Классический ! Идеальный для новичков.\r\n \r\n* Рейты X 2 на ресурсы \r\n* Ускоренный переработчик \r\n* Без ограничений  на игроков по команде\r\n* Расписание очистки карт: каждую неделю\r\n* Очистка чертежей каждые две недели\r\n* Обнаружение читов и макросов\r\n* Активные НЕ ИГРАЮЩИЕ администраторы\r\n\r\nВК : https://vk.com/flyrust1\r\n\r\nWelcome to vanilla server Fly Rust Classic ! Perfect for beginners .\r\n\r\n* X 2 resource rates  \r\n* Accelerated refiner \r\n* No restrictions on teammates\r\n* Map wipe schedule : weekly\r\n* Blueprints wipe every biweekly\r\n* Anti-cheat and macros detection\r\n* Active NON playing admins\r\n\r\nVK : https://vk.com/flyrust1",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780225452,
    "last_online": 1780573235,
    "icon": null,
    "name": "Fly Rust Classic X2",
    "connect": "185.189.255.162:35000",
    "request": "185.189.255.162:35010",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "RU",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1691924320,
    "last_update": 1780573235,
    "banned": false,
    "wipe": 1780066016,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2419,
    "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/1202455");
$data = json_decode($json, true);
var_dump($data);