Changes

Jump to navigation Jump to search
no edit summary
Line 4: Line 4:  
[[API|← Back to API]] (required read)
 
[[API|← Back to API]] (required read)
   −
The new version of the documentation is available here:
+
== Use the API ==
* [https://world.openfoodfacts.org/files/api-documentation.html Documentation as HTML on Open Food Facts' servers]
+
To use the read API, please check out the [https://openfoodfacts.github.io/openfoodfacts-server/api/ API documentation].
* [https://documenter.getpostman.com/view/8470508/SVtN3Wzy Documentation on Postman] (might be slow)
  −
 
  −
'''Please send a User-Agent HTTP Header with the name of the app/service querying, the version, system and an URL if you have one''', so that you are not blocked by mistake.
  −
 
  −
Example: <code>User-Agent: CoolFoodApp - Android - Version 1.0 - https://theurlofthesiteofyourcoolfoodapp.com</code>
      
== Downloading static data ==
 
== Downloading static data ==
Line 22: Line 17:     
The character that separates fields is  (tabulation).
 
The character that separates fields is  (tabulation).
 +
 +
For an example on how to import it in postgres, see https://iderr.github.io/p/week-1-new-project-on-openfoodfacts/
    
==== Encoding ====
 
==== Encoding ====

Navigation menu