Magento 2 Rest API to get all products

Magento 2  Rest API to get all products

In Magento 2 we can get the list of products with the rest API with an admin token. You need to replace store.com with your store URL.

 

URL : https://store.com/rest/V1/products?searchCriteria[page_size]=20

ENDPOINT :  /rest/V1/products?searchCriteria[page_size]=5  

METHOD: GET

HEADERS : Content-Type application/json

Authorization: Bearer

PARAMETERS: None

PAYLOAD: None

AUTHENTICATION: ADMIN TOKEN      Create admin Token Magento 2

Response JSON:

{

    "items": [

        {

            "id"10,

            "sku""STPRODUCTS",

            "name""Sample Product1",

            "attribute_set_id"10,

            "price"999,

            "status"1,

            "visibility"1,

            "type_id""simple",

            "created_at""2021-03-10 19:46:14",

            "updated_at""2021-03-10 06:42:11",

            "extension_attributes": {

                "website_ids": [

                    1

                ],

                "category_links": [

…………………………………

0   0
Eecrets Magento

Related Post

12th September 2020

Magento2 Get Admin Token Rest API

Magento2 Get Admin Token Rest API....

read more reply

List Your Business

Improve Your Business Visibility

Please rotate your device

We don't support landscape mode on your device. Please rotate to portrait mode for the best view of our site