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

text
https://api.gamemonitoring.in/servers/10318859
json
{
  "response": {
    "steam_id": "85568392935244425",
    "domain": null,
    "id": 10318859,
    "ip": "88.136.42.223",
    "port": 35015,
    "query": 35016,
    "color": 0,
    "city": "Corneilla-la-Rivière",
    "description": null,
    "game": 270880,
    "owner": null,
    "boosts": 1,
    "last_offline": 1773327737,
    "score": 0,
    "last_online": 1776020485,
    "icon": null,
    "name": "(PUBLIC) American Truck - Official | Jim Transport",
    "connect": "88.136.42.223:35015",
    "request": "88.136.42.223:35016",
    "map": "usa",
    "gamemode": "WEBSITE -> swissjim.ch",
    "version": null,
    "numplayers": 3,
    "maxplayers": 32,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "FR",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1758291422,
    "last_update": 1776020485,
    "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": 193,
    "language": "fr",
    "parked": false,
    "app": {
      "id": 2949,
      "steam_id": 270880,
      "name": "American Truck Simulator",
      "url": "american-truck-simulator"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

कोड उदाहरण

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