JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/9367587
json
{
  "response": {
    "fps": 281,
    "fps_avg": 279,
    "entities_count": 56719,
    "world_seed": 846267372,
    "world_size": 3500,
    "steam_id": "90286578805890049",
    "domain": null,
    "id": 9367587,
    "ip": "37.230.162.30",
    "port": 20000,
    "query": 20001,
    "color": 0,
    "city": "Moscow",
    "description": "![B2 FAST [DUO | X3 | TP | KITS | FPS+] 03.06 #bear](https://cdn.bxrust.ru/b2.png)\nМодифицированный дуо сервер с максимальным FPS\nСкорость добычи ресурсов x3, скрап x3, переплавка x3\nПереработчики в деревнях, улучшенный лут, умеренные киты\nТорговля, вывод батареек на деньги, оповещение о рейде\nАнти-чит скрывает лут от просвета\nПромо-коды и подарки в игровом магазине",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780476871,
    "last_online": 1780548626,
    "icon": null,
    "name": "B2 FAST [DUO | X3 | TP | KITS | FPS+] 03.06 #bear",
    "connect": "37.230.162.30:20000",
    "request": "37.230.162.30:20001",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 4,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "RU",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1747825732,
    "last_update": 1780548626,
    "banned": false,
    "wipe": 1780476933,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1350,
    "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/9367587");
$data = json_decode($json, true);
var_dump($data);