Difference between revisions of "API/States"

From Open Food Facts wiki
Jump to navigation Jump to search
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
== New documentation of the API ==
 +
* [https://openfoodfacts.github.io/api-documentation/ API V2 - Comprehensive but not OpenAPI compliant] - It contains uses cases for displaying a product, and letting your users add the data required to get the Nutri-Score, the NOVA classification, additives, and the Eco-Score.
 +
* [https://openfoodfacts.github.io/openfoodfacts-server/reference/api/ API V2 - new OpenAPI documentation] - Work in Progress
 +
* [https://openfoodfacts.github.io/openfoodfacts-server/reference/api-v3/ API V3 - new OpenAPI documentation] - Work in Progress
 +
 
== States ==
 
== States ==
  
List of states possibles
+
List of possible states - http://world.openfoodfacts.org/states, see also: [[State]]
http://world.openfoodfacts.org/states
+
 
 +
Maybe not all states are interesting for final user, allow filter ? Not possible actually.
  
 
=== API ===
 
=== API ===
 
Test http://api.openfoodfacts.info:8010/cgi/use-cases/states/get-states.pl
 
  
 
==== Endpoint ====
 
==== Endpoint ====
  
GET api.openfoodfacts.org/v0/states
+
GET world.openfoodfacts.net/states.json
  
 
==== Parameters ====
 
==== Parameters ====
  
 
(none)
 
(none)
 +
[[Category:Developer]]
 +
[[Category:API]]
 +
[[Category:States]]

Latest revision as of 10:49, 7 August 2024

New documentation of the API

States

List of possible states - http://world.openfoodfacts.org/states, see also: State

Maybe not all states are interesting for final user, allow filter ? Not possible actually.

API

Endpoint

GET world.openfoodfacts.net/states.json

Parameters

(none)