Sign in | Sign up

UPC api problem...

Tagged:

Currently contains 6 posts

Avatar

5 Mar, 2014 02:14PM

itrackbites

Hi,

I have been implementing the UPC api over the last week and I think I must be doing something wrong as I have not been able to get any results from the api except for the cherry coke example with upc 49000036756. I have tried all kinds of very common food items with no results coming back. No matter what I scan I only get {"error_message":“Item ID was invalid”,“error_code”:“item_not_found”,status_code

Here is an example. An Aero Chocolate bar from Nestle has upc 5980000011, but I do not get any results. I thought I may have been providing the upc code in the incorrect format so I tried adding two leading zeros but no luck. (FYI I removed my appid and appkey in the link below intentionally here)

https://api.nutritionix.com/v1_1/item?upc=5980000011&appId=[YOURID]&appKey=[YOURKEY]

Anyone else having similar issues? Can anyone point out what I am doing wrong?

Thanks,
Greg

Avatar

5 Mar, 2014 02:54PM

Matt Silverman

Hi Greg,

Could you post a photo of the physical UPC on the package? Also, what country was this product purchased in? You can e-mail the details to api at nutritionix dot com.

Matt

Avatar

6 Mar, 2014 04:24PM

itrackbites

Thanks Matt, I have sent the details to the above email.

Avatar

25 May, 2017 09:26PM

AnamNav

Having the same issue right now. What solution did you reach?

Avatar

26 May, 2017 05:05PM

mattsilv

Anam — can you post the UPC you are trying to scan and confirm which API endpoint you are using?

Avatar

15 Nov, 2017 04:55PM

otgwebdesign

upc=598000001
result is 404

Reply to thread