API Rate Limits Question

DanielROI
Shopify Partner
3 0 0

Can anyone explain the API rate limiting factors?
I read that it is 4 requests/sec for Advanced, but I also see documentation on a "leaky bucket" algorithm that allows some room for bursting. Anyone know what the bucket size is for Advanced? For Plus? 

Replies 6 (6)

lizk
Shopify Staff
246 58 72

Hi there 👋

You should find the bucket size, and request limits in the following documentation for each plan.

API Rate-limiting method Standard limit Advanced Shopify limit Shopify Plus limit Commerce Components by Shopify limit
Admin API (GraphQL) Calculated query cost 50 points/second 100 points/second 500 points/second None
Admin API (REST) Request-based limit 2 requests/second 4 requests/second 20 requests/second None
Storefront API None None None None None
Payments Apps API (GraphQL) Calculated query cost 910 points/second 910 points/second 1820 points/second None

To learn more visit the Shopify Help Center or the Community Blog.

DanielROI
Shopify Partner
3 0 0
Thank you. Can you tell me what the bucket size is for the "leaky bucket"
algorithm for Advanced/Plus? I do not see that in the documentation.
lizk
Shopify Staff
246 58 72

Hi

Sorry about that, you should see it in the documentation here.

Basic

  • Bucket size: 40 requests/app/store
  • Leak rate: 2/second

Plus

  • Bucket size: 400 requests/app/store
  • Leak rate: 20/second

To learn more visit the Shopify Help Center or the Community Blog.

DanielROI
Shopify Partner
3 0 0
Thank for the further information. In other documentation, the rate is
2/sec Basic, 4/sec for the Advanced plan and 20/sec for Plus. I only see
"Standard" bucket limits. Do you know what happens to the bucket limits in
the Advanced?
lizk
Shopify Staff
246 58 72

I just confirmed with the team that the bucket size increases with the same interval as the leak rate for advanced. 

So you can expect the bucket size to be 2x the Basic Plan so: 
Advanced: 

  • Bucket size: 80 requests/app/store
  • Leak rate: 4/second

To learn more visit the Shopify Help Center or the Community Blog.

Jason
Shopify Expert
11196 226 2287

This is talked about on the docs and I'll past something from it below
https://shopify.dev/docs/api/usage/rate-limits#the-leaky-bucket-algorithm

 

Those on the Plus plan get higher rates but all others follow the defaults.

 

-----

 

The bucket size and leak rate properties determine the API’s burst behavior and request rate.

The default settings are as follows:

  • Bucket size: 40 requests/app/store
  • Leak rate: 2/second
★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★