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

text
https://api.gamemonitoring.in/servers/4970908
json
{
  "response": {
    "steam_id": "90285106406032395",
    "domain": null,
    "id": 4970908,
    "ip": "51.91.219.173",
    "port": 7778,
    "query": 7781,
    "color": 0,
    "city": "Roubaix",
    "description": null,
    "game": 203290,
    "owner": null,
    "boosts": 1,
    "last_offline": 1771136505,
    "score": 0,
    "last_online": 1777500153,
    "icon": null,
    "name": "-=S.A.S=- Gaming Server! ACI Secure! [GER]",
    "connect": "51.91.219.173:7778",
    "request": "51.91.219.173:7781",
    "map": "BDX_Breach_EX",
    "gamemode": "America's Army: Proving Grounds",
    "version": "1.0.0.0",
    "numplayers": 0,
    "maxplayers": 12,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "FR",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1720166985,
    "last_update": 1777500153,
    "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": 8,
    "language": "fr",
    "parked": false,
    "app": {
      "id": 75,
      "steam_id": 203290,
      "name": "America's Army: Proving Grounds",
      "url": "americas-army-proving-grounds"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

कोड उदाहरण

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