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
109 stars 16 forks source link

Nutrient Report API returning blank 'foods' list #55

Open grassten opened 6 years ago

grassten commented 6 years ago

If I navigate to the nutrient report on the USDA site for these items I see data.

But when I query the API w/ the following URL, the foods list is blank (example copied from documentation, just swapped out ndbno).

https://api.nal.usda.gov/ndb/nutrients/?format=json&api_key=DEMO_KEY&nutrients=205&nutrients=204&nutrients=208&nutrients=269&ndbno=01304

01293, 01294, 01308, 01313 are a few other examples.

Is it just me?

littlebunch commented 6 years ago

Not just you. Seems to be data related since most ndb no’s return ok. I will dig in to see what’s causing this. Thanks for reporting. Gary

Sent from my iPhone

On May 4, 2018, at 2:19 PM, Steven notifications@github.com wrote:

If I navigate to the nutrient report on the USDA site for these items I see data.

But when I query the API w/ the following URL, the foods list is blank (example copied from documentation, just swapped out ndbno).

https://api.nal.usda.gov/ndb/nutrients/?format=json&api_key=DEMO_KEY&nutrients=205&nutrients=204&nutrients=208&nutrients=269&ndbno=01304 01293, 01294, 01308, 01313 are a few other examples.

Is it just me?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

littlebunch commented 6 years ago

Quick follow-up ... this is indeed a data issue in the new SR release. I will get in touch with the data provider to see how they want to handle. Gary

Sent from my iPhone

On May 4, 2018, at 2:19 PM, Steven notifications@github.com wrote:

If I navigate to the nutrient report on the USDA site for these items I see data.

But when I query the API w/ the following URL, the foods list is blank (example copied from documentation, just swapped out ndbno).

https://api.nal.usda.gov/ndb/nutrients/?format=json&api_key=DEMO_KEY&nutrients=205&nutrients=204&nutrients=208&nutrients=269&ndbno=01304 01293, 01294, 01308, 01313 are a few other examples.

Is it just me?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.