RAQSAPI - A Brief introduction into RAQSAPI functions

Clinton Mccrowey physical scientist - US EPA

Information: AQS Data Mart API restricts the
maximum amount of monitoring data to one full year of data per API
call.

RAQSAPI functions are named according to the service and filter variables that are available by the Data Mart API.1

Data Mart aggregate functions

These functions retrieve aggregated data from the Data Mart API and are grouped by how each function aggregates the data. There are 7 different families of related aggregate functions in which the AQS Data Mart API groups data.

These seven families are:

Within these families of aggregated data functions there are functions that call on the 13 different aggregate services that the Data Mart API provides. Note that not all aggregations are available for each service.

These fourteen services are:

Information: AQS Data Mart API restricts the
maximum amount of monitoring data to one full year of data per
API call. These functions are able to return multiple years of data by
making repeated calls to the API. Each call to the Data Mart API will take
time to complete. The more years of data being requested the longer RAQSAPI
will take to return the results.

Aggregate functions are named AQS_API<service>_<aggregation>() where <service> is one of the 13 services listed above and <aggregation> is either “_by_site”, “_by_county”, “_by_state”, “_by_box”, “_by_cbsa”, “_by_ma”, or “_by_pqao”.

See the RAQSAPI vignette for more details

(RAQSAPI must be installed and built with BUILD_MANUAL = TRUE enabled)

  RShowDoc(what="RAQSAPIvignette", type="html", package="RAQSAPI")

  1. See (https://aqs.epa.gov/aqsweb/documents/data_api.html) for the full details of the Data Mart API↩︎