API 文档

以下是可用 API 接口的文档,基于 REST 架构构建。所有接口返回 JSON 格式响应,使用标准 HTTP 状态码,需要通过 API Key 进行 Bearer 认证

 

认证

所有 API 接口均需通过 Bearer 认证方式发送 API Key。

Authorization: Bearer {api_key}
curl --request GET \
--url 'https://hrt.cc/api/{endpoint}' \
--header 'Authorization: Bearer {api_key}' \

Errors

Our API uses conventional HTTP status codes to indicate the success or failure of a request.

{
    "errors": [
        {
            "title": "\u60a8\u6ca1\u6709 API \u8bbf\u95ee\u6743\u9650\u3002",
            "status": 401
        }
    ]
}
200 Request completed successfully
400 Bad request - Required parameters are missing or invalid
401 Unauthorized - API key is missing or invalid
404 The requested resource was not found
429 Too many requests - Rate limit exceeded
500 Internal server error - this means there is a problem on our end
除非另有说明,所有 API 接口结果使用 UTC 时区
用户
链接
链接统计
项目
追踪像素
引导页
二维码
数据
通知渠道
自定义域名
付款记录
操作日志