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

text
https://api.gamemonitoring.in/servers/11664898
json
{
  "response": {
    "steam_id": "85568392924629110",
    "domain": null,
    "id": 11664898,
    "ip": "222.129.36.21",
    "port": 27019,
    "query": 27019,
    "color": 0,
    "city": "Beijing",
    "description": null,
    "game": 304930,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780179086,
    "last_online": 1780543306,
    "icon": "https://z3.ax1x.com/2021/04/16/chZWgH.jpg",
    "name": "鹦鹉核心3服#高倍掉落#PVE养老#日本地图#",
    "connect": "222.129.36.21:27019",
    "request": "222.129.36.21:27019",
    "map": "Japan",
    "gamemode": "新服开荒|霓虹地图|PVE生存|QQ:984592371",
    "version": "3.26.3.2",
    "numplayers": 0,
    "maxplayers": 24,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CN",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1780179086,
    "last_update": 1780543306,
    "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": 1523,
    "language": "zh",
    "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/11664898");
$data = json_decode($json, true);
var_dump($data);