Skip to content
uace-azmetPublic

About

Access the AZMet API from R

Resources

Code of conduct

Stars

3 stars

Watchers

3 watching

Forks

Repository files navigation

azmetr

Project Status: Active – The project has reached a stable, usable state and is being actively developed. azmetr status badge R-CMD-check Codecov test coverage DOI

The goal of azmetr is to provide programmatic access to the Arizona Meteorological Network (AZMet) API in R.

Installation

You can install the development version of azmetr from r-universe:

install.packages('azmetr', repos = c('https://uace-azmet.r-universe.dev', 'https://cloud.r-project.org'))

Alternatively, you can install a development version directly from GitHub with the remotes package:

# install.packages("remotes")
remotes::install_github("uace-azmet/azmetr")

Example

For the most recent data from all stations, run functions without any arguments:

library(azmetr)

az_15min()
az_daily()
az_heat()
az_hourly()
az_lw15min()
az_lwdaily()

Because azmetr uses the httr2 package to handle API requests, you can wrap any azmetr function with with_verbosity() to get more detailed logging of the actually HTTP requests and response headers. For example:

httr2::with_verbosity(az_daily())
#> Querying data from 2026-05-19
#> -> GET /v1/observations/daily/*/*/* HTTP/2
#> -> Host: api.azmet.arizona.edu
#> -> User-Agent: azmetr (https://github.com/uace-azmet/azmetr)
#> -> Accept-Encoding: deflate, gzip
#> -> Accept: application/json
#> -> 
#> <- HTTP/2 200 
#> <- date: Wed, 20 May 2026 21:49:18 GMT
#> <- content-type: application/json
#> <- server: -
#> <- 

Code of Conduct

Please note that the azmetr project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

About

Access the AZMet API from R

Resources

Code of conduct

Stars

3 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages