Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Open Food Facts Search API Version 2
(view source)
Revision as of 14:18, 13 October 2020
286 bytes added
,
14:18, 13 October 2020
→Features
:
example of how to select which fields are returned
Line 30:
Line 30:
* /search will replace /cgi/search.pl as the url of search results
* /search will replace /cgi/search.pl as the url of search results
* /api/v2/search will return JSON results, with the exact same parameters as the /search endpoint
* /api/v2/search will return JSON results, with the exact same parameters as the /search endpoint
+
+
=== Selection of the fields returned ===
+
+
It is possible to specify which fields are returned for each result:
+
+
* [https://world.openfoodfacts.org/api/v2/search?categories_tags=en:meals&fields=code,product_name,brands,attribute_groups fields=code,product_name,brands,attribute_groups]
=== Simplified parameters specification ===
=== Simplified parameters specification ===
Stephane
Bureaucrats
,
Administrators
1,083
edits
Navigation menu
Personal tools
English
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Log in
Open Food Facts galaxy
📍Where am I?
🍊Open Food Facts website
Open Food Facts wiki
Main page
Recent changes
Random page
🧴 Open Beauty Facts wiki
Main page
Deep dive per topic
All topics
Whole wiki
Help about MediaWiki
Icons in the wiki
Tools
Special pages
Printable version
Admins
Edit sidebar
Styling
Replace text
Special Pages