[UK] Bw Server [Test] If unable to join msg bwchan on discord 的 API

面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/7412664
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 7412664,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": null,
    "game": 573090,
    "owner": 85361,
    "boosts": 1,
    "last_offline": 1750457066,
    "score": 0,
    "last_online": 1739161236,
    "icon": null,
    "name": "[UK] Bw Server [Test] If unable to join msg bwchan on discord",
    "connect": null,
    "request": null,
    "map": "Career",
    "gamemode": null,
    "version": null,
    "numplayers": 0,
    "maxplayers": 13,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "GB",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1739152009,
    "last_update": 1750457066,
    "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": 60,
    "language": "en",
    "parked": true,
    "app": {
      "id": 13818,
      "steam_id": 573090,
      "name": "Stormworks: Build and Rescue",
      "url": "stormworks-build-and-rescue"
    },
    "server_owner": {
      "username": "bwchan",
      "avatar": "ab6ec972-dffa-4ebd-9901-02df79c48b24.jpg",
      "last_online": 1739455769
    },
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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