Limits

These limits apply to all Oscar API calls. Design your integration to stay within them as data volumes grow.

Access token

  • A token is valid for 1 hour.
  • You can get a token at most 4 times per hour with the same clientId.
  • Cache the token and use it for its whole validity period. Do not get a new token for every call.

More: Authentication.

Call limits

By default, each API key (x-api-key) has these limits:

  • 50 calls per second – a steady call rate that the integration can keep up continuously.
  • A burst of 250 calls – a short burst can go over the per-second rate. The burst capacity refills at 50 calls per second.
  • 100,000 calls per day – the daily maximum. The counter resets every day at 00:00 UTC.

The daily limit is about 70 calls per minute on average. In continuous syncing, it is therefore reached before the per-second limit. Get changes with the change query and several rows with one call, so that few calls are used.

When a limit is exceeded, the response is 429 Too Many Requests. Wait and retry with an increasing delay, see Errors. When the daily limit is used up, a retry succeeds only after the counter resets.

The limits are defaults

The limits apply by default, but they are not fixed. They can change, and changes are announced in the Changelog. For a justified reason, the limits of a single use case can differ. Tell us your need at .

Time limit

Processing a call can take at most 29 seconds. A longer call returns 504 Gateway Timeout.

  • Narrow searches with criteria and keep the page size moderate, so a single call stays fast.
  • Fetch large data sets page by page, not in one call.

Request and response size

A request and a response can be at most 6 MB. A response that is too large returns 502 Bad Gateway.

In v2 searches, you control the response size in two ways:

  • sf – request only the fields you need.
  • pageSize – reduce the page size if rows are large. The default is 100.

More: Search and filtering and Responses and paging.