USDA / USDA-APIs

Do you have feedback, ideas, or questions for USDA APIs? Use this repository's Issue Tracker to join the discussion.
www.usda.gov/developer
107 stars 16 forks source link

fdc data mismatch of old api and new api #96

Open ershashi1988 opened 4 years ago

ershashi1988 commented 4 years ago

Hi, I am unable to verified old api data with new api data. may i know how to verify data old api with new api . Suppose to Search for a Keyword like 'Orange' attached data is coming. old_Search_New

Thanks Shashi Bhushan Kumar

littlebunch commented 4 years ago

I'm not sure I understand the question. What is that you want to verify? Search results? Data values? JSON formats?

KyleMcKillop-USDA commented 4 years ago

A couple notes to add to the @littlebunch question.

The new API is hooked up to a new database, FoodData Central, that added Foundation Foods, Survey Foods, and more branded data. The search results between the two systems cannot be considering equivalent.

To find branded products from the old api to the new API, you will need to parse out the GTIN or UPC code from the name field and search it against the gtinUPC field in the new API. For SR Legacy items, you can search by the ndbno.