Let’s check the source-specific metadata for nssp.
We can pull the latest snapshot of a signal.
If you want to inspect the API request URL or query structure without
actually fetching the data, you can use the dry_run
argument via fetch_args_list():
Filtering by specific geographies and versions:
If you want to track how data for a specific time period was revised
over time, you can use epidata_archive().
Here are some examples for NHSN (hospitalizations), POPHIVE, and NWSS (wastewater).
# NHSN: Hospital Admissions
meta_nhsn <- epidata_meta(source = "nhsn")
meta_nhsn$nhsn$signals
meta_nhsn$nhsn$geo_types
meta_nhsn$nhsn$version_range
meta_nhsn$nhsn$time_value_range
nhsn_data <- epidata_snapshot(
source = "nhsn",
signal = "confirmed_admissions_flu_ew",
geo_type = "state"
)
head(nhsn_data)
# POPHIVE
meta_pophive <- epidata_meta(source = "pophive")
meta_pophive$pophive$signals
meta_pophive$pophive$geo_types
meta_pophive$pophive$version_range
meta_pophive$pophive$time_value_range
pophive_data <- epidata_snapshot(
source = "pophive",
signal = "covid_pct_ed",
geo_type = "state"
)
head(pophive_data)
# NWSS: Wastewater Surveillance
meta_nwss <- epidata_meta(source = "nwss")
meta_nwss$nwss$signals
meta_nwss$nwss$geo_types
meta_nwss$nwss$version_range
meta_nwss$nwss$time_value_range
nwss_data <- epidata_snapshot(
source = "nwss",
signal = "covid_avg_conc",
geo_type = "sewershed"
)
head(nwss_data)