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

text
https://api.gamemonitoring.in/servers/7997807
json
{
  "response": {
    "steam_id": "85568392933423517",
    "domain": null,
    "id": 7997807,
    "ip": "217.182.199.16",
    "port": 28030,
    "query": 28030,
    "color": 0,
    "city": "Limburg an der Lahn",
    "description": null,
    "game": 730,
    "owner": null,
    "boosts": 1,
    "last_offline": 1773885719,
    "score": 0,
    "last_online": 1776339054,
    "icon": null,
    "name": "CS2 DUELS | 1v1 #209 [DE] — CYBERSHOKE.NET (ARENA MAPS)",
    "connect": "217.182.199.16:28030",
    "request": "217.182.199.16:28030",
    "map": "duels_aim_map",
    "gamemode": "Counter-Strike 2",
    "version": "1.41.4.1",
    "numplayers": 0,
    "maxplayers": 64,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1741176647,
    "last_update": 1776339054,
    "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": 7518,
    "language": "de",
    "parked": false,
    "app": {
      "id": 2,
      "steam_id": 730,
      "name": "Counter-Strike 2",
      "url": "counter-strike-2"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

कोड उदाहरण

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