https://github.com/jonthegeek/fecapi
'OpenFEC' 'API' Client
https://github.com/jonthegeek/fecapi
Last synced: 3 days ago
JSON representation
'OpenFEC' 'API' Client
- Host: GitHub
- URL: https://github.com/jonthegeek/fecapi
- Owner: jonthegeek
- License: other
- Created: 2023-10-05T21:27:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-26T15:20:03.000Z (12 months ago)
- Last Synced: 2024-12-30T00:32:31.549Z (4 months ago)
- Language: R
- Homepage: https://jonthegeek.github.io/fecapi/
- Size: 3.43 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Support: .github/SUPPORT.md
Awesome Lists containing this project
- jimsghstars - jonthegeek/fecapi - 'OpenFEC' 'API' Client (R)
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```# fecapi
[](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[](https://CRAN.R-project.org/package=fecapi)
[](https://app.codecov.io/gh/jonthegeek/fecapi?branch=main)
[](https://github.com/jonthegeek/fecapi/actions/workflows/R-CMD-check.yaml)A client to interact with the [OpenFEC API](https://api.open.fec.gov/developers/).
The OpenFEC API provides programmatic access to campaign finance data stored by the Federal Election Commission.## Installation
You can install the development version of fecapi from [GitHub](https://github.com/) with:
``` r
# install.packages("remotes")
remotes::install_github("jonthegeek/fecapi")
```## Made with {beekeeper}
This package is being developed using the [{beekeeper}](https://beekeeper.api2r.org/) package.
Development is very active, and this package will likely change a lot in the coming weeks.## Usage
This package is still a work in progress, and we do not yet recommend usage.
However, you can experiment using the `fec_all_api()` function, or the `fec_get_candidates()` function.```{r get-candidates}
# Get your API key at https://api.open.fec.gov/developers/
library(fecapi)
fec_get_candidates() |> head()fec_get_candidates(office = "P") |> head()
```## Code of Conduct
Please note that the fecapi project is released with a [Contributor Code of Conduct](https://jonthegeek.github.io/fecapi/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.