Changes

Jump to navigation Jump to search
→‎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 ===

Navigation menu