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

text
https://api.gamemonitoring.in/servers/9972867
json
{
  "response": {
    "steam_id": null,
    "domain": "cosycraft.mc.gg",
    "id": 9972867,
    "ip": "88.211.230.132",
    "port": 25666,
    "query": 25666,
    "color": 0,
    "city": "London",
    "description": null,
    "game": 9000034,
    "owner": null,
    "boosts": 1,
    "last_offline": 1769713299,
    "score": 0,
    "last_online": 1776451911,
    "icon": null,
    "name": "Cosy Craft Our Own Cosy Community",
    "connect": "cosycraft.mc.gg:25666",
    "request": "88.211.230.132:25666",
    "map": null,
    "gamemode": null,
    "version": "Paper 1.21.10",
    "numplayers": 1,
    "maxplayers": 22,
    "bots": 0,
    "secured": null,
    "private": null,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 32,
    "add_date": 1754856272,
    "last_update": 1776451911,
    "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": 1625,
    "language": "en",
    "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/9972867");
$data = json_decode($json, true);
var_dump($data);