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

text
https://api.gamemonitoring.in/servers/11305617
json
{
  "response": {
    "steam_id": "90286528438176776",
    "domain": null,
    "id": 11305617,
    "ip": "45.125.45.242",
    "port": 20000,
    "query": 20001,
    "color": 0,
    "city": "Jinan",
    "description": "服务器人性化程度高,适合上班族和萌新:QQ群:774684760 \r\n1.PVE模式, 玩家之间没有伤害。\r\n2.背包和容器防盗,防止掠夺。\r\n3.动物、僵尸、武直数量,增强PVE乐趣。\r\n4.传送、新手礼包、画板加载图片,彩色昵称。\r\n5.海量皮肤和自定义皮肤,无需购买。\r\n6.超级武直,突袭基地,武器合成,超级坦克",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780430659,
    "last_online": 1780546835,
    "icon": null,
    "name": "黑鲨PVE/10倍废料/打怪升级/长久耐玩/死亡不掉",
    "connect": "45.125.45.242:20000",
    "request": "45.125.45.242:20001",
    "map": "Custom Map",
    "gamemode": "Rust",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CN",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1774592893,
    "last_update": 1780546835,
    "banned": false,
    "wipe": 1780280327,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4433,
    "language": "zh",
    "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/11305617");
$data = json_decode($json, true);
var_dump($data);