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

text
https://api.gamemonitoring.in/servers/218879
json
{
  "response": {
    "steam_id": "85568392921468521",
    "domain": null,
    "id": 218879,
    "ip": "66.85.80.163",
    "port": 27090,
    "query": 27090,
    "color": 0,
    "city": "Chicago",
    "description": "",
    "game": 440,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775899916,
    "score": null,
    "last_online": 1775950821,
    "icon": null,
    "name": "SG-Gaming.net - MGE AllClass/NoElo",
    "connect": "66.85.80.163:27090",
    "request": "66.85.80.163:27090",
    "map": "mge_training_v8_beta4b",
    "gamemode": "MGE ALL CLASS",
    "version": "10515055",
    "numplayers": 4,
    "maxplayers": 24,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 37,
    "add_date": 1582979128,
    "last_update": 1775950821,
    "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": 195,
    "language": "en",
    "parked": false,
    "app": {
      "id": 24,
      "steam_id": 440,
      "name": "Team Fortress 2",
      "url": "team-fortress-2"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

कोड उदाहरण

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