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

text
https://api.gamemonitoring.in/servers/751707
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 751707,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": "## LOSTURAL|DAYZ|START LOOT|VANILA++ для DayZ версии 1.20.155844.\n------------------------------------\nРасположен в стране Россия.\nПодключение к серверу: 212.22.93.98:2332\n### **[VKGROUP](http://vk.com/lostural)**",
    "game": 221100,
    "owner": 33716,
    "boosts": 1,
    "last_offline": 1750457066,
    "last_online": 1740625221,
    "icon": null,
    "name": "PVE-server|DayZ_Expansion-mod_Only",
    "connect": null,
    "request": null,
    "map": "chernarusplus",
    "gamemode": null,
    "version": null,
    "numplayers": 0,
    "maxplayers": 20,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1675344651,
    "last_update": 1750457066,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 14833,
    "language": "ru",
    "parked": true,
    "app": {
      "id": 63,
      "steam_id": 221100,
      "name": "DayZ",
      "url": "dayz"
    },
    "server_owner": {
      "username": "tokarbossss",
      "avatar": "b5ff80d0-8b4e-4e9d-bc54-eb0551df62c6.jpg"
    },
    "mods": [],
    "disabled_modules": []
  }
}

कोड उदाहरण

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