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...

General Grievance
4551 gold badge7 silver badges12 bronze badges
asked Nov 6, 2019 at 7:32
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, 2024 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

answered Nov 8, 2019 at 7:53

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.