MarketShield Closed access

Handling API rate limits safely

In short

When a marketplace API returns HTTP 429, wait before retrying, add jitter to each wait and stop after a set number of attempts.

Operations Updated 4 min read

A marketplace API that returns HTTP 429 is telling your integration to slow down. The right response is to wait, reduce the number of calls and record the event. Repeating the same request at once usually makes the problem worse, and in a batch job the retries can pile up across every item. This article covers what the status means, how to retry safely, and how to reduce load before limits are reached.

What a 429 response means

The status code 429 Too Many Requests indicates that the client has sent too many requests in a given amount of time. This mechanism is commonly called rate limiting. The IETF definition in RFC 6585 says the same, and the MDN reference for the status describes it in the same terms.

The response may include a Retry-After header. It tells the client how long to wait before the next request. RFC 6585 makes the header optional, so do not assume that it is present. MDN shows a numeric value in seconds, for example 3600 for a wait of 60 minutes.

Why limits differ between APIs

Each marketplace API sets its own limits, and they can differ by API and by application. A limit that applies to one endpoint does not tell you the limit for another. Limits can also change, so a figure you read in a forum or an old note may no longer be correct. Read the current developer documentation for each API you call, and keep your own dated record of the limits you have designed around. A 429 on one call may therefore not mean that every other call is blocked, so narrow the problem to the failing call before you change the whole job.

For flippers and resellers: Manual work around every sale costs you time and margin. MarketShield is building tools to cut it down – within platform rules. Closed access for now. Get early access

A safe retry pattern

  1. If the response includes a Retry-After header, wait at least that long before the next attempt.
  2. If it does not, wait with exponential backoff: make each wait longer than the last, up to a fixed maximum.
  3. Add random jitter to each wait, so that many workers do not retry at the same moment.
  4. Stop after a fixed number of attempts, and record the failed request for review.
  5. Retry only requests that are safe to repeat. Reading a listing can be repeated; creating an order may not be, unless the API supports idempotent requests.

Reducing load before limits are reached

  • Cache data that does not change often, such as category lists and shipping profiles.
  • Where the API allows batch requests, combine updates rather than making one call per item. The same risk from the listing side is covered in bulk changes without mass errors.
  • Spread scheduled jobs across the hour, so that they do not all start at the same moment.
  • Use notifications where the platform offers them, instead of polling for changes.

Monitoring and logging

Log each 429 response with the endpoint, the time, the wait your code applied and the final outcome. A rising count is a signal to slow a job or to review its design. It is not a reason to add more retries. Review the log at a fixed interval, and compare it with the limits in the current documentation. Keep the log for as long as you keep your own sales records, so that a pattern over several months is visible. If 429 responses begin after a change of credentials, check the token setup as well; see API tokens, scopes and rotation.

This article describes general HTTP behaviour and common retry practice. It does not set limits for any marketplace. Read the developer documentation of the API you use before you set limits or waits in your code.

Use the current documentation of each API.

Common questions

Should I retry straight away after a 429?
No. Wait first. Use the Retry-After header when it is present, and otherwise use exponential backoff with jitter.
Does a 429 mean my account is restricted?
Not by itself. RFC 6585 defines 429 as a response to sending too many requests in a given time. Whether it leads to any account action depends on the marketplace’s own rules, which you should check in its documentation.
What if the Retry-After header is missing?
Use exponential backoff with a maximum wait and jitter, and log the event. The standard does not require the header, so your code must work without it.

Sources

  1. RFC 6585: Additional HTTP Status Codes IETF · 24 Nov 2026
  2. 429 Too Many Requests MDN Web Docs · 24 Nov 2026

Further reading

MarketShield is in closed access. You can request early access.

Get early access

Back to Intelligence