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

Nutrient categories: how to use? #73

Open tomb7890 opened 4 years ago

tomb7890 commented 4 years ago

When I look at the JSON response of a particular food look-up using the new API, I see among the many nutrients in the 'foodNutrients' list, nutrient categories as well. For example, "Minerals" and "Vitamins". But they do not appear above actual nutrients in the hierarchy, instead at the same level as actual nutrients. And I can find no other means of relating a particular nutrient to its category.

With the previous version of the API, it was possible for my software to present nutrient values categorically, I would like to do this again. Can anyone comment on this? Is there documentation I have missed?

Thank you

littlebunch commented 4 years ago

I would recommend you contact the Food Data Central staff (https://fdc.nal.usda.gov/contact.html) for clarification, but I don’t believe there is a concept of assigning individual nutrients to a “group” or “category” like there was in the Food Composition database.
Gary

On Nov 11, 2019, at 11:01 AM, tomb7890 notifications@github.com wrote:

When I look at the JSON response of a particular food look-up using the new API, I see among the many nutrients in the 'foodNutrients' list, nutrient categories as well. For example, "Minerals" and "Vitamins". But they do not appear above actual nutrients in the hierarchy, instead at the same level as actual nutrients. And I can find no other means of relating a particular nutrient to its category.

In the previous version of the API, it was possible for my software to present nutrient values categorically, I would like to do this again. Can anyone comment on this? Is there documentation I have missed?

Thank you

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/USDA/USDA-APIs/issues/73?email_source=notifications&email_token=AAI555O2ENI7PAOAVQ4SNDLQTF6WDA5CNFSM4JLXPM62YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HYORHIQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI555IJ6SV5KZDXONOY5JLQTF6WDANCNFSM4JLXPM6Q.