GET /v1/election-dates/
FEC election dates since 1995.
Request
- Base URLhttps://api.open.fec.gov (the document declares no server; this is the origin it was published from)
- AuthAPI key in header X-Api-Key and API key in query parameter api_key and API key in query parameter api_key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
For paginating through results, starting at page 1
The number of results returned per page. Defaults to 20.
State or territory of the office sought.
House district of the office sought, if applicable.
Party, if applicable.
House, Senate or presidential office.
The minimum date of election.
The maximum date of election.
Election type id
The minimum date this record was added to the system.(MM/DD/YYYY or YYYY-MM-DD)
The maximum date this record was added to the system.(MM/DD/YYYY or YYYY-MM-DD)
The minimum date this record was last updated.(MM/DD/YYYY or YYYY-MM-DD)
The maximum date this record was last updated.(MM/DD/YYYY or YYYY-MM-DD)
Year of election
The minimum date of primary or general election.(MM/DD/YYYY or YYYY-MM-DD)
The maximum date of primary or general election.(MM/DD/YYYY or YYYY-MM-DD)
Provide a field to sort by. Use - for descending order.
Hide null values on sorted column(s).
Toggle that filters out all rows having sort column that is non-null
Toggle that sorts null values last
API key for https://api.data.gov. Get one at https://api.data.gov/signup.
Response
Default response
Changes
No recorded changes to this operation across all 20 revisions of this API.