跳到主要内容
ecdsa.com

API

This specification

GEThttps://ecdsa.com/api/v1/openapi.json

The OpenAPI 3.1 document of this API, generated from the same operation definitions the server runs. The same document for every caller: cached by the CDN for an hour, not rate limited.

API 密钥
不读取:对所有人返回相同的响应
速率限制
无:由 CDN 缓存提供

请求

此操作不需要输入。

响应

200OpenAPI 3.1 document.

字段类型必需说明
openapistring是

The OpenAPI version, "3.1.0".

infoobject是
  • 可能出现其他成员
info.titlestring是
info.versionstring是
pathsobject是
  • 成员名任意
状态码含义错误码
404Not found.
405Method not allowed.
500Internal server error.

每个错误响应都带有 JSON 信封;错误表说明了每个错误码的含义和处理方法。

示例

The OpenAPI document

curl
curl -sS 'https://ecdsa.com/api/v1/openapi.json'
JavaScript (fetch)
const response = await fetch("https://ecdsa.com/api/v1/openapi.json");
console.log(response.status, await response.json());
Python (httpx)
import httpx

response = httpx.get("https://ecdsa.com/api/v1/openapi.json", timeout=30.0)
print(response.status_code, response.json())

200 响应是 109 KB 的 JSON,太长,无法在此显示:打开查看。

这是 API 对此示例的响应,于2026年10月20日为本页生成;其中的相对时间和天数都以当天为准。

错误码

错误码状态码含义
not_found404No operation exists at this path.
method_not_allowed405The path exists but does not accept this HTTP method; see the Allow header.
internal_error500Unexpected server error.

Schema

Error

The error envelope of every non-2xx response.

字段类型必需说明
errorobject是
error.codestring是

Machine-readable error code. Each response lists the codes it can carry; new codes may be added within v1, so treat an unknown code by its HTTP status.

error.messagestring是

Human-readable explanation (English).

error.requestIdstring否

The X-Request-Id of this request — quote it when reporting a problem. Sent since v1.1.

error.detailobject否

Structured context for the error, such as the offending field; omitted when there is none.

  • 成员名任意
error.docsstring否

Where the error codes are explained. Sent since v1.1.

  • 格式 uri

所有操作都列在 API 参考中。