Limites de taxa
Entenda as cotas de requisições e limites de taxa.
Sistema de cota mensal
A API Traceline usa um sistema de cota mensal em vez de limitação por segundo.
Cotas são redefinidas no início de cada período de faturamento. Requisições não utilizadas não são acumuladas.
Limites do plano
| Plano | Cota mensal | Preço |
|---|---|---|
| Free | 100 requests/month | $0 |
| Pro | 10,000 requests/month | $200/month |
| Enterprise | Unlimited | Custom |
Rastreamento de cota
Cada resposta da API inclui cabeçalhos mostrando o status atual da cota:
X-Monthly-Quota-Limit— Sua cota mensal totalX-Monthly-Quota-Remaining— Requisições restantes este mês
Exemplo de cabeçalhos de resposta
HTTP/1.1 200 OK
Content-Type: application/json
X-Monthly-Quota-Limit: 100
X-Monthly-Quota-Remaining: 58Cota excedida
Ao exceder a cota mensal, a API retorna código de status 402:
{
"error": {
"code": "quota_exceeded",
"message": "Monthly quota exceeded. Upgrade your plan or wait for the next billing period."
}
}