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

text
https://api.gamemonitoring.in/servers/11646594
json
{
  "response": {
    "steam_id": "90286357121045526",
    "domain": null,
    "id": 11646594,
    "ip": "87.104.57.146",
    "port": 4273,
    "query": 4274,
    "color": 0,
    "city": "Fensmark",
    "description": null,
    "game": 892970,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470424,
    "last_online": 1780590152,
    "icon": null,
    "name": "The Mighty Neurodivergent Berserkers",
    "connect": "87.104.57.146:4273",
    "request": "87.104.57.146:4274",
    "map": "The Mighty Neurodivergent Berse",
    "gamemode": null,
    "version": "0.221.12",
    "numplayers": 0,
    "maxplayers": 10,
    "bots": 0,
    "secured": false,
    "private": true,
    "country": "DK",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1780177541,
    "last_update": 1780590152,
    "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": 8672,
    "language": "da",
    "parked": false,
    "app": {
      "id": 34967,
      "steam_id": 892970,
      "name": "Valheim",
      "url": "valheim"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

कोड उदाहरण

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