🚧 Rate limiter
Default rate limit per endpoint​
| Endpoint | Default rate limit |
|---|---|
| POST /trackers | 10/s |
| GET /trackers | 10/s |
| POST /trackers/bulk | 3/s |
| POST /trackers/track | 10/s |
| GET /trackers/:trackerId | 10/s |
| PATCH /trackers/:trackerId | 10/s |
| GET /trackers/search/:trackingNumber/results | 10/s |
| GET /trackers/:trackerId/results | 10/s |
| POST /trackers/:trackerId/webhook-events/resend | 1/s |
| GET /trackers/:trackerId/webhook-history/download | 1/s |
| POST /tracking/search | 10/s |
| GET /couriers | 1/s |
| GET /quotas | 5/m |
Rate limits apply per account: all the API keys of an account share the same limit. If your integration needs a higher limit, contact us.
About the rate limit​
When you exceed the limit, the API returns 429 - Too Many Requests with the plain text body Too many requests, please try again later. Wait for the delay given in the Retry-After header before retrying, and use an exponential back-off if it happens again.
The response headers give you 2 different sets of rate limit headers RateLimit-* and X-RateLimit-*. You should choose one set of headers that match your needs.
RateLimit-* rate limit headers​
This set of headers follows the IETF standardization draft.
| Header | Example | Description |
|---|---|---|
| RateLimit-Limit | 10 | The total requests allowed for the time window |
| RateLimit-Remaining | 9 | The number of requests left for the time window |
| RateLimit-Reset | 1 | The delay in seconds before the rate limit is reset |
| RateLimit-Policy | 10;w=1 | The limit and the time window in seconds (w) that apply to this endpoint |
X-RateLimit-* rate limit headers​
| Header | Example | Description |
|---|---|---|
| X-RateLimit-Limit | 10 | The total requests allowed for the time window |
| X-RateLimit-Remaining | 9 | The number of requests left for the time window |
| X-RateLimit-Reset | 1645507056 | The Unix timestamp when the rate limit will be reset |
Retry-After header​
When a request is rate limited (429), the Retry-After header indicates the delay in seconds before the rate limit is reset.