Milk and dairy products

<>Weekly prices of raw milk as well as eight representative dairy products per Member State and weighted averages over the Union. More information can be found on the info tab of the portal’s raw milk prices and dairy prices apps and dairy production app.

As for dairy production, results are ordered in the following manner :
  1. Year in reverse chronological order
  2. Member State code in alphabetical order
  3. Product in alphabetical order

Request parameters

Parameter Optional Description

memberStateCodes

true

The optional codes of the EU Member States.

products

true

The optional product(s) to search for raw milk prices. For more details check REST API : /api/rawMilk/products

years

true

The optional year(s) must have the format yyyy.

months

true

The optional month(s) of a year to search for raw milk.

beginDate

true

The optional date interval start to search for raw milk prices.

endDate

true

The optional date interval end to search for raw milk prices.

Example of a request

GET /api/rawMilk/prices?products=raw%20milk,smp&memberStateCodes=BG,NL&years=2017&months=7,8 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json

Response fields

Path Type Description

[]

Array

Array with Raw milk price values

[].memberStateCode

String

The code of the EU Member State.

[].memberStateName

String

The name of the EU Member State.

[].beginDate

String

The valid start date period of the raw milk price.

[].endDate

String

The valid end date period of the raw milk price.

[].product

String

The product name.

[].month

Number

The month number of the calendar year.

[].monthName

String

The month name of the calendar year.

[].year

Number

The calendar year of the raw milk price.

[].unit

String

The unit of the raw milk price.

[].price

String

The raw milk price.

Example of a response

HTTP/1.1 200 OK
Content-Type: application/json

[ {
  "memberStateCode" : "NL",
  "memberStateName" : "Netherlands",
  "beginDate" : "04/07/2017",
  "endDate" : "11/08/2017",
  "month" : 7,
  "monthName" : "Jul",
  "price" : "€133.19",
  "unit" : "100KG",
  "year" : 2017,
  "product" : "Raw milk"
} ]

Raw milk products

Example of a request

GET /api/rawMilk/products HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json

Response fields

Path Type Description

[]

Array

Array with Raw milk products

Example of a response

HTTP/1.1 200 OK
Content-Type: application/json

[ "Organic raw milk", "Raw Milk" ]

Request parameters

Parameter Optional Description

memberStateCodes

true

The optional codes of the EU Member States.

products

true

The optional product(s) to search for dairy prices. For more details check REST API : /api/dairy/products

years

true

The optional year(s) must have the format yyyy.

weeks

true

The optional week(s) of a year to search for dairy. Week 1 is the week with the first Thursday in January.

beginDate

true

The optional date interval start to search for dairy prices.

endDate

true

The optional date interval end to search for dairy prices.

Example of a request

GET /api/dairy/prices?products=butter,smp&memberStateCodes=BG,NL&years=2017&weeks=5 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json

Response fields

Path Type Description

[]

Array

Array with dairy price values

[].memberStateCode

String

The code of the EU Member State.

[].memberStateName

String

The name of the EU Member State.

[].beginDate

String

The valid start date period of the dairy price.

[].endDate

String

The valid end date period of the dairy price.

[].product

String

The product name.

[].weekNumber

Number

The week number of the calendar year.

[].year

Number

The calendar year of the dairy price.

[].unit

String

The unit of the dairy price.

[].price

String

The dairy price.

Example of a response

HTTP/1.1 200 OK
Content-Type: application/json

[ {
  "memberStateCode" : "NL",
  "memberStateName" : "Netherlands",
  "beginDate" : "04/07/2017",
  "endDate" : "11/08/2017",
  "weekNumber" : 5,
  "price" : "€133.19",
  "unit" : "100KG",
  "year" : 2017,
  "product" : "BUTTER"
} ]

Dairy products

Example of a request

GET /api/dairy/products HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json

Response fields

Path Type Description

[]

Array

Array with dairy products

Example of a response

HTTP/1.1 200 OK
Content-Type: application/json

[ "SMP", "BUTTER" ]

Request parameters

Parameter Optional Description

memberStateCodes

true

The optional codes of the EU Member States.

years

true

The optional year(s) must be in format yyyy to search for dairy production volumes.

categories

true

The optional dairy category(ies). Multiple categories must be comma-separated. For more details check the REST API : /api/dairy/production/categories

months

true

The optional month(s) of the year to search for dairy production volumes.

Example of a request

GET /api/dairy/production?memberStateCodes=AT&categories=Acidified milk (yoghurts and other),Total raw cow's milk delivered to dairies&years=2021&months=1 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json

Response fields

Path Type Description

[]

Array

Array with dairy production

[].memberStateCode

String

The code of the EU Member State.

[].memberStateName

String

The name of the EU Member State.

[].year

Number

The year of the dairy production volume.

[].month

Number

The month of the year of the dairy production volume.

[].category

String

The category of the dairy production volume.

[].unit

String

The unit of measure of the dairy production volume.

[].production

Number

The quantity of the dairy production volume.

[].fatUnit

String

The unit of measure of the fat content.

[].fat

Number

The fat content percentage (if any) of total quantity.

[].proteinUnit

String

The unit of measure of the protein content.

[].protein

Number

The protein content percentage (if any) of total quantity.

Example of a response

HTTP/1.1 200 OK
Content-Type: application/json

[ {
  "memberStateCode" : "AT",
  "memberStateName" : "Austria",
  "year" : 2021,
  "month" : 1,
  "category" : "Acidified milk (yoghurts and other)",
  "unit" : "Thousand tonnes",
  "production" : 19.87,
  "fatUnit" : "% of product weight",
  "fat" : null,
  "proteinUnit" : "% of product weight",
  "protein" : null
}, {
  "memberStateCode" : "AT",
  "memberStateName" : "Austria",
  "year" : 2021,
  "month" : 1,
  "category" : "Total raw cow's milk delivered to dairies",
  "unit" : "Thousand tonnes",
  "production" : 268.01,
  "fatUnit" : "% of product weight",
  "fat" : 4.35,
  "proteinUnit" : "% of product weight",
  "protein" : 3.5
} ]

Dairy production categories

Example of a request

GET /api/dairy/production/categories HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json

Response fields

Path Type Description

[]

Array

Array with dairy categories

Example of a response

HTTP/1.1 200 OK
Content-Type: application/json

[ "Drinking milk", "Skimmed milk powder" ]