Right API to search products by title?

Solved
Newbie11
Tourist
6 1 1

Hello community,

 

I have seen there are a number of APIs, but which one would be the right one to search products by title?

 

Thanks in advance for your time!

0 Likes

Hello 

Admin API.

Try this:

/admin/products.json?title=my_product_title

 

Want to modify or incorporate custom changes on store, Hire us
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Whats app
Free Website Review and advice for sale from Shopify Conversion Experts | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | Shopify SEO ; Digital Marketing & amp | Site Speed Optimization | Performance Site Audit
0 Likes
Newbie11
Tourist
6 1 1

This is an accepted solution.

Trying right away! Thanks for you response!
0 Likes
maltillo
Shopify Partner
12 0 0

@Newbie11 @oscprofessional 

 

How are you getting around the new cursor-based pagination and product searching?

0 Likes
MustKadwa52
New Member
1 0 1

Hello,

I am trying to do the same thing but however i am trying to search part of the title and its returning me null

Check the screenshots below to understand:


Product to Search using the Product GET API

 

1. Product to Search Details.png2. Making get call to get the product using title filter.png

 

However if i dont use the api version and call the product API ( /admin/products.json?title=FKJRN2050 ) it gives me results :
3. Making get call to get the product using title filter by using only admin uri.png

the 1st case scenario works if you put the entire product title though

Since /admin/products.json is not recommended by shopify how can i get the expected result?

Can anyone help me with this?


manuelmontoya
Tourist
5 0 2

Did you found the way?  

 
 
 
 
 
0 Likes
Andrew_Smith5
Shopify Partner
11 0 2

This thread has exactly my issue in it. Did you ever find a solution?

0 Likes