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

text
https://api.gamemonitoring.in/servers/11158241
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 204151,
    "world_seed": 915085635,
    "world_size": 6000,
    "steam_id": "90286604995534862",
    "domain": null,
    "id": 11158241,
    "ip": "87.126.166.148",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Plovdiv",
    "description": "*    Size 6000, seed 915085635 , 60 hz tick rate.\r\n*    Offline raid protection, 10 minutes after going offline, for the first 3 days followed by 24 hours of cool down - !!!(no protection for twigs, turrets, sam sites)!!! \r\n*    Low upkeep - 1/10 of the default upkeep cost.\r\n*    No blueprint wipe (unless forced by Facepunch).\r\n*    Remove plugin (type /remove to use) - remove walls, foundations, etc...",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780598666,
    "last_online": 1780606228,
    "icon": null,
    "name": "NOOB FRIENDLY|NO OFFLINE|LOW UPKEEP|NO BP WIPE|PVP",
    "connect": "87.126.166.148:28015",
    "request": "87.126.166.148:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 7,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "BG",
    "status": true,
    "votes": 0,
    "points": 63,
    "add_date": 1772228106,
    "last_update": 1780606228,
    "banned": false,
    "wipe": 1780597539,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1578,
    "language": "bg",
    "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/11158241");
$data = json_decode($json, true);
var_dump($data);