R/get_recent_lobbying_representation_filings.R

Defines functions get_recent_lobbying_representation_filings

Documented in get_recent_lobbying_representation_filings

#' Get Recent Lobbying Representation filings
#'
#' To get the 20 most recent lobbying representation filings, use the following function. HTTP Request: GET https://api.propublica.org/congress/v1/lobbying/latest.json
#'
#' @inheritParams get_new_members
#'
#' @return List of returned JSON from endpoint that retrieves the 20 most recent lobbying representation filings. 
#' @export
#'
#' @examples
#' \dontrun{
#' get_recent_lobbying_representation_filings()
#' }
get_recent_lobbying_representation_filings <- function(page = 1, myAPI_Key){
  API = 'congress'
  query <- "lobbying/latest.json"
  pp_query(query, API, page = page, myAPI_Key = myAPI_Key)
}

Try the ProPublicaR package in your browser

Any scripts or data that you put into this service are public.

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