Search Products using SKU or Barcode

Highlighted
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?

0 Likes
Shopify Staff
Shopify Staff
540 0 53

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. 

0 Likes
Shopify Partner
7 0 2

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

2 Likes
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 :)

1 Like
New Member
1 0 0

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.

 

 

0 Likes