Accesses Air Quality Data from the Open Data Platform OpenAQ

Allows access to air quality data from the API of the OpenAQ platform <>, with the different services the API offers (getting measurements for a given query, getting latest measurements, getting lists of available countries/cities/locations).


ropenaq 0.2.7

  • Have the right function names in error messages about cities and countries, see issue #38 by Birgit Fullerton

  • Removes the unneeded ggmap dependency.

  • Stops trying to unnest attribution when it is returned by aq_measurements().

ropenaq 0.2.6

  • Takes into account the fact that the Status API can be unavailable.

ropenaq 0.2.5

  • Changes the code for the calendar plot in the openair vignette: with only 90 days data, before February the calendar plot has to be made for the previos year.

ropenaq 0.2.4

  • Updates documentation regarding data availability (90 days worth of data via the API).

ropenaq 0.2.3

  • Does no longer return an error if the API health status is unknown.

ropenaq 0.2.3

  • Adds waiting and messaging when too many requests.

ropenaq 0.2.2

  • Fixes bug due to new output of the latest endpoint.

ropenaq 0.2.1

  • Skips some tests on CRAN since the API health can influence the results.

  • Changes the footer link in the vignette.

ropenaq 0.2.0

  • Increases version number at last (because of change to crul).

  • Fixes an encoding, see #31

ropenaq 0.1.4

  • The httr dependency has been replaced with crul.

  • Now if not giving a value to limit all pages corresponding to a query are automatically retrieved, using async requests.

  • Better use of the status page.

  • Thanks to Mikayla Murphy ropenaq functions now use the new maximal limit per call which is 10,000.

ropenaq 0.1.3

  • Now all functions outputs a single data.frame with meta and timestamp as attributes. It should be easier to deal with compared to the former format (a list of 3 data.frames).

ropenaq 0.1.2

  • adds longitude, latitude and coordinates arguments to aq_latest, aq_locations and aq_measurements.

  • adds attribution, source_name and averaging_period arguments to aq_measurements.

ropenaq 0.1.1

  • Fixes a bug in aq_measurements, now outputs the right local time and not the UTC time for locations behind UTC time.

ropenaq 0.1

  • Added a file to track changes to the package.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.2.11 by Maëlle Salmon, 3 months ago,

Report a bug at

Browse source code at

Authors: Maëlle Salmon [aut, cre] , Andrew MacDonald [rev] (Andrew MacDonald reviewed the package for rOpenSci , see , Andy Teucher [rev] (Andy Teucher reviewed the package for rOpenSci , see , Mikayla Murphy [ctb]

Documentation:   PDF Manual  

GPL (>= 2) license

Imports crul, dplyr, jsonlite, lubridate, magrittr, rlang, tidyr

Suggests webmockr, ggplot2, knitr, rmarkdown, rworldmap, testthat, vcr, viridis

Suggested by rnoaa.

See at CRAN