I'm working on a health and calorie-tracking app that will analyze not just food products but also cosmetics and other types of products. However, I'm having trouble retrieving reliable ingredient data. Currently, I'm using the OpenFoodFacts API, but I've noticed that a lot of products either have incorrect information or don't return any ingredient details at all. I'm wondering if the problem lies in my coding or if I should consider using a different API altogether for better results. Any suggestions would be greatly appreciated!
4 Answers
Maybe try asking the AI for ingredient data a few more times? Sometimes it might just take a couple of attempts to get better results.
If your app targets US consumers, I'd recommend checking out the USDA API. It can provide reliable data on food items and is quite useful.
Is that API free to use? Just want to understand how it works for US-based products.
Hey, where's your GitHub? I'd love to check out your project.
Take a closer look at the data you're getting from the API. If it returns what you need, then maybe there’s an issue with your code. If not, then definitely look for an alternative API. It's as simple as that!

I’ve tried that, but unfortunately, no luck with better results.