Skip to contents

Request Nomination Information

Usage

cong_nomination(
  congress = NULL,
  number = NULL,
  item = NULL,
  from_date = NULL,
  to_date = NULL,
  limit = 20,
  offset = 0,
  format = "json",
  clean = TRUE
)

Arguments

congress

Congress number to search for. 81 or later are supported.

number

Nomination assigned number. Numeric.

item

Information to request. Can be 'actions', 'committees', 'hearings' or the ordinal number.

from_date

start date for search, e.g. '2022-04-01'. Defaults to most recent.

to_date

end date for search, e.g. '2022-04-03'. Defaults to most recent.

limit

number of records to return. Default is 20. Will be truncated to between 1 and 250.

offset

number of records to skip. Default is 0. Must be non-negative.

format

Output format for clean = FALSE. One of xml or json.

clean

Default is TRUE. Should output be returned as a tibble (TRUE) or requested format.

Value

tibble or HTTP response if clean = FALSE

Examples

if (FALSE) { # congress::has_congress_key()
# Requires API Key

cong_nomination()

cong_nomination(congress = 118)

cong_nomination(congress = 117, number = 2467)

cong_nomination(congress = 117, number = 2467, item = 'actions')

cong_nomination(congress = 117, number = 2467, item = 1)

}