Contact us
Insights

Choosing polling intervals for an API

How often should an integration ask an API for new orders, stock, or payments? Fresh enough for the business, without hitting rate limits.

The question

Every minute, every hour, or once a night?

Many systems can’t tell you when something changes, so an integration has to ask: “anything new since last time?” That’s polling. Ask too rarely and orders sit unseen; ask too often and you waste capacity, hit the API’s rate limits, and may be blocked at the busiest moment. The right interval isn’t a technical setting. It comes from how quickly someone needs to act on the data.

A method

How to choose an interval

Step 1 of 4

  1. For each kind of data, ask what goes wrong if it arrives 1, 15, or 60 minutes late. A late order before the courier cut-off costs more than a late price change.

  2. Read the rate limits and count every call: each page of results and each follow-up request uses part of the allowance.

  3. Plan to use well under the limit, so retries, busy days, and other integrations sharing the same account still fit.

  4. Poll urgent data often and slow-moving data rarely, rather than one interval for everything.

Starting points

Typical intervals to start from

New orders

For example: every 2 to 5 minutes during trading hours, so orders reach the warehouse well before pick runs and courier cut-offs.

Stock levels

For example: every 5 to 15 minutes, or a queue fed by every change where overselling is costly.

Payments and refunds

For example: every 15 to 30 minutes, often enough for customer service and daily reconciliation.

Products, prices, and customers

For example: hourly or nightly, plus an on-demand sync when someone makes a bulk change.

Ask for changes, not everything

Polling is cheap when each request only asks for what changed. Most APIs let you filter by a last-modified time or a change marker. Store the latest time or marker you processed, ask for anything after it, and only move it on once those records are saved. Overlap each request by a minute or two, so a record saved at the boundary isn’t missed, and rely on idempotent processing to ignore the repeats.

Use webhooks where they exist, and poll as a safety net

If a system can send webhooks, notifying you the moment something changes, use them for speed. Webhooks can still be missed or arrive out of order, so keep a slower poll running alongside. For example: webhooks bring orders in within seconds, and an hourly poll for anything changed in the last two hours catches whatever slipped through. You get the speed of webhooks with the certainty of polling.

Not sure how often to sync?

Tell us which systems are involved and how quickly your team needs the data. A few lines are enough.

Tell us what you need help with