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

text
https://api.gamemonitoring.in/servers/812457
json
{
  "response": {
    "steam_id": "90284724447024153",
    "domain": null,
    "id": 812457,
    "ip": "45.83.233.203",
    "port": 11607,
    "query": 32752,
    "color": 0,
    "city": "Amsterdam",
    "description": "",
    "game": 1250,
    "owner": null,
    "boosts": 1,
    "last_offline": 1774571525,
    "score": null,
    "last_online": 1776790270,
    "icon": null,
    "name": "[FR/FIN]�Server�by�Marco�|�Welcome�in�Hell�-�|",
    "connect": "45.83.233.203:11607",
    "request": "45.83.233.203:32752",
    "map": "KF-BellTolls",
    "gamemode": "Killing Floor HB",
    "version": "1.0.6.5",
    "numplayers": 0,
    "maxplayers": 26,
    "bots": 8,
    "secured": true,
    "private": false,
    "country": "NL",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1684358256,
    "last_update": 1776790270,
    "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": 66,
    "language": "nl",
    "parked": false,
    "app": {
      "id": 50,
      "steam_id": 1250,
      "name": "Killing Floor",
      "url": "killing-floor"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

कोड उदाहरण

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