Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
API
(view source)
Revision as of 18:37, 1 October 2016
217 bytes added
,
18:37, 1 October 2016
→Reading a product
Line 42:
Line 42:
See http://fr.openfoodfacts.org/data or http://en.openfoodfacts.org/data
See http://fr.openfoodfacts.org/data or http://en.openfoodfacts.org/data
The requested subdomain will be the locale fetched.
The requested subdomain will be the locale fetched.
+
+
==== Structure of the call ====
* http://world.openfoodfacts.org/api/v0/product/737628064502.xml
* http://world.openfoodfacts.org/api/v0/product/737628064502.xml
* http://world.openfoodfacts.org/api/v0/product/737628064502.json
* http://world.openfoodfacts.org/api/v0/product/737628064502.json
+
+
The final number must be a valid barcode.
+
+
==== Status codes ====
+
===== If a product is not found =====
+
<pre>
+
{"status_verbose":"product not found","code":"32421","status":0}
+
</pre>
+
==== Fields within a product ====
==== Fields within a product ====
Teolemon
Bureaucrats
,
Interface administrators
,
Suppressors
,
Administrators
6,724
edits
Navigation menu
Personal tools
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