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

text
https://api.gamemonitoring.in/servers/569111
json
{
  "response": {
    "steam_id": "90284735929670664",
    "domain": null,
    "id": 569111,
    "ip": "45.88.228.61",
    "port": 28018,
    "query": 28015,
    "color": 0,
    "city": "Dallas",
    "description": "![$RUSTOLUTION.GG 2x Monthly | Solo Duo Trio | 50% Upkeep | No BP ](https://github.com/geosciencegeek/ImageHosting/blob/main/Rustolution%20Server%20Banner%201024x512.png?raw=true)===Welcome to RUSTOLUTION.GG 2x Monthly Trio=== Wipes on the first Thursday ",
    "game": 252490,
    "owner": 34811,
    "boosts": 1,
    "last_offline": 1776168717,
    "score": null,
    "last_online": 1776807614,
    "icon": null,
    "name": "RUSTOLUTION.GG 2x Monthly | Solo Duo Trio | 50% Upkeep | No BP",
    "connect": "45.88.228.61:28018",
    "request": "45.88.228.61:28015",
    "map": "discord.gg/Rustolution",
    "gamemode": "Rust",
    "version": "2623",
    "numplayers": 2,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 90,
    "add_date": 1668891764,
    "last_update": 1776807614,
    "banned": false,
    "wipe": 1775151545,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 284,
    "language": "en",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": {
      "username": "GeoSciencegeek",
      "avatar": "6bd50a36-573e-4532-b65d-d3f80795e956.jpg",
      "last_online": 1680594104
    },
    "mods": [],
    "disabled_modules": []
  }
}

कोड उदाहरण

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