cancel
Showing results for 
Search instead for 
Did you mean: 

search V1 rest api

search V1 rest api

Hi Alan, 

 

We are a group of adventurous, futuristic, early adopters who chose Magento 2 APIs for commercial android & ios native apps development. It's been about 8 weeks now and we continue to see challenges, but decided to stick with it with a fair amount of custom development. Stay tuned. 

 

As for Search V1 API, 

 

Using GET when we make the call (see below)

http://localhost/rest/V1/search?searchCriteria[requestName]=sku&searchCriteria[filter_groups][0][filters][0][field]=name&searchCriteria[filter_groups][0][filters][0][value]=%hoodie%&searchCriteria[filter_groups][0][filters][0][condition_type]=like

We get the following response. 
"Request name 'sku' doesn't exist. 

 

In the above call, we were trying to figure out what value we can put in for "requestName". Searched the entire web, but couldn't find the answer, referencing searchV1 from the API list at http://devdocs.magento.com/swagger/

 

Any help, and a sample rest api request call will help us tremendously; otherwise we will have to create our own search API. 

 

Thanks a million! 

1 REPLY 1

Re: search V1 rest api

With out-of-box Magento 2 package (without search extensions) the searchCriteria[requestName]  should be quick_search_container, advanced_search_container, or catalog_view_container.
Details: what is the «searchCriteria[requestName]» parameter for the «/rest/V1/search» request? https://mage2.pro/t/1227