---
title: "How to Get Product Information Using SOAP API in Magento 2"
url: "https://magecomp.com/blog/get-product-information-using-soap-api-magento-2/"
date: "2022-01-24T15:19:38+00:00"
modified: "2025-02-18T06:02:02+00:00"
author:
  name: "Dhiren Vasoya"
  url: "https://magecomp.com/"
categories:
  - "How To"
  - "Magento 2"
word_count: 306
reading_time: "2 min read"
summary: "Hello Magento Friends,"
description: "Easily fetch product data using SOAP API in Magento 2. Create call_soap.php file and add the code. Learn more"
keywords: "How To, Magento 2"
language: "en"
schema_type: "Article"
related_posts:
  - title: "How to Change Password with Current Password in Laravel 8?"
    url: "https://magecomp.com/blog/change-password-with-current-password-laravel-8/"
  - title: "How to Enable Template Path Hints in Magento 2"
    url: "https://magecomp.com/blog/enable-template-path-hints-in-magento-2/"
  - title: "Magento 2: How to Add Placeholder Text in Field for Checkout Page"
    url: "https://magecomp.com/blog/magento-2-add-placeholder-text-in-field-for-checkout-page/"
---

# How to Get Product Information Using SOAP API in Magento 2

_Published: January 24, 2022_  
_Author: Dhiren Vasoya_  

![How to Get Product Information Using SOAP API in Magento 2](https://magecomp.com/blog/wp-content/uploads/2022/01/How-to-Get-Product-Information-Using-SOAP-API-in-Magento-2-1024x512.webp)

**Hello Magento Friends,**

I am here yet with another tutorial blog in accordance with SOAP API. Today we will learn about retrieving Product Information with the help of SOAP API in Magento 2.
[![Magento Malware Removal](https://magecomp.com/blog/wp-content/uploads/2025/02/Magento-Malware-Removal-CTA-2.webp)](https://magecomp.com/magento-malware-removal.html)

Check up on other related guides
- [**How to Get Order Information Using SOAP API in Magento 2**](https://magecomp.com/blog/get-order-information-using-soap-application-program-interface-magento-2)
- [**How to Get Customer Information Using SOAP API in Magento 2**](https://magecomp.com/blog/get-customer-information-using-soap-application-program-interface-magento-2)
- [**How to Get Category Information Using SOAP API in Magento 2**](https://magecomp.com/blog/get-category-information-using-soap-application-program-interface-magento-2)

SOAP API is used when you want to link an external system with your Magento 2 site. It enables data transfer between the two. When you need to fetch product information outside your Magento 2 website, you can make use of SOAP API.
Let’s learn how to get product information using SOAP API in Magento 2.
## [![hyva theme development](https://magecomp.com/blog/wp-content/uploads/2025/02/hyva-theme-development-CTA-2.webp)](https://magecomp.com/services/hyva-theme-development/)

## Steps to Get Product Information Using SOAP API in Magento 2:
**Step 1:** Create **call_soap.php** file anywhere and add the following code
```
<?php
$request = new SoapClient("http://yourdomain/index.php/soap/?wsdl&services=integrationAdminTokenServiceV1", array("soap_version" => SOAP_1_2));
// changes your store url.
$token = $request->integrationAdminTokenServiceV1CreateAdminAccessToken(array("username"=>"admin", "password"=>"admin@123"));

$request = new SoapClient(
    'http://yourdomain/index.php/soap/default?wsdl&services=catalogProductRepositoryV1',
    array(
        'soap_version' => SOAP_1_2,
        'stream_context' => stream_context_create(array(
            'http'=> array('header' => 'Authorization: Bearer '.$token->result)
        ))
    )
);
// changes your store url.
$serviceArgs = array('searchCriteria'=>
        array('filterGroups' =>
            array ('filters' =>
                array('field' =>'sku',
                      'value' => '24-MB01' ,
                      'condition_type' => 'eq')
                )
         )
);
$response = $request->catalogProductRepositoryV1GetList($serviceArgs);
echo "";
print_r($response);

?>
```

## [![Magento 2 Speed & Performance Optimization Services](https://magecomp.com/blog/wp-content/uploads/2023/10/Magento-2-Speed-Performance-Optimization-Services-CTA-4.webp)](https://magecomp.com/magento-performance-optimization.html)

## Conclusion:
Hence, this way you can successfully receive product details through SOAP API in Magento 2. If you come across any error while applying the code, reach me via the comment section. Share the tutorial over your social media handles and stay with us for more Magento solutions.
**Happy Coding!**


---

_View the original post at: [https://magecomp.com/blog/get-product-information-using-soap-api-magento-2/](https://magecomp.com/blog/get-product-information-using-soap-api-magento-2/)_  
_Served as markdown by [Third Audience](https://github.com/third-audience) v3.5.3_  
_Generated: 2026-10-08 09:02:17 UTC_  
