get_electronic_filing_by_types: Get Electronic Filings By Type

View source: R/get_electronic_filing_by_types.R

get_electronic_filing_by_typesR Documentation

Get Electronic Filings By Type

Description

HTTP Request: GET https://api.propublica.org/campaign-finance/v1/cycle/filings/types/form-type-id

Usage

get_electronic_filing_by_types(cycle = 2018, form_type_id, page = 1, myAPI_Key)

Arguments

cycle

The election cycle

form_type_id

F + integer. To get form type IDs, use an electronic filing form types request.

page

Results come in batches of 20. The page parameter specifies which one to retrieve.

myAPI_Key

API key from Propublica To use the congress API, you must sign up for an API key.

Value

List of returned JSON from endpoint that retrieves a list of available form types for FEC electronic filings.

Examples

## Not run: 
get_electronic_filing_by_types(2016, 'F24')
get_electronic_filing_by_types(2016, 
matrix(unlist(get_electronic_filing_form_types(2016)$results), 
ncol = 2, byrow = TRUE)[8])
#' 
## End(Not run)

ProPublicaR documentation built on Sept. 8, 2023, 5:53 p.m.