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

Add number of Robotoff opportunities for the brand #67

Open
Tracked by #64
CharlesNepote opened this issue Aug 23, 2022 · 0 comments
Open
Tracked by #64

Add number of Robotoff opportunities for the brand #67

CharlesNepote opened this issue Aug 23, 2022 · 0 comments

Comments

@CharlesNepote
Copy link
Member

This REST request allows to ask Robotoff the count of opportunities related to a brand:
https://robotoff.openfoodfacts.org/api/v1/questions/random?count=1&lang=en&insight_types=brand&value_tag=coles

We can either:

  • Don't show the "[Hunger Game]" link if count=0
  • Show the link and add the number or add "-" if there is an error in the response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants