Get product image from magento 2 using Rest API

June 29, 2018495
Share Tweet Pin it

Steps to get product image from magento 2 ecommerce porta by REST API:

By default the following API will not return product images through the serach criteria.


The above request will return the following json

To bring the product image along with rest of the attributes we have to check the following steps:

go to admin login of magento 2

go to Stores -> Attributes -> Products ->

In the list you will have to search for image and click on it.

in advance attribute options you can see scope change it to Global and save the attrubute.

Now refresh the API response you can able to see the image will be there in custom attributes.

All the best.