d
Topic
Posts:
1
February 15, 2017

Search Products using SKU or Barcode

Hi there,
I am using shopify apis to fetch product's data from my store.
I want to perform search based on product sku and barcode field. 
I also referred API reference but was unable to find search api available using sku or barcode field.

Is there any api available to perform search based on product sku or product barcode?

i
Replies
Josh Wheeler Shopify Employee
Posts:
485
February 24, 2017

Hey Shayle, 

Currently there's no way to accomplish this via the Product API, I'm afraid. I can see how it would be useful though so I'll make a request - but for the time being you'll have to operate with our documented options. 

Posts:
7
4 months ago
g
2
upvotes

This has been an issue for quite some time. The /admin/products/search.json syntax works when logged into the admin so how much effort could it be to enable?

As far as load on Shopify goes the alternative is to page through all a shop's products or cache the results externally. The external cache is a bit silly for some use cases and paging through all the products is arguably more load on Shopify's servers than just enabling the search end point

Posts:
1
3 months ago
g
1
upvotes

Being able to search by SKU would be huge for shops like mine that have almost 1K skus. Please add this to the list asap! Thanks in advance :)

Posts:
1
11 days ago

Playing around... i just found out to search product vias barcode. We can use https://skippqtest.myshopify.com/admin/products/search.json?query=Barcode Number .

Putting the barcode in the query returned the product with that particular barcode. SImilarly it works for SKU too.