MrCalvin's DMC Server (FastDL) | discord.sbotnas.io 的 API

面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11181753
json
{
  "response": {
    "steam_id": "90284687375573017",
    "domain": null,
    "id": 11181753,
    "ip": "107.172.6.148",
    "port": 27044,
    "query": 27044,
    "color": 0,
    "city": "Ashburn",
    "description": null,
    "game": 40,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775944873,
    "score": 0,
    "last_online": 1776783010,
    "icon": null,
    "name": "MrCalvin's DMC Server (FastDL) | discord.sbotnas.io",
    "connect": "107.172.6.148:27044",
    "request": "107.172.6.148:27044",
    "map": "dmc_climax",
    "gamemode": "DMC",
    "version": "1.1.2.3/Stdio",
    "numplayers": 4,
    "maxplayers": 16,
    "bots": 4,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 103,
    "add_date": 1772229842,
    "last_update": 1776783010,
    "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": 1,
    "language": "en",
    "parked": false,
    "app": {
      "id": 29,
      "steam_id": 40,
      "name": "Deathmatch Classic",
      "url": "deathmatch-classic"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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