Difference between revisions of "API/States"

From Open Food Facts wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 9: Line 9:
  
 
Maybe not all states are interesting for final user, allow filter ? Not possible actually.
 
Maybe not all states are interesting for final user, allow filter ? Not possible actually.
 
=== Example ===
 
 
http://api.openfoodfacts.info:8010/v0/states
 
  
 
=== API ===
 
=== API ===
Line 18: Line 14:
 
==== Endpoint ====
 
==== Endpoint ====
  
GET api.openfoodfacts.org/v0/states
+
GET world.openfoodfacts.net/states.json
  
 
==== Parameters ====
 
==== Parameters ====
Line 25: Line 21:
 
[[Category:Developer]]
 
[[Category:Developer]]
 
[[Category:API]]
 
[[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)