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

text
https://api.gamemonitoring.in/servers/11536702
json
{
  "response": {
    "steam_id": 90286399923377180,
    "domain": null,
    "id": 11536702,
    "ip": "103.37.44.44",
    "port": 20520,
    "query": 20520,
    "color": 0,
    "city": "Wuxi",
    "description": null,
    "game": 108600,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779355307,
    "last_online": 1780146615,
    "icon": null,
    "name": "驴服42.18-萌新进阶2服-PVE-看服务器简介加入Q群~",
    "connect": "103.37.44.44:20520",
    "request": "103.37.44.44:20520",
    "map": "Stab Bunker;Tikitown;Estate 39;",
    "gamemode": "Project Zomboid",
    "version": "42.18",
    "numplayers": 29,
    "maxplayers": 45,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CN",
    "status": true,
    "votes": 0,
    "points": 94,
    "add_date": 1779355307,
    "last_update": 1780146615,
    "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": 17,
    "language": "zh",
    "parked": false,
    "app": {
      "id": 71,
      "steam_id": 108600,
      "name": "Project Zomboid",
      "url": "project-zomboid"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

कोड उदाहरण

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