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
-
@RAJDIP If you have a new question, you can ask a new question. Don't edit other questions to add more.General Grievance– General Grievance2024年03月06日 15:16:20 +00:00Commented Mar 6, 2024 at 15:16
1 Answer 1
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
default