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

text
https://api.gamemonitoring.in/servers/11394481
json
{
  "response": {
    "steam_id": "90284710007496708",
    "domain": null,
    "id": 11394481,
    "ip": "202.189.10.29",
    "port": 27004,
    "query": 27005,
    "color": 0,
    "city": "Beijing",
    "description": null,
    "game": 4920,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776322313,
    "score": 0,
    "last_online": 1776778847,
    "icon": null,
    "name": "[CN#2]<NS2.0> 更衣室Locker Room(discord.gg/Fyem2S5QAw)",
    "connect": "202.189.10.29:27004",
    "request": "202.189.10.29:27005",
    "map": "gg_pyramid",
    "gamemode": "Natural Selection 2",
    "version": "1.0.0.0",
    "numplayers": 0,
    "maxplayers": 20,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CN",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1774596962,
    "last_update": 1776778847,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 29,
    "language": "zh",
    "parked": false,
    "app": {
      "id": 91,
      "steam_id": 4920,
      "name": "Natural Selection 2",
      "url": "natural-selection-2"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

कोड उदाहरण

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