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

text
https://api.gamemonitoring.in/servers/11637963
json
{
  "response": {
    "steam_id": "90286072511540227",
    "domain": null,
    "id": 11637963,
    "ip": "202.189.4.146",
    "port": 2010,
    "query": 2012,
    "color": 0,
    "city": "Beijing",
    "description": null,
    "game": 529180,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780567468,
    "last_online": 1780589455,
    "icon": null,
    "name": "★庆五一新开★双通1★金币可换搜1599 - (v100.5435",
    "connect": "202.189.4.146:2010",
    "request": "202.189.4.146:2012",
    "map": "DNL_ALL",
    "gamemode": "TestGameMode_C",
    "version": "1.0.0.0",
    "numplayers": 3,
    "maxplayers": 120,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CN",
    "status": true,
    "votes": 0,
    "points": 38,
    "add_date": 1779917161,
    "last_update": 1780589455,
    "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": 65,
    "language": "zh",
    "parked": false,
    "app": {
      "id": 180,
      "steam_id": 529180,
      "name": "Dark and Light",
      "url": "dark-and-light"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

कोड उदाहरण

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