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

text
https://api.gamemonitoring.in/servers/11480898
json
{
  "response": {
    "steam_id": 85568392935867090,
    "domain": null,
    "id": 11480898,
    "ip": "110.42.96.106",
    "port": 42071,
    "query": 42071,
    "color": 0,
    "city": "Ningbo",
    "description": null,
    "game": 304930,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776334423,
    "score": 0,
    "last_online": 1776807736,
    "icon": " https://tc.tyteam.cn/260206/6q4jSmbG_86d6277f9e2f0708ba7d9c70ea24b899a901f242_1770356160.jpg",
    "name": "莎拉的原版纯净小服务器",
    "connect": "110.42.96.106:42071",
    "request": "110.42.96.106:42071",
    "map": "Russia",
    "gamemode": "感谢你的游玩,欢迎加群905726864</colo",
    "version": "3.26.2.2",
    "numplayers": 0,
    "maxplayers": 45,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CN",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1774979225,
    "last_update": 1776807736,
    "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": 698,
    "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/11480898");
$data = json_decode($json, true);
var_dump($data);