Searching by UPC in Product Data

How to Search for a Product With UPC

One of the more common use cases we see is customers searching for products by UPC. You can do this in the Portal or with our API. Let's review both use cases.

1. Searching by UPC in the API

Let's take this UPC 190403225817, which is for an iPhone X, as our example.

If you know that what you're using is a UPC, you can just use the UPC field and plug in this value, like this:

"query": "upc:190403225817",

πŸ“˜

What if my value is not for sure a UPC?

No worries! We have the GTINs field for any value that you think is a UPC, but could be an EAN, ISBN, UPC, UPCa, or UPCe. You can replace upc in the above query with gtins and still get the same result. Learn more about GTINs.

I take that and put it into Postman, like this:

1966

❗️

Does this query not make sense to you?

If this query structure doesn't make sense to you, please check out either the Postman: Product Data walkthrough to review query composition and then come back.

When I hit Send, the API will return the product that corresponds to this UPC.

1964

This is the response from the Datafiniti API showing that we in fact got the iPhone we were looking for. I am using a custom view, which is not displaying the full Product Data Schema. Check it out if you want to see all the data points we collect.

And there you have it! You have now searched for a product in by UPC using Datafiniti's API.

2. Searching by UPC in the Portal

Using the techniques discussed in the Portal: Advanced Query tutorial, we can take the above query and translate it into a URL request on the portal.

https://portal.datafiniti.co/product?query=upc:190403225817

You can copy and paste the text from the Text tab above into a new browser window or tab and it'll show you the same product.

2230

Here, we can see the same product being returned via the Portal.


What’s Next

Now that you've found the products you want, check out how to download the results!