प्रोग्राम, वेबसाइट और अन्य के लिए JSON

text
https://api.gamemonitoring.in/servers/688018
json
{
  "response": {
    "fps": 426,
    "fps_avg": 412,
    "entities_count": 10744,
    "world_seed": 1500,
    "world_size": 1000,
    "steam_id": "90286516278663189",
    "domain": null,
    "id": 688018,
    "ip": "185.189.255.246",
    "port": 35700,
    "query": 35710,
    "color": 0,
    "city": "Moscow",
    "description": "![SmallRust | Small map | One grid | Max 3 | X2](https://gspics.org/images/2023/08/23/0oxsSv.png)\n-Welcome to SmallRust |  -Добро пожаловать в SmallRust\r\n-SOLO/DUO/TRIO ONLY   |  -ТОЛЬКО СОЛО/ДУО/ТРИО\r\n-Custom Map           |  -Кастомная карта\r\n-2X FARM AND LOOT     |  -2X РЕЙТЫ\r\n-SKIPNIGTH VOTE       |  -ПРОПУСТИТЬ НОЧНОЕ ГОЛОСОВАНИЕ\r\n-ALL KEY CARDS        |  -ВСЕ КАРТЫ ДОСТУПА\r\n-SMALL MAP            |  -МАЛЕНЬКАЯ КАРТА\r\n-BIGGER STACKSIZE     |  -БОЛЬШИЕ СТАКИ",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780056226,
    "last_online": 1780545635,
    "icon": null,
    "name": "SmallRust | Small map | One grid | Max 3 | X2",
    "connect": "185.189.255.246:35700",
    "request": "185.189.255.246:35710",
    "map": "Custom Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "RU",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1672001751,
    "last_update": 1780545635,
    "banned": false,
    "wipe": 1780404210,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1976,
    "language": "ru",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

कोड उदाहरण

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