shopify-rate-limits

Featured

Handle Shopify API rate limits for both REST (leaky bucket) and GraphQL (calculated query cost). Use when hitting 429 errors, implementing retry logic, or optimizing API request throughput. Trigger with phrases like "shopify rate limit", "shopify throttling", "shopify 429", "shopify THROTTLED", "shopify query cost", "shopify backoff".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Shopify Rate Limits ## Overview Shopify uses two distinct rate limiting systems: leaky bucket for REST and calculated query cost for GraphQL. This skill covers both with real header values and response shapes. ## Prerequisites - Understanding of Shopify's REST and GraphQL Admin APIs - Familiarity with the `@shopify/shopify-api` library ## Instructions ### Step 1: Understand the Two Rate Limit Systems **REST Admin API** — Leaky Bucket: | Plan | Bucket Size | Leak Rate | |------|------------|-----------| | Standard | 40 requests | 2/second | | Shopify Plus | 80 requests | 4/second | The `X-Shopify-Shop-Api-Call-Limit` header shows your bucket state: ``` X-Shopify-Shop-Api-Call-Limit: 32/40 ``` Means: 32 of 40 slots used. When full, you get HTTP 429 with `Retry-After` header. **GraphQL Admin API** — Calculated Query Cost: | Plan | Max Available | Restore Rate | |------|--------------|-------------| | Standard | 1,000 points | 50 points/second | | Shopify Plus | 2,000 points | 100 points/second | Every GraphQL response includes cost info in `extensions`: ```json { "extensions": { "cost": { "requestedQueryCost": 252, "actualQueryCost": 12, "throttleStatus": { "maximumAvailable": 1000.0, "currentlyAvailable": 988.0, "restoreRate": 50.0 } } } } ``` Key insight: `requestedQueryCost` is the *worst case* estimate. `actualQueryCost` is the real cost (often much lower). When `currentlyAvailable` drops to 0, you...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

shopify-cost-tuning

Optimize Shopify app costs through plan selection, API usage monitoring, and Shopify Plus upgrade analysis. Trigger with phrases like "shopify cost", "shopify billing", "shopify pricing", "shopify Plus worth it", "shopify API usage", "reduce shopify costs".

2,266 Updated today
jeremylongshore
AI & Automation Featured

shopify-performance-tuning

Optimize Shopify API performance with GraphQL query cost reduction, bulk operations, caching strategies, and Storefront API for high-traffic storefronts. Trigger with phrases like "shopify performance", "optimize shopify", "shopify slow", "shopify caching", "shopify bulk operation", "shopify query cost".

2,266 Updated today
jeremylongshore
AI & Automation Featured

shopify-advanced-troubleshooting

Debug complex Shopify API issues using cost analysis, request tracing, webhook delivery inspection, and GraphQL introspection. Trigger with phrases like "shopify hard bug", "shopify mystery error", "shopify deep debug", "difficult shopify issue", "shopify intermittent failure".

2,266 Updated today
jeremylongshore
AI & Automation Featured

shopify-observability

Set up observability for Shopify app integrations with query cost tracking, rate limit monitoring, webhook delivery metrics, and structured logging. Trigger with phrases like "shopify monitoring", "shopify metrics", "shopify observability", "monitor shopify API", "shopify alerts", "shopify dashboard".

2,266 Updated today
jeremylongshore
AI & Automation Featured

shopify-load-scale

Load test Shopify integrations respecting API rate limits, plan capacity with k6, and scale for Shopify Plus burst events (flash sales, BFCM). Trigger with phrases like "shopify load test", "shopify scale", "shopify BFCM", "shopify flash sale", "shopify capacity", "shopify k6 test".

2,266 Updated today
jeremylongshore