速率限制

了解请求配额和速率限制。

月度配额系统

Traceline API使用月度配额系统而非每秒速率限制。每个方案在计费周期内有固定的请求数量。

配额在每个计费周期开始时重置. 未使用的请求不会累积.

方案限制

方案月度配额价格
Free100 requests/month$0
Pro10,000 requests/month$200/month
EnterpriseUnlimitedCustom

跟踪配额

每个API响应都包含显示当前配额状态的标头:

  • X-Monthly-Quota-Limit 您的月度总配额
  • X-Monthly-Quota-Remaining 本月剩余请求数

响应标头示例

HTTP/1.1 200 OK
Content-Type: application/json
X-Monthly-Quota-Limit: 100
X-Monthly-Quota-Remaining: 58

配额超限

当月度配额超限时,API返回402状态码:

{
  "error": {
    "code": "quota_exceeded",
    "message": "Monthly quota exceeded. Upgrade your plan or wait for the next billing period."
  }
}

升级方案以获取更多请求。