epair
Use R to get data from the Environmental Protection Agency API.
https://github.com/ropensci/epair
Category: Sustainable Development
Sub Category: Data Catalogs and Interfaces
Last synced: about 19 hours ago
JSON representation
Repository metadata
Use R to get data from the Environmental Protection Agency API
- Host: GitHub
- URL: https://github.com/ropensci/epair
- Owner: ropensci
- License: gpl-3.0
- Created: 2020-05-14T18:21:45.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-12-01T19:01:44.000Z (about 1 month ago)
- Last Synced: 2026-01-04T17:37:49.518Z (10 days ago)
- Language: R
- Homepage:
- Size: 2.5 MB
- Stars: 8
- Watchers: 2
- Forks: 5
- Open Issues: 1
- Releases: 2
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: docs/CODE_OF_CONDUCT.html
- Codemeta: codemeta.json
README.md
epair
A package designed to aid in getting data from the Environmental Protection Agency (EPA) API at
https://aqs.epa.gov/aqsweb/documents/data_api.html.
Overview
The epair package helps you determine what data you want and how to get that data from the EPA API.
It provides loaded in variables that help you navigate services in the API, and a simple way to query the data.
Broadly, you can explore possible calls by typing epair::get_ and seeing what autocomplete offers in R.
Most of these functions require a start and end date along with a geographical boundary type (like CBSA code or bounding box). For more details, we recommend looking at the help docs ?epair::get_[type]() for the function you're interested in using to see the exact required params.
Installation
You can download the package simply by using r-universe.
install.packages("epair", repos = "https://ropensci.r-universe.dev")
Alternativately, you can download the latest release from this repo using devtools.
devtools::install_github("ropensci/epair")
Or, download these files, and in your working directory run the following.
devtools::install("ropensci/epair")
epair depends on httr for making its data calls and rvest for creating the variables loaded in with the package. We recommend having httr installed (automatically taken care of through package dependencies), and only installing rvest if you're curious about how package variables were made.
Usage notes
Note that currently a single call to AQS allows for at maximum a single year's worth of data. You'll need to create separate calls to get multiple year's worth of data.
ropenaq
You may want to check out ropenaq instead depending on the goals behind your study. ropenaq is an R wrapper for accessing the OpenAQ API - see its website here. Here are a few differences:
-
epairwill get data from a single source (EPA AQS API), whileropenaqwill be more useful if you’re trying to compare data from different sources. -
If you're interested in data for the US only,
epairwould be an appropriate choice. For more locations across the world,ropenaqwould work better. -
epair’sdata source does offer more granularity than OpenAQ for US data. The EPA AQS API can give over 500 parameters/pollutants of interest (as opposed to OpenAQ’s 5), county level coverage, and unaggregated raw data. By default, OpenAQ will give aggregated data so if you're only interested in aggregations, then OpenAQ is the way to go.
Terms of Service
Make sure you also see the Usage Tips and Terms of Service associated with using this API at https://aqs.epa.gov/aqsweb/documents/data_api.html.
Owner metadata
- Name: rOpenSci
- Login: ropensci
- Email: info@ropensci.org
- Kind: organization
- Description:
- Website: https://ropensci.org/
- Location: Berkeley, CA
- Twitter: rOpenSci
- Company:
- Icon url: https://avatars.githubusercontent.com/u/1200269?v=4
- Repositories: 307
- Last ynced at: 2023-03-10T20:30:59.242Z
- Profile URL: https://github.com/ropensci
GitHub Events
Total
- Delete event: 1
- Push event: 2
- Pull request review event: 1
- Pull request event: 1
Last Year
- Delete event: 1
- Push event: 2
- Pull request review event: 1
- Pull request event: 1
Committers metadata
Last synced: 2 days ago
Total Commits: 290
Total Committers: 3
Avg Commits per committer: 96.667
Development Distribution Score (DDS): 0.317
Commits in past year: 4
Committers in past year: 2
Avg Commits per committer in past year: 2.0
Development Distribution Score (DDS) in past year: 0.25
| Name | Commits | |
|---|---|---|
| GLOrozcoM | g****m@p****m | 198 |
| mmlawrence | 6****e | 86 |
| ogilani | o****i@g****m | 6 |
Issue and Pull Request metadata
Last synced: about 1 month ago
Total issues: 0
Total pull requests: 37
Average time to close issues: N/A
Average time to close pull requests: 4 days
Total issue authors: 0
Total pull request authors: 4
Average comments per issue: 0
Average comments per pull request: 0.54
Merged pull request: 31
Bot issues: 0
Bot pull requests: 0
Past year issues: 0
Past year pull requests: 3
Past year average time to close issues: N/A
Past year average time to close pull requests: 1 day
Past year issue authors: 0
Past year pull request authors: 2
Past year average comments per issue: 0
Past year average comments per pull request: 0.33
Past year merged pull request: 2
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
Top Pull Request Authors
- GLOrozcoM (17)
- mmlawrence (17)
- ogilani (2)
- accipio09 (1)
Top Issue Labels
Top Pull Request Labels
Package metadata
- Total packages: 1
- Total downloads: unknown
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 2
proxy.golang.org: github.com/ropensci/epair
- Homepage:
- Documentation: https://pkg.go.dev/github.com/ropensci/epair#section-documentation
- Licenses: gpl-3.0
- Latest release: v1.1.0 (published over 3 years ago)
- Last Synced: 2026-01-11T17:56:41.918Z (3 days ago)
- Versions: 2
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 5.395%
- Average: 5.576%
- Dependent repos count: 5.758%
Score: -Infinity