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

text
https://api.gamemonitoring.in/servers/11579223
json
{
  "response": {
    "steam_id": 90286161569022990,
    "domain": null,
    "id": 11579223,
    "ip": "124.121.140.142",
    "port": 7707,
    "query": 28852,
    "color": 0,
    "city": "Bangkok",
    "description": null,
    "game": 1250,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779356956,
    "last_online": 1779826949,
    "icon": null,
    "name": "Loading",
    "connect": "124.121.140.142:7707",
    "request": "124.121.140.142:28852",
    "map": "KF-6PointerV2",
    "gamemode": "Killing Floor",
    "version": "1.0.6.5",
    "numplayers": 0,
    "maxplayers": 6,
    "bots": 0,
    "secured": true,
    "private": true,
    "country": "TH",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1779356956,
    "last_update": 1779826949,
    "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": 358,
    "language": "th",
    "parked": false,
    "app": {
      "id": 50,
      "steam_id": 1250,
      "name": "Killing Floor",
      "url": "killing-floor"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

कोड उदाहरण

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