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

API brings back different results to web search #4884

Open
1 task
Tracked by #5523
mikejsdev opened this issue Feb 19, 2021 · 1 comment
Open
1 task
Tracked by #5523

API brings back different results to web search #4884

mikejsdev opened this issue Feb 19, 2021 · 1 comment
Labels
API READ All READ APIs include Product, Search… API Issues related to the Open Food Facts API. More specific labels exist & should be used (API WRITE…) 🔎 Search ⏰ Stale This issue hasn't seen activity in a while. You can try documenting more to unblock it.

Comments

@mikejsdev
Copy link

mikejsdev commented Feb 19, 2021

What

Hello,

Firstly, this really is a great service and the API is working fantastically well, so thank you. Hopefully I am posting this in the right place.

When searching using the API, for example for "orange juice" the results come back ordered by unique_scans_n which is great

https://world.openfoodfacts.org/cgi/search.pl?search_terms=Orange%20juice&search_simple=1&action=process&json=1&page_size=100

However, searching for "Orange juice" in the Open Food facts website search box brings back different (possibly better?) search results. This is despite the fact that the URL looks identical to mine, for example:

https://world.openfoodfacts.org/cgi/search.pl?search_terms=orange+juice&search_simple=1&action=process

Is there any way to get the same results back from the API? &sort_by=unique_scans_n doesn't make a difference as it appears they are already sorted by this value by default.

Thanks in advance

Part of

@mikejsdev mikejsdev added the 🐛 bug This is a bug, not a feature request. label Feb 19, 2021
@github-actions github-actions bot added the ⏰ Stale This issue hasn't seen activity in a while. You can try documenting more to unblock it. label May 21, 2021
@teolemon teolemon added API READ All READ APIs include Product, Search… 🔎 Search and removed ⏰ Stale This issue hasn't seen activity in a while. You can try documenting more to unblock it. labels Jul 19, 2021
@teolemon teolemon added the API Issues related to the Open Food Facts API. More specific labels exist & should be used (API WRITE…) label Aug 21, 2021
Copy link
Contributor

github-actions bot commented Feb 3, 2024

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

@github-actions github-actions bot added the ⏰ Stale This issue hasn't seen activity in a while. You can try documenting more to unblock it. label Feb 3, 2024
@teolemon teolemon moved this to To discuss and validate in 🍊 Open Food Facts Server issues Apr 23, 2024
@teolemon teolemon removed the 🐛 bug This is a bug, not a feature request. label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API READ All READ APIs include Product, Search… API Issues related to the Open Food Facts API. More specific labels exist & should be used (API WRITE…) 🔎 Search ⏰ Stale This issue hasn't seen activity in a while. You can try documenting more to unblock it.
Projects
Status: To discuss and validate
Development

No branches or pull requests

2 participants