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

text
https://api.gamemonitoring.in/servers/11142967
json
{
  "response": {
    "steam_id": 85568392935732420,
    "domain": null,
    "id": 11142967,
    "ip": "5.35.112.241",
    "port": 2004,
    "query": 2004,
    "color": 0,
    "city": "Moscow",
    "description": null,
    "game": 4000,
    "owner": 170996,
    "boosts": 1,
    "last_offline": 1776823348,
    "score": 3.7,
    "last_online": 1776355817,
    "icon": null,
    "name": "GOMIGRAD RU 1 Homicide",
    "connect": "5.35.112.241:2004",
    "request": "5.35.112.241:2004",
    "map": "gm_hmcd_rooftops",
    "gamemode": "homigrad_com",
    "version": "2025.03.26",
    "numplayers": 8,
    "maxplayers": 30,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 14,
    "add_date": 1771004335,
    "last_update": 1776823348,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": 1,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3481,
    "language": "ru",
    "parked": false,
    "app": {
      "id": 30,
      "steam_id": 4000,
      "name": "Garry's Mod",
      "url": "garrys-mod"
    },
    "server_owner": {
      "username": "marden",
      "avatar": "792f7750-9fdc-471a-8369-ab10a0077b42.jpg",
      "last_online": 1775223988
    },
    "mods": [
      {
        "id": 2225,
        "name": "homigrad"
      }
    ],
    "disabled_modules": []
  }
}

कोड उदाहरण

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