GET /api/sugar/prices?marketingYears=2020/2021&yms=2020/10®ions=EU%20Average HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
Parameter | Optional | Description |
---|---|---|
regions |
true |
The optional sugar regions of the EU. |
yms |
true |
The optional marketing year/month of a sugar price must be in format yyyy/mm. |
marketingYears |
true |
The optional marketing year(s) of a sugar price. |
months |
true |
The optional marketing month(s) parameter of a sugar price. Only numbers are accepted. |
contractTypes |
true |
The optional contract type(s) parameter must be either 'monthly' or 'short'. |
GET /api/sugar/prices?marketingYears=2020/2021&yms=2020/10®ions=EU%20Average HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
Path | Type | Description |
---|---|---|
|
|
Array with sugar prices |
|
|
The region of the EU to which a sugar price belongs to. |
|
|
The marketing year of the sugar price. |
|
|
The Year/Month of the sugar price. |
|
|
The month of the marketing year of the sugar price. |
|
|
The contract type of the sugar price. |
|
|
The weight in tonnes of the sugar price. |
|
|
The unit of the sugar price. |
|
|
The price of the sugar good. |
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"sugarRegion" : "Region EU Average",
"price" : "€308.56",
"unit" : "Tonne",
"ym" : "2020-10",
"marketingYear" : "2020/2021",
"marketingYearMonth" : "October",
"weight" : 82592.06,
"contractType" : "Monthly data"
} ]
GET /api/sugar/regions HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
Path | Type | Description |
---|---|---|
|
|
Array with sugar regions |
HTTP/1.1 200 OK
Content-Type: application/json
[ "EU Average", "Region 1", "Region 2", "Region 3" ]
Parameter | Optional | Description |
---|---|---|
marketingYears |
true |
The optional marketing year(s) to search for sugar production volumes. |
regions |
true |
The optional sugar region(s). Multiple regions must be comma-separated. For more details check the REST API : /api/sugar/production/regions |
GET /api/sugar/production?marketingYears=2020/21®ions=Region 1 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
Path | Type | Description |
---|---|---|
|
|
Array with sugar production volumes. |
|
|
The region of the EU to which a sugar production volumes belongs to. |
|
|
The marketing year of the sugar production volume. |
|
|
The volume area of sugar beet. |
|
|
The unit of the area. |
|
|
The gross amount of sugar production for white sugar equivalent. |
|
|
The unit of the gross production. |
|
|
The yield, which divides gross production and area, for white sugar. |
|
|
The unit of the yield. |
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"marketingYear" : "2020/21",
"region" : "Region 1",
"grossProduction" : 4025045.73,
"grossProductionUnit" : "tonnes",
"area" : 461.65,
"areaUnit" : "thousand hectares",
"yield" : 8.72,
"yieldUnit" : "tonnes per hectare"
} ]
GET /api/sugar/production/regions HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
Path | Type | Description |
---|---|---|
|
|
Array with sugar production regions |
HTTP/1.1 200 OK
Content-Type: application/json
[ "Region 1", "Region 2", "Region 3" ]