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

text
https://api.gamemonitoring.in/servers/11161538
json
{
  "response": {
    "steam_id": "90282315561458715",
    "domain": null,
    "id": 11161538,
    "ip": "65.109.126.180",
    "port": 20004,
    "query": 20005,
    "color": 0,
    "city": "Helsinki",
    "description": null,
    "game": 892970,
    "owner": null,
    "boosts": 1,
    "last_offline": 1774697546,
    "score": 0,
    "last_online": 1776205847,
    "icon": null,
    "name": "Valliheimo",
    "connect": "65.109.126.180:20004",
    "request": "65.109.126.180:20005",
    "map": "Valliheimo",
    "gamemode": null,
    "version": "0.221.12",
    "numplayers": 0,
    "maxplayers": 10,
    "bots": 0,
    "secured": false,
    "private": true,
    "country": "FI",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1772228244,
    "last_update": 1776205847,
    "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": 6496,
    "language": "fi",
    "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/11161538");
$data = json_decode($json, true);
var_dump($data);