API EXPLORER
PLAYGROUND
Pick an endpoint. Edit the request body. See the response.
1. Choose endpoint
Generate one at /api-keys. Stored locally in this page only; sent on Authorization header. Leave it blank while signed in and the request runs on your account. The exact charge is shown above the run button, and a paid call asks you to confirm it first.
Signed out and without a key, you can still call Daily Elections (free three times a week) and the free teaser routes listed in the API docs; paid routes need a key or sign-in.
Signed out, no key: free runs for this network, then a 402 that charges nothing
cURL equivalent
# Idempotency-Key: one new UUID per request; reuse the same key when retrying it.
curl -X POST https://electional.io/api/v1/daily-elections \
-H "Content-Type: application/json" \
-H "Idempotency-Key: <uuid>" \
-d '{
"birthDate": "1990-01-01",
"birthTime": "12:00",
"locationQuery": "London, UK"
}'Ready to wire it into your app?