Do I need pagnation to query for item by handle?

Solved
Highlighted
Shopify Partner
3 1 0

Let's say I have a unique item called red-apple, that's the item handle, and my shop has 400 items.

 

This should be the query to get the red apple product

/admin/api/2020-01/products.json?handle=red-apple

 

Will I need pagination to get red apple due to the max 250 products per page limit?

0 Likes
Highlighted
Shopify Partner
112 23 27

This is an accepted solution.

Hi need_help_plz,

 

The 250 products per page refers to the number of products returned in the response as oppose to the number of products you have in your store.

 

In your example, your query will return only 1 result so you won't need to worry about pagination limits.

 

 

 

 

- Yes, we build Shopify Apps. Hit me with your idea: https://vellir.tech
- Let customers preview your products and easily add them to cart with Peek Mode
- Add free, good looking social share icons with built-in analytics to your store with Share Lab
- Manage your new arrivals with Newr
1 Like