We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I'm trying to do 2 things which I'm not sure if it's already implemented :) :
If we need to find a product by name/term, is there a way to use /api/v2 ? The only way I found is using this one : https://fr.openfoodfacts.org/cgi/search.pl?search_terms=milk&json=1&fields=code,product_name
/api/v2
Can we select subfields ? https://fr.openfoodfacts.org/api/v2/product/80135463&fields=nutriments (Will return only nutriments) https://fr.openfoodfacts.org/api/v2/product/80135463&fields=nutriments.carbohydrates (Could we implement this or does something already exist to achieve this ? It would only keep carbohydrates within nutriments object in the JSON)
carbohydrates
nutriments
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, I'm trying to do 2 things which I'm not sure if it's already implemented :) :
If we need to find a product by name/term, is there a way to use
/api/v2
? The only way I found is using this one : https://fr.openfoodfacts.org/cgi/search.pl?search_terms=milk&json=1&fields=code,product_nameCan we select subfields ?
https://fr.openfoodfacts.org/api/v2/product/80135463&fields=nutriments (Will return only nutriments)
https://fr.openfoodfacts.org/api/v2/product/80135463&fields=nutriments.carbohydrates (Could we implement this or does something already exist to achieve this ? It would only keep
carbohydrates
withinnutriments
object in the JSON)The text was updated successfully, but these errors were encountered: