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
DESCRIPTION |NEWS
card.svg |card.png
openaq/json (API)

# 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.80 score 12 stars 22 scripts 404 downloads 36 exports 18 dependencies

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

TargetResultTimeFilesSyslog
linux-devel-x86_64OK144
source / vignettesOK235
linux-release-x86_64OK151
macos-release-arm64OK145
macos-oldrel-arm64OK128
windows-develOK103
windows-releaseOK73
windows-oldrelOK91
wasm-releaseOK121

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:askpassclicpp11curlgenericsgluehttr2lifecyclelubridatemagrittropensslR6rlangrstudioapisystimechangevctrswithr

Geospatial queries
Point and Radius | Bounding box | Computing a bounding box from a polygon

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

Introduction to openaq
Key concepts | API Key | Rate limits | Automatic rate limit handling | Pagination | Features | Queryable resources | Countries | Instruments | Latest | Licenses | Locations | Manufacturers | Measurements | Owners | Parameters | Providers | Sensors | Data frames | Automatic rate limiting | Debugging

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

Plotting

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

Querying measurements
Introduction | Listing Locations | Fetching Measurements

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

Querying rolled up measurements

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

Integrating with ggplot2

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

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