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

text
https://api.gamemonitoring.in/servers/2258227
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 2258227,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": "Хостинг SurvivalHost\r\n Сайт хостинга - hostingrust.ru\r\n Игровые сервера с защитой от DDoS атак:\r\n > Rust\r\n > ARK\r\n > ATLAS\r\n > DayZ\r\n > Unturned\r\n > Conan Exiles\r\n > и другие...",
    "game": 252490,
    "owner": 101631,
    "boosts": 1,
    "last_offline": 1750457066,
    "last_online": 1743952259,
    "icon": null,
    "name": "COLD RUST MAX2",
    "connect": null,
    "request": null,
    "map": "Custom Map",
    "gamemode": "Vanilla",
    "version": null,
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1702892449,
    "last_update": 1750457066,
    "banned": false,
    "wipe": 1743946340,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 13206,
    "language": "ru",
    "parked": true,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": {
      "username": "kolya_kulagin",
      "avatar": "34536624-8059-4cba-a610-592e1cd80c4a.jpg"
    },
    "mods": [],
    "disabled_modules": []
  }
}

कोड उदाहरण

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