Package: openaq 1.0.0

Russ Biggs

openaq: Access Air Quality Data from the 'OpenAQ' API

Provides an interface to the 'OpenAQ' API <https://openaq.org/>, a platform for real-time and historical air quality data from around the world. Users can retrieve measurement data, metadata for sensors and locations for air quality research and monitoring.

Authors:Russ Biggs [aut, cre], Christian Parker [aut], Francesca Mills [ctb], OpenAQ [cph, fnd]

openaq_1.0.0.tar.gz
openaq_1.0.0.zip(r-4.7)openaq_1.0.0.zip(r-4.6)openaq_1.0.0.zip(r-4.5)
openaq_1.0.0.tgz(r-4.6-any)openaq_1.0.0.tgz(r-4.5-any)
openaq_1.0.0.tar.gz(r-4.7-any)openaq_1.0.0.tar.gz(r-4.6-any)
openaq_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
openaq/json (API)
NEWS

# Install 'openaq' in R:
install.packages('openaq', repos = c('https://openaq.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/openaq/openaq-r/issues

Pkgdown/docs site:https://openaq.github.io

On CRAN:

Conda:

air-qualityapiopenaq

6.79 score 11 stars 21 scripts 532 downloads 36 exports 19 dependencies

Last updated from:5d83fb769d. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK143
source / vignettesOK203
linux-release-x86_64OK138
macos-release-arm64OK148
macos-oldrel-arm64OK192
windows-develOK86
windows-releaseOK76
windows-oldrelOK114
wasm-releaseOK109

Exports:as.data.frame.openaq_countries_listas.data.frame.openaq_instruments_listas.data.frame.openaq_latest_listas.data.frame.openaq_licenses_listas.data.frame.openaq_locations_listas.data.frame.openaq_manufacturers_listas.data.frame.openaq_measurements_listas.data.frame.openaq_owners_listas.data.frame.openaq_parameters_listas.data.frame.openaq_providers_listas.data.frame.openaq_sensors_listenable_rate_limitget_countryget_instrumentget_licenseget_locationget_manufacturerget_ownerget_parameterget_providerget_sensorlist_countrieslist_instrumentslist_licenseslist_location_latestlist_location_sensorslist_locationslist_manufacturer_instrumentslist_manufacturerslist_ownerslist_parameter_latestlist_parameterslist_providerslist_sensor_measurementsset_api_keyset_base_url

Dependencies:askpassclicpp11curlgenericsgluehttr2lifecyclelubridatemagrittropensslR6rappdirsrlangrstudioapisystimechangevctrswithr

Geospatial queries

Rendered fromgeospatial-queries.Rmdusingknitr::rmarkdownon May 20 2026.

Last update: 2026-03-12
Started: 2025-02-21

Integrating with ggplot2

Rendered fromggplot2.Rmdusingknitr::rmarkdownon May 20 2026.

Last update: 2025-07-25
Started: 2025-07-25

Introduction to openaq

Rendered fromopenaq.Rmdusingknitr::rmarkdownon May 20 2026.

Last update: 2026-03-12
Started: 2025-01-23

Plotting

Rendered fromplotting.Rmdusingknitr::rmarkdownon May 20 2026.

Last update: 2026-03-12
Started: 2025-01-23

Querying measurements

Rendered fromquerying-measurements.Rmdusingknitr::rmarkdownon May 20 2026.

Last update: 2026-03-12
Started: 2025-02-21

Querying rolled up measurements

Rendered fromquerying-rollups.Rmdusingknitr::rmarkdownon May 20 2026.

Last update: 2026-03-12
Started: 2025-07-23

Readme and manuals

Help Manual

Help pageTopics
Method for converting openaq_countries_list to data frame.as.data.frame.openaq_countries_list
Method for converting openaq_instruments_list to data frame.as.data.frame.openaq_instruments_list
Method for converting openaq_latest_list to data frame.as.data.frame.openaq_latest_list
Method for converting openaq_licenses_list to data frame.as.data.frame.openaq_licenses_list
Method for converting openaq_locations_list to data frame.as.data.frame.openaq_locations_list
Method for converting openaq_manufacturers_list to data frame.as.data.frame.openaq_manufacturers_list
Method for converting openaq_measurements_list to data frame.as.data.frame.openaq_measurements_list
Method for converting openaq_owners_list to data frame.as.data.frame.openaq_owners_list
Method for converting openaq_parameters_list to data frame.as.data.frame.openaq_parameters_list
Method for converting openaq_providers_list to data frame.as.data.frame.openaq_providers_list
Method for converting openaq_sensors_list to data frame.as.data.frame.openaq_sensors_list
Toggles on the RATE_LIMIT environment variable to TRUE.enable_rate_limit
Get a single country from countries resource.get_country
Get a single instrument from the instruments resource.get_instrument
Get a single license from the licenses resource.get_license
Get a single location from the locations resource.get_location
Get a single manufacturer from the manufacturers resource.get_manufacturer
Get a single owner from owners resource.get_owner
Get a single parameter from the parameters resource.get_parameter
Get a single provider from providers resource.get_provider
Get a single sensor from sensors resource.get_sensor
Get a list of countries from the countries resource.list_countries
Get a list of instruments from the instruments resource.list_instruments
Get a list of licenses from the licenses resource.list_licenses
Get the latest measurements by locations_id.list_location_latest
Get a list of a location's sensors.list_location_sensors
Get a list of locations from the locations resource.list_locations
Get a list of manufacturer instruments from the instruments resource.list_manufacturer_instruments
Get a list of manufacturers from the manufacturers resource.list_manufacturers
Get a list of owners from the owners resource.list_owners
Get the latest measurements by parameters_id.list_parameter_latest
Get a list of parameters from the parameters resource.list_parameters
Get a list of providers from the providers resource.list_providers
Get a list of measurements by sensors_id.list_sensor_measurements
Helper for plotting locations on map.plot.openaq_locations_data.frame
Helper for plotting locations from list.plot.openaq_locations_list
Helper for plotting measurementsplot.openaq_measurements_data.frame
Helper for plotting measurements from listplot.openaq_measurements_list
Set the API key value.set_api_key
Sets base URL environment variableset_base_url