Skip to contents

An electioneering communication is any broadcast, cable or satellite communication that fulfills each of the following conditions: The communication refers to a clearly identified federal candidate. The communication is publicly distributed by a television station, radio station, cable television system or satellite system for a fee. The communication is distributed within 60 days prior to a general election or 30 days prior to a primary election to federal office.

Usage

fec_get_electioneering(
  candidate_id,
  max_amount,
  sort_nulls_last,
  page,
  sort_hide_null,
  committee_id,
  min_date,
  min_amount,
  per_page,
  sort_null_only,
  description,
  sort,
  report_year,
  last_index,
  max_date,
  api_key = Sys.getenv("FEC_API_KEY", unset = "DEMO_KEY")
)

Arguments

candidate_id

A unique identifier assigned to each candidate registered with the FEC. If a person runs for several offices, that person will have separate candidate IDs for each office.

max_amount

Filter for all amounts less than a value.

sort_nulls_last

Toggle that sorts null values last

page

For paginating through results, starting at page 1

sort_hide_null

Hide null values on sorted column(s).

committee_id

A unique identifier assigned to each committee or filer registered with the FEC. In general committee id's begin with the letter C which is followed by eight digits.

min_date

Minimum disbursement date

min_amount

Filter for all amounts greater than a value.

per_page

The number of results returned per page. Defaults to 20.

sort_null_only

Toggle that filters out all rows having sort column that is non-null

description

BKTODO: No description provided.

sort

Provide a field to sort by. Use - for descending order.

report_year

Forms with coverage date - year from the coverage ending date. Forms without coverage date - year from the receipt date.

last_index

Index of last result from previous page

max_date

Maximum disbursement date

api_key

An API key provided by the API provider. This key is not clearly documented in the API description. Check the API documentation for details.

Value

BKTODO: Return descriptions are not yet implemented in beekeeper