openfoodfacts / openfoodfacts-server

Open Food Facts database, API server and web interface - 🐪🦋 Perl, CSS and JS coders welcome 😊 For helping in Python, see Robotoff or taxonomy-editor
GNU Affero General Public License v3.0
633 stars 371 forks source link

Expose facet statistics #8325

Open aleene opened 1 year ago

aleene commented 1 year ago

The facets are a great way to get cross sections through the database. The results can also be accessed as a json, so great for reuse. The database is now so large large that aggregated data becomes interesting. For instance the statistics for nutritional values. This data is exposed on the web-page, but not in the json. The json could be (easily?) extended with the statistics by adding a structure on the top-level. Optionally extra keys could be added to suppress these statistics, or suppress the products if you are only interested in the statistics.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 90 days with no activity.

github-actions[bot] commented 10 months ago

This issue has been open 90 days with no activity. Can you give it a little love by linking it to a parent issue, adding relevant labels and projets, creating a mockup if applicable, adding code pointers from https://github.com/openfoodfacts/openfoodfacts-server/blob/main/.github/labeler.yml, giving it a priority, editing the original issue to have a more comprehensive description… Thank you very much for your contribution to 🍊 Open Food Facts