Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sugars are not imported from USDA FoodCentral search #870

Open
Eiernase opened this issue Nov 11, 2024 · 2 comments
Open

Sugars are not imported from USDA FoodCentral search #870

Eiernase opened this issue Nov 11, 2024 · 2 comments
Labels
bug Something isn't working High Priority

Comments

@Eiernase
Copy link

I use the USDA API and whenever I search for something (e.g. "Bananas"), the entry does not contain a value for sugar, which I have to manually import from the website.
There are some other weird behaviours too, like sometimes all the values are something entirely different from what it says in the entry on their website, but I haven't figured out a pattern in that yet.

@EmilJunker
Copy link
Contributor

I use the USDA API and whenever I search for something (e.g. "Bananas"), the entry does not contain a value for sugar

You are right, I can reproduce this too. Maybe they changed something about their API again because I'm pretty sure this worked correctly in the past 😩

sometimes all the values are something entirely different from what it says in the entry on their website

Do you have a specific example for that? Could it just be related to the serving size in Waistline being different from the website?

@EmilJunker
Copy link
Contributor

It looks like they also changed their URL format, so the in-app links to open the website for a specific item no longer work correctly.

URL
Old format https://fdc.nal.usda.gov/fdc-app.html#/food-details/2709224/nutrients
New format https://fdc.nal.usda.gov/food-details/2709224/nutrients

@davidhealey davidhealey added bug Something isn't working High Priority labels Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working High Priority
Projects
None yet
Development

No branches or pull requests

3 participants