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

text
https://api.gamemonitoring.in/servers/505288
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 505288,
    "ip": "195.2.81.134",
    "port": 28960,
    "query": 28960,
    "color": 0,
    "city": "Moscow",
    "description": null,
    "game": 7940,
    "owner": null,
    "boosts": 1,
    "last_offline": 1773201730,
    "score": null,
    "last_online": 1775947837,
    "icon": null,
    "name": "[CGC] NAZEMNAY VOINA",
    "connect": "195.2.81.134:28960",
    "request": "195.2.81.134:28960",
    "map": "mp_killhouse_2",
    "gamemode": "Call of Duty 4 - Modern Warfare",
    "version": "CoD4 X - linux-i386-custom build 1221 Apr 11 2026",
    "numplayers": 0,
    "maxplayers": 26,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "RU",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1643495455,
    "last_update": 1775947837,
    "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": 67,
    "language": "ru",
    "parked": false,
    "app": {
      "id": 1629111,
      "steam_id": 7940,
      "name": "Call of Duty 4: Modern Warfare",
      "url": "call-of-duty-4-modern-warfare"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

कोड उदाहरण

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