This describes the resources that make up the official Public Agri-food Data API.
|
All APIs can be found under /api.
|
Agri-food Data tries to adhere as closely as possible to standard HTTP and REST conventions in its use of HTTP verbs.
| Verb | Usage |
|---|---|
|
|
Used to retrieve a resource |
|
Due to some limitations of the reverse proxy, some HTTP methods might be forbidden. To overcome this,
you can add a _method request parameter containing the name of the desired HTTP verb. Example: ?_method=get.
|
An API gateway is put in place to protect against abusive behaviour. We have in place a rate limiting policy to protect the application and the ability for users to fetch data in an orderly and sensible manner.
Below a list of error responses that the client could receive from the gateway.
| Response Status Code | Description | Response content |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
All services return dates in dd/MM/yyyy format.
"BeginDate" and "EndDate" parameters restrict the entire week, whereas "Months" parameter only applies to the starting date of the week of the Marketing Year.
In other words "Months" is based only on "Begin Date" and this behaviour is consistent through all sectors.
By default prices APIs return results in an ordered manner. Unless stated in a specific sector, the priority follows the below order :
For weekly TAXUD imports & exports APIs the ordering priority is as follows :
For the CMEF Indicators values the ordering priority is as follows :