服务器

LLM
下载
v1.0.0
OpenAPI 3.1.1

服务器

服务器:https://api.gamemonitoring.cn
未选择身份验证

服务器

​

返回服务器的公开数据。

URL 参数

  • Integer numbers.

查询参数

  • API 版本。不传 v 时使用最低受支持版本。传入 v=1.0.0 可固定文档中的接口契约。无效、重复或不受支持的值返回 HTTP 400。

响应

  • Server details response

    • 成功响应将结果放在 response 中。列表可能是数组或带 items 的对象;请查看此操作的结构。

      • Integer numbers.

      • Unix 时间戳,单位为秒(UTC)。

        • Integer numbers.

        • Steam App ID of the game. Use this as game_steam_id when searching servers.

      • Integer numbers.

      • Integer numbers.

      • Integer numbers.

      • 服务器说明,以 JSON 字符串编码的块列表存储。

      • Integer numbers.

      • Unix 时间戳,单位为秒(UTC)。

      • Unix 时间戳,单位为秒(UTC)。

      • Unix 时间戳,单位为秒(UTC)。

      • Integer numbers.

        • Integer numbers.

      • Unix 时间戳,单位为秒(UTC)。

      • Integer numbers.

      • Integer numbers.

      • Integer numbers.

      • Integer numbers.

      • Integer numbers.

      • Integer numbers.

      • Integer numbers.

      • Integer numbers.

      • 请保持字符串标识符为字符串,避免精度丢失。

      • Integer numbers.

      • Unix 时间戳,单位为秒(UTC)。

    application/json
  • 参数或 JSON 无效。请检查类型、必填字段及允许范围。

      • HTTP 状态码。

      • 使用 API 语言的错误消息。文字可能变化;请按状态码处理错误。

      • 可用时提供额外错误详情。

    application/json
  • 请求的资源不存在。

      • HTTP 状态码。

      • 使用 API 语言的错误消息。文字可能变化;请按状态码处理错误。

      • 可用时提供额外错误详情。

    application/json
  • 服务暂时不可用,请稍后重试。

      • HTTP 状态码。

      • 使用 API 语言的错误消息。文字可能变化;请按状态码处理错误。

      • 可用时提供额外错误详情。

    application/json
  • 查询超时。请稍后重试或缩小请求范围。

      • HTTP 状态码。

      • 使用 API 语言的错误消息。文字可能变化;请按状态码处理错误。

      • 可用时提供额外错误详情。

    application/json
  • 意外的服务器错误。error 对象包含实际状态码。

      • HTTP 状态码。

      • 使用 API 语言的错误消息。文字可能变化;请按状态码处理错误。

      • 可用时提供额外错误详情。

    application/json
代码示例
{
  "response": {
    "steam_id": "90123456789012345",
    "domain": null,
    "id": 1,
    "ip": "198.51.100.24",
    "port": 27015,
    "query": 27015,
    "project_id": 42,
    "color": 0,
    "city": "Prague",
    "description": "[]",
    "game": 730,
    "boosts": 3,
    "last_offline": 1782751200,
    "last_online": 1783201200,
    "icon": null,
    "name": "Example CS2 Server",
    "connect": "198.51.100.24:27015",
    "request": "198.51.100.24:27015",
    "map": "de_mirage",
    "gamemode": "Counter-Strike 2",
    "version": "1.41.6.5",
    "numplayers": 12,
    "maxplayers": 64,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CZ",
    "status": true,
    "votes": 128,
    "points": 2450,
    "add_date": 1701541119,
    "last_update": 1783201200,
    "ban_reason": null,
    "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": 12,
    "language": "en",
    "parked": false,
    "app": {
      "id": 2,
      "steam_id": 730,
      "name": "Counter-Strike 2",
      "url": "counter-strike-2"
    },
    "mods": [
      {
        "id": 5,
        "name": "Admin System"
      },
      {
        "id": 14,
        "name": "Advertisement"
      },
      {
        "id": 9,
        "name": "Admins"
      },
      {
        "id": 3,
        "name": "Admin Commands"
      }
    ],
    "disabled_modules": []
  }
}