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

text
https://api.gamemonitoring.in/servers/1648747
json
{
  "response": {
    "steam_id": "90286604040560650",
    "domain": null,
    "id": 1648747,
    "ip": "104.143.3.231",
    "port": 28449,
    "query": 28446,
    "color": 0,
    "city": "Dallas",
    "description": "![A Rust Server](https://cdn3.mapstr.gg/b312e02f07d67b5ae744ba8626459f26.jpg)\n[COMING SOON, June 2025] A server where every day the players vote for a King. Form alliances on the server, engage in politics and become the King by talking with others. \r\n \r\n King Abilities: \r\n - 200HP \r\n - Personal stone/wood kit to build \r\n - Golden name in the chat \r\n - Ability to tax the server \r\n - Location always revealed on map",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779502413,
    "last_online": 1780605033,
    "icon": null,
    "name": "A Rust Server",
    "connect": "104.143.3.231:28449",
    "request": "104.143.3.231:28446",
    "map": "Custom Map",
    "gamemode": "Rust",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1698492300,
    "last_update": 1780605033,
    "banned": false,
    "wipe": 1780596187,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3145,
    "language": "en",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

कोड उदाहरण

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