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

text
https://api.gamemonitoring.in/servers/10454747
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 10454747,
    "ip": "185.213.240.230",
    "port": 27015,
    "query": 27015,
    "color": 0,
    "city": "Frankfurt am Main",
    "description": null,
    "game": 10,
    "owner": 139651,
    "boosts": 1,
    "last_offline": 1773545564,
    "score": 0,
    "last_online": 1776191410,
    "icon": null,
    "name": "Assassin'S [CoD:Mw2][Fast XP + 50 Level Start]",
    "connect": "185.213.240.230:27015",
    "request": "185.213.240.230:27015",
    "map": "de_dust4ever",
    "gamemode": "Counter-Strike",
    "version": "1.1.2.7/Stdio",
    "numplayers": 16,
    "maxplayers": 32,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 104,
    "add_date": 1760134185,
    "last_update": 1776191410,
    "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": 111,
    "language": "de",
    "parked": false,
    "app": {
      "id": 3,
      "steam_id": 10,
      "name": "Counter-Strike",
      "url": "counter-strike"
    },
    "server_owner": {
      "username": "AssassinS",
      "avatar": "no.jpg",
      "last_online": 1760134302
    },
    "mods": [],
    "disabled_modules": []
  }
}

कोड उदाहरण

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