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

text
https://api.gamemonitoring.in/servers/348560
json
{
  "response": {
    "fps": 4,
    "fps_avg": 5,
    "entities_count": 74230,
    "world_seed": 0,
    "world_size": 4608,
    "steam_id": "90286621682933771",
    "domain": null,
    "id": 348560,
    "ip": "51.195.161.171",
    "port": 28080,
    "query": 28015,
    "color": 0,
    "city": "Rochester",
    "description": "![APOCALYPSE ZOMBIES PVE](https://rustapocalypse.co.uk/serverimgs/headerapoc.png)\n>>>Welcome to The Apocalypse<<< \r\n \r\n • An Extreme Zombie Survival Experience. \r\n • Monthly Wipes - Custom Maps - Premium Plugins \r\n • Automated Rail Network - Zombie Bosses - NO VIP or Pay2Win \r\n • Builders Paradise - Fast Performance - Active Admins \r\n • Rustwood City - Heli Spawns - Shop - Events \r\n • + lots and lots of Undead Zombies....",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780597470,
    "last_online": 1780641218,
    "icon": null,
    "name": "APOCALYPSE ZOMBIES PVE",
    "connect": "51.195.161.171:28080",
    "request": "51.195.161.171:28015",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1595670200,
    "last_update": 1780641218,
    "banned": false,
    "wipe": 1780597459,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2268,
    "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/348560");
$data = json_decode($json, true);
var_dump($data);