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

text
https://api.gamemonitoring.in/servers/11698841
json
{
  "response": {
    "fps": 129,
    "fps_avg": 113,
    "entities_count": 113874,
    "world_seed": 8675309,
    "world_size": 4500,
    "steam_id": "90286609712489483",
    "domain": null,
    "id": 11698841,
    "ip": "137.103.28.135",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Johnstown",
    "description": "![MAGA.GG - US Large](https://maga.gg/MAGA_RUST.png)\nWipes first Thursday of the month (2:00 PM EST) \r\n *Active Admins* \r\n Map Size: 4500 \r\n Join our Discord! Click the MAGA hat @ https://maga.gg",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780605861,
    "last_online": 1780608030,
    "icon": null,
    "name": "MAGA.GG - US Large",
    "connect": "137.103.28.135:28015",
    "request": "137.103.28.135:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 250,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780227274,
    "last_update": 1780608030,
    "banned": false,
    "wipe": 1780606036,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5563,
    "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/11698841");
$data = json_decode($json, true);
var_dump($data);