About

The final level of the API is the Data level. This is where you get the actual Data. Data is available in CSV format for the Periods. There is no ATOM format for any Data.

All dates in the JSON answers are in Unix time stamp.

GET /api/version/{version}/parameter/{parameter}/station/{station}/period/{period}/data.{ext}
GET /api/version/{version}/parameter/{parameter}/station-set/{stationSet}/period/{period}/data.{ext}?measuringStations={measuringStations}

Parameters

{period} One of four Periods. Valid values are latest-hour, latest-day, latest-months or corrected-archive. Notice that all Stations do not have all four Periods so make sure to check which ones are available in the Period level.
{station} Numeric value. Available Stations are listed in the Parameter level.
{stationSet} Lexical value. Available Station Sets are listed in the Parameter level. Valid value is all which is the set of station that has data for the latest hour.
{parameter} Numeric value. Available Parameters are listed in the Version level.
{version} Numeric value or latest. Try to use the Version with the highest number instead of the Version titled latest.
{ext} The suffix specifying which mediatype to use. See mediatypes for more information.

Query parameters

{measuringStations} Query parameter specifying which measuring stations to get data for. Can be core or additional. See stations attributes. If not used, all stations are returned. Only valid for station-set.

Examples

Example request and response for the Data level. This response is not complete for the sake of readability.

GET /api/version/latest/parameter/1/station/2357/period/corrected-archive/data.csv
...

GET /api/version/latest/parameter/1/station/2357/period/latest-day/data.xml
...

GET /api/version/latest/parameter/1/station/2357/period/latest-day/data.json
...