Returns available data sets. Note that the it is currently limited to collections following the naming scheme “^meteoschweiz.ogd-smn” which, as of July 2026, includes three different datasets:
- Automatic weather stations (collection id
ch.meteoschweiz.ogd-smn)
- Automatic precipitation stations (collection id
ch.meteoschweiz.ogd-smn-precip)
- Automatic tower stations (collection id
ch.meteoschweiz.ogd-smn-tower)
Note that sg_options() (swissgeo.core package) allows to tune some of the httr2 options if needed.
{r setting_cooldown, include = FALSE} r sg_options(timeout = 25)
# A tibble: 3 × 11
id title description license created updated
<chr> <chr> <chr> <chr> <dttm> <dttm>
1 ch.meteosch… Auto… SwissMetNe… CC-BY 2025-03-10 06:16:52 2026-07-09 21:49:13
2 ch.meteosch… Auto… SwissMetNe… CC-BY 2025-03-10 06:28:10 2026-07-09 21:48:10
3 ch.meteosch… Auto… SwissMetNe… CC-BY 2025-03-10 06:29:00 2026-07-09 21:48:11
# ℹ 5 more variables: itemType <chr>, crs <dttm>, extent <list>,
# data_from <dttm>, data_to <dttm>
# A tibble: 3 × 2
id title
<chr> <chr>
1 ch.meteoschweiz.ogd-smn Automatic weather stations - Measurement values
2 ch.meteoschweiz.ogd-smn-precip Automatic precipitation stations - Measurement…
3 ch.meteoschweiz.ogd-smn-tower Automatic tower stations - Measurement values
The function ms_datasets() returns a tibble data frame containing a series of information about the available datasets. From the APIs perspective each dataset is a collection, the term used from now on.
-
id: collection id
-
title/description: title and description of the data in the collection
-
license: the license of the data within the collection
- … and some more
The most important one is the id which is used subsequently to retrieve data from one of these collections, specifically when calling ms_metadata() and ms_stationdata().