Magento 2 API – Get Product by SKU

Hello Magento peeps!

My last blog post on Magento 2 API was all about how to get all products using API. In case you missed it, you can read it at Magento 2 API – Get All Products. In this post, I will show you how to get product by SKU in Magento 2 API.

If you are developing a third-party Magento 2 application or mobile app, you may require to fetch the information about specific products through SKU. The Magento 2 API Get Product by SKU makes it possible to fetch the product information from Magento to display it on the product page.

Read this complete blog post to understand how you can get product by SKU Magento 2 API.

Let’s begin!

How to Get Product by SKU Using Magento 2 API?

In order to fetch the products by SKU using Magento 2 rest API, the client needs to make a GET call to the store_url/products/ with the SKU in the path variables. Magento, in response to the request, will return all the information and attributes of the products.

Method: GET

URL: store_url/products/:sku

Params(Path Variables):

  • Key: sku
  • Value: <the sku of the product>

Magento 2 API to Get Product by SKU


On sending the Magento 2 Get Product Attribute request with the SKU in the parameters, Magento returns all information about the respective product.


Fetching product information from Magento 2 through API is necessary if you are working on a third-party development based on Magento.

Magento 2 API – Get Product by SKU is necessary to fetch and show the updated product information on the product page. I hope this guide will add value to your Magento 2 API skills.

In case you still have any doubts or queries, feel free to comment. I’d be happy to help you. 😇

Also, do not forget to share this post with your Magento friends via social media. 😃

Thanks for reading! 🍀

◄ Magento 2 API – Get All ProductsMagento 2 API – SearchCriteria ►

(based on 7 Reviews)
Magento 2 API – Get Product by SKUAuthor Magento Badge

Jignesh Parmar

An expert in his field, Jignesh is the team leader at Meetanshi and a certified Magento developer. His passion for Magento has inspired others in the team too. Apart from work, he is a cricket lover.

Leave a Reply

Your email address will not be published.