Magento 2 REST API Get All Product

For all products: /V1/products?searchCriteria[pagesize]

For 20 products: /V1/products?searchCriteria[pageSize]=20


Magento 2 Provides Swagger Module and it listed all API resources:

Magento2 RESTful API is based on swagger specification and uses swagger ui tool to generate and visualize API documentation so it can be easily understood and used.

Magento2 provides Magento_Swagger module to list, visualise and at the same time test the API resources.

If you have installed Magento2 on your server then you can easily access all the API resources listed on your website by just hitting this URL:

  • example: http://www.your_url.com/swagger

All the API resources will be listed. you can click on each resource to check all the details about the api, resource url, method, params and even you can execute the API call on the same place and check the response.