API Endpoints
1. Return List of Stations
Returns list of stations referred to as 'model' in other endpoints.
2. Download NEAD
Click here for information about the NEAD format
URL template with time range: https://www.envidat.ch/data-api//nead/model/nodata/parent_class/start/end
URL template returning all records: https://www.envidat.ch/data-api//nead/model/nodata/parent_class/
Example returning all records:
nodata represents "null" values in the database
- means that all "null" values will be "" in the NEAD file
- empty means that all "null" values will be "" (empty strings) in the NEAD file
nodata represents "null" values in the database
- means that all "null" values will be "" in the NEAD file
- empty means that all "null" values will be "" (empty strings) in the NEAD file
parent_class should correspond be
start is the start date of the dataset
end is the end date of the dataset (exclusive)
- start and end dates must be in in ISO timestamp date format: YYYY-MM-DD ('2019-12-20')
- start date must precede end date
3. Download CSV
URL template: https://www.envidat.ch/data-api//csv/model/parameter/nodata/parent_class/start/end/
Example returning one parameter:
Example returning several parameters:
model should correspond to a model name listed at , for example
parameter should be a type of measurement, for example
parameter can also be several types of measurements separated by commas, for example
- multiple means that all parameters will be included in the CSV
nodata represents "null" values in the database
- means that all "null" values will be "" in the CSV file
- empty means that all "null" values will be "" (empty strings) in the CSV file
start is the start date of the dataset
end is the end date of the dataset (exclusive)
- start and end dates must be in in ISO timestamp date format: YYYY-MM-DD ('2019-12-20')
- start date must precede end date
4. Return JSON Data
URL template: https://www.envidat.ch/data-api//json/model/parameter/parent_class/start/end/
Example returning several parameters:
model should correspond to a model name listed at , for example
parameter should be a type of measurement, for example
parameter can also be several types of measurements separated by commas, for example
start is the start date and time of the dataset
end is the end date and time of the dataset
- start date must precede end date
- start and end must be in in ISO timestamp date and time format: YYYY-MM-DDTHH:MM:SS ('2020-10-20T17:00:00)
5. Return Daily Summary JSON Data
URL template: https://www.envidat.ch/data-api//json/daily/model/parameter/parent_class/start/end/
Example returning several parameters:
model should correspond to a model name listed at , for example
parameter should be a type of measurement, for example
parameter can also be several types of measurements separated by commas, for example
start is the start date of the dataset
end is the end date of the dataset (exclusive)
- start and end dates must be in in ISO timestamp date format: YYYY-MM-DD ('2019-12-20')
- start date must precede end date
Parameters are aggregated daily for the following derived values: minimum ('_min'), maximum ('_max'), and average ('_avg)
'day' values are in "year-"day number" format
'timestamp_first' and 'timestamp_last' are the range of timestamps (inclusive) used for calculating the daily aggregated values
6. Download Daily Summary CSV
URL template: https://www.envidat.ch/data-api//csv/daily/model/parameter/nodata/parent_class/start/end/
Example returning on parameter:
Example returning several parameters:
model should correspond to a model name listed at , for example
parameter should be a type of measurement, for example
parameter can also be several types of measurements separated by commas, for example
nodata represents "null" values in the database
- means that all "null" values will be "" in the CSV file
- empty means that all "null" values will be "" (empty strings) in the CSV file
start is the start date of the dataset
end is the end date of the dataset (exclusive)
- start and end dates must be in in ISO timestamp date format: YYYY-MM-DD ('2019-12-20')
- start date must precede end date
Parameters are aggregated daily for the following derived values: minimum ('_min'), maximum ('_max'), and average ('_avg)
'day' values are in "year-"day number" format
'timestamp_first' and 'timestamp_last' are the range of timestamps (inclusive) used for calculating the daily aggregated values
Returns metadata for each station including earliest timestamps.
Also returns both earliest and latest timestamps for specified parameters.
URL template: https://www.envidat.ch/data-api//metadata/model/parameter/parent_class
Example returning several parameters:
model should correspond to a model name listed at , for example
parameter should be a type of measurement, for example
parameter can also be several types of measurements separated by commas, for example
Parameter List
{{ parameters|json_script:"parameters" }}