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

text
https://api.gamemonitoring.in/servers/11181515
json
{
  "response": {
    "steam_id": "90285143862156289",
    "domain": null,
    "id": 11181515,
    "ip": "163.123.238.138",
    "port": 7777,
    "query": 7778,
    "color": 0,
    "city": "Grand Rapids",
    "description": null,
    "game": 2168680,
    "owner": null,
    "boosts": 1,
    "last_offline": 1777500156,
    "score": 0,
    "last_online": 1777501246,
    "icon": null,
    "name": "[Dedicated PvP] | https://www.atomtaskforce.com |",
    "connect": "163.123.238.138:7777",
    "request": "163.123.238.138:7778",
    "map": "Heartland | Escalation",
    "gamemode": "Nuclear Option Server",
    "version": "0.33.0",
    "numplayers": 0,
    "maxplayers": 64,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1772229742,
    "last_update": 1777501246,
    "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": 49,
    "language": "en",
    "parked": false,
    "app": {
      "id": 1615382,
      "steam_id": 2168680,
      "name": "Nuclear Option",
      "url": "nuclear-option"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

कोड उदाहरण

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