Open1

Shopify

かえるかえる

APIのレートリミット

https://shopify.dev/docs/api/usage/rate-limits#compare-rate-limits-by-api

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
Customer Account API Calculated query cost 50 points/second 100 points/second 500 points/second None
RestAPIのレート制限を確認する

X-Shopify-Shop-Api-Call-Limitヘッダを確認する
例)

X-Shopify-Shop-Api-Call-Limit: 32/40
429 Too Many Requestsの時には

Retry-Afterヘッダを確認する
例)

X-Shopify-Shop-Api-Call-Limit: 40/40
  Retry-After: 2.0 # 待機時間の秒数