API 文档

这是可用API端点的文档,这些端点是围绕REST架构构建的。所有API端点将返回一个带有标准HTTP响应代码JSON响应,并需要通过API密钥进行Bearer身份验证

 

身份验证

所有 API 端点都需要通过 Bearer 身份验证方法 发送的 API 密钥。

Authorization: Bearer {api_key}
curl --request GET \
--url 'https://xlin.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\u65e0\u6743\u8bbf\u95ee\u8be5API\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 时区,除非另有说明。
用户
链接
链接统计
项目
像素
引导页
二维码
数据
通知处理程序
自定义域名
账户付款
账户日志