About

The final level of the API is the Data level. This is where you get the actual Data. Notice that data is only available in CSV format for the Period corrected-archive, but also available in XML and JSON for the rest of the Periods. There is no ATOM format for any Data.

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}

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.

Examples

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

GET /api/version/1.0/parameter/1/station/159880/period/latest-months/data.csv
...

GET /api/version/1.0/parameter/1/station/159880/period/latest-months/data.xml
...

GET /api/version/1.0/parameter/1/station/159880/period/latest-months/data.json
...

GET /api/version/1.0/parameter/1/station-set/all/period/latest-hour/data.csv
...

GET /api/version/1.0/parameter/1/station-set/all/period/latest-hour/data.xml
...

GET /api/version/1.0/parameter/1/station-set/all/period/latest-hour/data.json
...