FROM CACHE - en_header

Search Products using SKU or Barcode

Shayle_Mujic
New Member
1 0 0

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?

Replies 5 (5)
Josh
Shopify Staff
Shopify Staff
1134 83 219

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. 

Josh | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

Brett_Knights
Shopify Partner
7 0 3

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

Cade_Collister
New Member
1 0 1

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 🙂

Devarshi_Mishra
Shopify Partner
1 0 1

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.

 

 

Purlsyarn
New Member
2 0 0

but being able to do a search that shows which products have barcodes versus don't would be SUPER helpful. None of our barcodes from our previous point of sale work in Shopify. So we've had to reinput all the barcodes, plus there are always new products. It would be super helpful to be able to determine what products don't have barodes when there is downtime to be updating things.