Common tasks

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

  1. Read recommended_interval_seconds from GET /endpoints.
  2. Poll no faster than that interval.
  3. 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 seeWhat to do
429Wait for the duration in Retry-After.
A transient transport error or 503Retry with bounded exponential backoff, jitter, and a maximum number of attempts.
Invalid parameters, invalid credentials, or insufficient creditsFix 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