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

text
https://api.gamemonitoring.in/servers/5560320
json
{
  "response": {
    "steam_id": "85568392927410092",
    "domain": null,
    "id": 5560320,
    "ip": "156.236.84.151",
    "port": 27010,
    "query": 27010,
    "color": 0,
    "city": "Los Angeles",
    "description": null,
    "game": 304930,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775195532,
    "score": 0,
    "last_online": 1776099633,
    "icon": null,
    "name": "Silly Server",
    "connect": "156.236.84.151:27010",
    "request": "156.236.84.151:27010",
    "map": "Russia",
    "gamemode": "Frequently changing maps so ask an admin for info",
    "version": "1.0.0.0",
    "numplayers": 0,
    "maxplayers": 18,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1723304951,
    "last_update": 1776099633,
    "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": 203,
    "language": "en",
    "parked": false,
    "app": {
      "id": 48,
      "steam_id": 304930,
      "name": "Unturned",
      "url": "unturned"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

कोड उदाहरण

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