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

text
https://api.gamemonitoring.in/servers/589775
json
{
  "response": {
    "steam_id": null,
    "domain": "play.fishsurvives.com",
    "id": 589775,
    "ip": "104.248.108.169",
    "port": 25565,
    "query": 25565,
    "color": 0,
    "city": "North Bergen",
    "description": "",
    "game": 9000034,
    "owner": null,
    "boosts": 1,
    "last_offline": 1774752135,
    "score": null,
    "last_online": 1776809439,
    "icon": null,
    "name": "Homeland is a Public Multiplayer Survival WORLD.",
    "connect": "play.fishsurvives.com:25565",
    "request": "104.248.108.169:25565",
    "map": null,
    "gamemode": "FML",
    "version": "BungeeCord 1.8.x-26.1.x",
    "numplayers": 1,
    "maxplayers": 40,
    "bots": 0,
    "secured": null,
    "private": null,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 31,
    "add_date": 1669212258,
    "last_update": 1776809439,
    "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": 1387,
    "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/589775");
$data = json_decode($json, true);
var_dump($data);