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

text
https://api.gamemonitoring.in/servers/10481795
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 10481795,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": null,
    "game": 581320,
    "owner": 140770,
    "boosts": 1,
    "last_offline": 1762754560,
    "score": 0,
    "last_online": 1761835829,
    "icon": null,
    "name": "komagroup @ Sandstorm",
    "connect": null,
    "request": null,
    "map": "Farmhouse",
    "gamemode": "Checkpoint",
    "version": null,
    "numplayers": 0,
    "maxplayers": 10,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "DE",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1760827287,
    "last_update": 1762754560,
    "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": 361,
    "language": "de",
    "parked": true,
    "app": {
      "id": 23489,
      "steam_id": 581320,
      "name": "Insurgency: Sandstorm",
      "url": "insurgency-sandstorm"
    },
    "server_owner": {
      "username": null,
      "avatar": "b9db5ded-72c4-4c06-a02b-172a291dc1c1.jpg",
      "last_online": 1767462056
    },
    "mods": [],
    "disabled_modules": []
  }
}

कोड उदाहरण

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