Polling and retries
Choose a polling interval for regular price updates and retry failed requests without paying for avoidable repeats.
Use this guide when your application needs regular price updates.
Before you begin, complete Your first request. Then choose Batch price queries for a list of items, or Export prices for a whole game.
Choose a polling interval
- Read
recommended_interval_secondsfromGET /endpoints. - Poll no faster than that interval.
- Reuse results among the users of your application. Do not send an identical request for each view.
recommended_interval_seconds is polling guidance. It is not a freshness guarantee, and it does not replace the rate limit.
For exports, use ETag and If-None-Match. Polling faster than the snapshot is generated does not create newer data.
Retry failures
| What you see | What to do |
|---|---|
429 | Wait for the duration in Retry-After. |
A transient transport error or 503 | Retry with bounded exponential backoff, jitter, and a maximum number of attempts. |
| Invalid parameters, invalid credentials, or insufficient credits | Fix the cause first. Do not retry automatically. |
Account for lost responses
Price requests read data, but a successful request can consume credits. If a response is lost, you may not know whether the server completed and charged it. A retry can incur another charge.
Batch requests reduce overhead, but they do not remove this uncertainty. Log request IDs when they are available, and do not log keys.
Next steps
- Request costs to estimate what a polling schedule costs.