2

Is it possible to get all products with pagination using REST API in Magento 2?

I'm using REST API Get all product with pagination. E.g. in first page show 20 products, second page 20 products, etc...

1
  • @RAJDIP If you have a new question, you can ask a new question. Don't edit other questions to add more. Commented Mar 6 at 15:16

1 Answer 1

2

Use the following search criteria:

/rest/all/V1/products?searchCriteria[currentPage]=1&searchCriteria[pageSize]=20

Increase the currentPage until you get to the last page.

More details here: Search using REST endpoints

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.