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

text
https://api.gamemonitoring.in/servers/11668385
json
{
  "response": {
    "steam_id": "90286525821761547",
    "domain": null,
    "id": 11668385,
    "ip": "46.13.86.9",
    "port": 4200,
    "query": 4201,
    "color": 0,
    "city": "Žatec",
    "description": "test server by de_roman",
    "game": 619910,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780179817,
    "last_online": 1780437029,
    "icon": null,
    "name": "CZ/SK Server by de_roman [TESTING]",
    "connect": "46.13.86.9:4200",
    "request": "46.13.86.9:4201",
    "map": "Just Cause 3",
    "gamemode": "Just Cause 3 Multiplayer Mod",
    "version": "1.0.4.0",
    "numplayers": 0,
    "maxplayers": 20,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "CZ",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780179817,
    "last_update": 1780437029,
    "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": 7,
    "language": "cs",
    "parked": false,
    "app": {
      "id": 15577,
      "steam_id": 619910,
      "name": "Just Cause 3: Multiplayer Mod",
      "url": "just-cause-3-multiplayer-mod"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

कोड उदाहरण

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