Skip to content

Rate limits and errors

By , Head of IntegrationsUpdated

Open this page in a new chat

Short answer

Each Sirv plan allows a set number of REST API requests an hour: 500 on Free, 7,000 on Business and 14,000 on Enterprise. Every answer shows what is left in its X-RateLimit headers. Past the limit the API answers 429: pause until the reset time. A 401 means get a new token, and a 400 means fix the request.

After reading this you will know

  • How many requests an hour each plan allows
  • How to read the rate-limit headers on every answer
  • What to do on a 429, 401, 400, 502 or 503

Each plan has a number of API requests an hour: 500 on Free, 7,000 on Business and 14,000 on Enterprise.

Search, fetch and conversions have smaller limits of their own, listed in REST API limits.

The hour starts with your first request. Get API limits shows every limit and works even when you are over.

Every answer carries headers that show the limit for that kind of request, the requests left and when the hour resets, in epoch seconds:

x-ratelimit-limit: 2000
x-ratelimit-remaining: 1999
x-ratelimit-reset: 1654273267
x-ratelimit-type: rest:post:files:upload

The X-Global-RateLimit headers give the same for all your requests together.

Past a limit, the API answers 429 with a “Retry after” time: pause, then carry on.

A 401 means the token is missing or expired, so get a new one and try again.

A 400 is a problem with the request itself, so retrying will not help. Retry a 502 a few times, and a 503 after 15 minutes.

The error handling guide has every case, with example answers.

Back to top