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

text
https://api.gamemonitoring.in/servers/10737786
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 10737786,
    "ip": "145.239.135.85",
    "port": 30151,
    "query": 30151,
    "color": 0,
    "city": "Wroclaw",
    "description": null,
    "game": 9000034,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776075752,
    "score": 0,
    "last_online": 1776088822,
    "icon": null,
    "name": "ₓ˚. ୭ ˚○◦˚ RGMC.PL .˚◦○˚ ୧ .˚ₓ KONIEC TRYBU SURVIVAL V3 DZIS 20:00 <- GM 1 ALL",
    "connect": "145.239.135.85:30151",
    "request": "145.239.135.85:30151",
    "map": null,
    "gamemode": null,
    "version": "Velocity 1.7.2-1.21.11",
    "numplayers": 210,
    "maxplayers": 2000,
    "bots": 0,
    "secured": null,
    "private": null,
    "country": "PL",
    "status": true,
    "votes": 0,
    "points": 35,
    "add_date": 1766250148,
    "last_update": 1776088822,
    "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": 1066,
    "language": "pl",
    "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/10737786");
$data = json_decode($json, true);
var_dump($data);