dates

GET /v1/election-dates/

FEC election dates since 1995.

Request

  • Base URL
    https://api.open.fec.gov (the document declares no server; this is the origin it was published from)
  • Auth
    API key in header X-Api-Key and API key in query parameter api_key and API key in query parameter api_key
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Query parameters

pageinteger

For paginating through results, starting at page 1

per_pageinteger

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

election_statestring[]

State or territory of the office sought.

election_districtstring[]

House district of the office sought, if applicable.

election_partystring[]

Party, if applicable.

office_soughtstring[]

House, Senate or presidential office.

min_election_datestring

The minimum date of election.

max_election_datestring

The maximum date of election.

election_type_idstring[]

Election type id

min_create_datestring

The minimum date this record was added to the system.(MM/DD/YYYY or YYYY-MM-DD)

max_create_datestring

The maximum date this record was added to the system.(MM/DD/YYYY or YYYY-MM-DD)

min_update_datestring

The minimum date this record was last updated.(MM/DD/YYYY or YYYY-MM-DD)

max_update_datestring

The maximum date this record was last updated.(MM/DD/YYYY or YYYY-MM-DD)

election_yearstring[]

Year of election

min_primary_general_datestring

The minimum date of primary or general election.(MM/DD/YYYY or YYYY-MM-DD)

max_primary_general_datestring

The maximum date of primary or general election.(MM/DD/YYYY or YYYY-MM-DD)

sortstring

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

sort_hide_nullboolean

Hide null values on sorted column(s).

sort_null_onlyboolean

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

sort_nulls_lastboolean

Toggle that sorts null values last

api_keystring

Response

Default response

Changes

No recorded changes to this operation across all 20 revisions of this API.