# GET (all) product objects using REST

**URL:** <https://community.shopify.com/t/get-all-product-objects-using-rest/35565>\
**Category:** Graphql Basics And Troubleshooting\
**Created:** [February 10, 2021, 6:11pm UTC](https://community.shopify.com/t/get-all-product-objects-using-rest/35565 "2021-02-10T18:11:48Z")\
**Posts on this page:** 2\
**Page:** 1

## AI-generated summary

Getting all product objects from the Shopify Admin REST API is the main issue. The original problem is that `/admin/api/2021-01/products.json?limit=250` only returns up to 250 products per request, while the store has 600+ products, and cursor-based pagination was unclear.

Key clarification:
- REST pagination works by reading the `Link` header in the response.
- The `next` link contains an identifier that must be added to the next request URL as a query parameter.
- Repeating that process lets the app fetch all product pages.

An alternative approach was also suggested:
- Use the GraphQL Admin API bulk operation.
- This allows requesting all products in one bulk job, checking its progress, and then downloading the results as a JSONL file (JSON Lines, a format where each line is a JSON object).

No final implementation was posted. The discussion provides guidance, but the original question about how to code the full request flow remains only partially resolved.

<div class="post-metadata">

**Author:** ![J\_Valencia](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@J\_Valencia](https://community.shopify.com/u/J_Valencia)\
**Post date:** [February 10, 2021, 6:11pm UTC](https://community.shopify.com/t/get-all-product-objects-using-rest/35565/1 "2021-02-10T18:11:48Z")

</div>

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

```javascript
/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](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

---

<div class="post-metadata">

**Author:** ![Gregarican](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/gregarican/32/275516_2.png) [@Gregarican](https://community.shopify.com/u/Gregarican)\
**Post date:** [February 10, 2021, 6:30pm UTC](https://community.shopify.com/t/get-all-product-objects-using-rest/35565/2 "2021-02-10T18:30:39Z")

</div>

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!
