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

text
https://api.gamemonitoring.in/servers/7427159
json
{
  "response": {
    "steam_id": null,
    "domain": "brilliantw.net",
    "id": 7427159,
    "ip": "157.66.166.13",
    "port": 25565,
    "query": 25565,
    "color": 0,
    "city": "Zhubei",
    "description": null,
    "game": 9000034,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776452641,
    "score": 0,
    "last_online": 1776835355,
    "icon": null,
    "name": "‹ ʙʀɪʟʟɪᴀɴᴛᴡ.ɴᴇᴛ › ₁.₂₀.₆ ⁃ ₂₆.₁.₂",
    "connect": "brilliantw.net:25565",
    "request": "157.66.166.13:25565",
    "map": null,
    "gamemode": "FML",
    "version": "§7請使用 §c1.20.6 §7~ §c26.1 §7版本連線!",
    "numplayers": 29,
    "maxplayers": 300,
    "bots": 0,
    "secured": null,
    "private": null,
    "country": "TW",
    "status": true,
    "votes": 0,
    "points": 34,
    "add_date": 1739203468,
    "last_update": 1776835355,
    "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": 865,
    "language": "zh",
    "parked": false,
    "app": {
      "id": 169,
      "steam_id": 9000034,
      "name": "Minecraft",
      "url": "minecraft"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

कोड उदाहरण

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