|
||||||||||||||
Getting Started
What is AP Elections API?AP Elections API (ELAPI) allows you to retrieve AP elections data using your own tools. API KeysAn API key is the access key required for making API calls. If you have not received your API key, please contact AP Customer Support. You can authorize your API request by specifying your API key in the x-api-key HTTP request header. Landing PageThe Elections API landing page at https://api.ap.org/v3/elections provides:
Typical WorkflowIntegrate your election systems with AP Elections API. Your election results delivery application (for example, a results loader that powers your election websites) retrieves election race information from AP Elections API.
Throughout the election, your application polls the API at regular intervals to retrieve election race information and updates in the races of interest; for example, all races in your state or Top-of-the-Ticket races in all states.
For more information, see Elections.
Throughout the election, your application polls the API at regular intervals to retrieve election reports; for example, delegate tracking reports for presidential primaries. For more information, see Election Reports.
Throughout the election, your application polls the API at regular intervals to retrieve state-by-state data on advance voting, including how many absentee ballots have been requested, sent and returned, demographic data, in-person voting data and historical data comparisons. For more information, see Advance Turnout.
During the presidential primaries, your application polls the API to retrieve the delegate allocation data for Democrats, Republicans or both. For more information, see Delegates. Supported ProtocolHTTPS with TLS 1.2 or 1.3 is supported for all API calls. Conventions
|