| [ Web Proxy ] |
| Viewing: https://shopify.dev/docs/api/usage/limits | [Back] [Original] |
Some Shopify APIs limit the inputs they accept, and most are rate-limited. This page covers the limits that apply across the APIs, and points to the figures for each one.
Rate limits keep the platform stable and fair for everyone. How a limit is calculated, and the figures that apply to you, vary by API. Use industry standard techniques for limiting calls, caching results, and retrying requests responsibly.
Every API applies limits differently, so the figures and the mechanics are documented with each API, including:
| API | Rate limits |
|---|---|
| GraphQL Admin API | Calculated query cost, by plan |
| REST Admin API | Request-based bucket and headers |
| Storefront API | Bot and crawler limits, checkout throttle |
| Customer Account API | Cost points per store and customer |
| Payments Apps API | Calculated query cost, by plan |
| Partner API | Request-based limit per API client |
| App Events API | Request-based limit per app |
Most Shopify rate limits are enforced with a leaky bucket algorithm. The main points to understand about the leaky bucket metaphor are as follows:
Both the bucket size and the restore rate vary by API and by plan, so refer to rate limits by API for the figures that apply to you. This model means that apps that manage API calls responsibly keep capacity for bursts: as long as your average stays under the restore rate, a short burst above it still succeeds.
The Storefront API works differently. Buyer traffic isn't rate-limited at all, and the limits it does apply are described in Storefront API rate limits.
Shopify may temporarily reduce API rate limits to protect platform stability. We will strive to keep these instances brief and rare. However, your application should be built to handle limits gracefully.
Once a store has 500,000 product variants, no more than 10,000 new variants can be created per day, on any API.
The resources and mutations that are subject to the throttle are listed with each API's rate limits: GraphQL Admin API and REST Admin API.
The variant creation throttle doesn't apply to stores on the Shopify Plus plan.
The variant creation throttle doesn't apply to stores on the Shopify Plus plan.
Designing your app with best practices in mind is the best way to avoid throttling errors. For example, you can stagger API requests in a queue and do other processing tasks while waiting for the next queued job to run. Consider the following best practices when designing your app:
Input arguments that accept an array have a maximum size of 250, on every Shopify API. Requests return an error if an input array exceeds 250 items.
Pagination of arrays of objects caps at 25,000 objects, and the cap applies to count queries too. For how the limit behaves and what to do when you need to page past it, refer to GraphQL pagination.
| Web Proxy Viewer | New URL | Original Page |