面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11252332
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 11252332,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": "Nefteyugansk",
    "description": null,
    "game": 1149460,
    "owner": 179577,
    "boosts": 1,
    "last_offline": 1774936290,
    "score": 0,
    "last_online": 1774054816,
    "icon": null,
    "name": "ICARUS Napaster Server",
    "connect": null,
    "request": null,
    "map": null,
    "gamemode": "Icarus",
    "version": null,
    "numplayers": 0,
    "maxplayers": 8,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1773622798,
    "last_update": 1774936290,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 1,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5081,
    "language": "ru",
    "parked": true,
    "app": {
      "id": 1600891,
      "steam_id": 1149460,
      "name": "Icarus",
      "url": "icarus"
    },
    "server_owner": {
      "username": "dpershev",
      "avatar": "no.jpg",
      "last_online": 1774627049
    },
    "mods": [],
    "disabled_modules": [
      "reviews",
      "chat"
    ]
  }
}

代码示例

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