Development discussions around Shopify APIs
My goal is to get an Array of all of the Product Objects so that we can make use of that data using our simple Node app
I tried making an http request to this endpoint
/admin/api/2021-01/products.json?limit=250
but we have over 600+ products and the limit for the request is 250
I read a documentation about cursor-based pagination
https://shopify.dev/tutorials/make-paginated-requests-to-rest-admin-api
But I can't understand it, I mean how can I apply this to a get request then get the response object?
Hopefully someone can help me with this matter
In short, you see the next link identifier in the response header, and include that identifier as a query parameter in the URL of your next request. An easier way to pull all products in one shot is if you use the GraphQL API bulk operation. Then you just issue your request once, monitor the progress of the request, and then retrieve your result by downloading a JSONL file. But then again since you are just talking about a couple pages of products I guess the REST API isn't too ungainly!
User | RANK |
---|---|
6 | |
5 | |
5 | |
5 | |
4 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022