Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
Hi, I am custom app developer of this store. I am using REST API of Shopify. i am facing issues when i am trying to get all products from Shopify through API's. I am getting errors after 3k, 4k products. it show me error you can only send per second per request ? how can i avoid this error while API is calling in loop. I am using PHP Foreach loop for getting all products, I am also using the Retry after 2 sec in request header. But same error. There are more than 70K products. Please help.
Have you checked Shopify's documentation on their REST API rate limits to calculate at what cadence you should query to avoid hitting the limit?
One option would be to check if the GraphQL bulk operations is a good option for you. Another one, that could work if you're building a custom app, is to use a Gadget.dev backend app to sync down the Shopify product data, and then query your Gadget app's APIs that don't have rate limits.