Elections Canada official voting results and political contributions · Search contributions
elections-ca/elections/search_contributionsSearch public records with Elections Canada official voting results and political contributions · Search contributions from Alexandria through one Spiral API key. Who gave to a party, riding association or candidate; a person's political donations; contributions in a date or amount range. It runs in the background and returns structured JSON. Pay as you go, with no subscription.
Pricing
$0.00873 per call.
Limits
- Runs
- In the background
- Returns
- json
- Longest queue wait
- 1 hour
- Run deadline
- 5 minutes
- Longest run, end to end
- 225 minutes
- Largest inline input
- 1 MB
- Largest input file
- 2 GB
- Largest output
- 5 GB
Input
| Field | Kind | Default | Description |
|---|---|---|---|
data | one of as_reviewed, as_submitted | as_reviewed | Return data as reviewed/amended by Elections Canada, or as originally submitted. |
page | number 1 to … | 1 | page |
party | text | — | Party name or a unique part of it as listed by the site, e.g. Liberal Party of Canada, Conservative, Bloc, Green, New Democratic Party. |
to_date | text | — | Pattern: ^\d{4}-\d{2}-\d{2}$. |
from_date | text | — | Received on or after (YYYY-MM-DD). Pattern: ^\d{4}-\d{2}-\d{2}$. |
max_amount | number 0 to … | — | max_amount |
min_amount | number 0 to … | — | min_amount |
recipient_types | list | — | Default: all political entities. |
contribution_type | one of all, monetary, non_monetary | all | contribution_type |
contributor_types | list | — | contributor_types |
recipient_last_name | text | — | Candidate or contestant family name; applies to candidates and contestants only. |
contributor_province | one of NL, PE, NS, NB, QC, ON, MB, SK, AB, BC, YT, NT, NU | — | Contributor province or territory. |
recipient_first_name | text | — | recipient_first_name |
contributor_last_name | text | — | Contributor family name. |
contributor_first_name | text | — | contributor_first_name |
Same request in code
curl https://api.spiral.ai/v1/runs \
-H "Authorization: Bearer $SPIRAL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"provider": "alexandria",
"model": "elections-ca/elections/search_contributions",
"input": {
"data": "as_reviewed"
}
}'Frequently asked questions
How much does Elections Canada official voting results and political contributions · Search contributions cost?
$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.
How do I use Elections Canada official voting results and political contributions · Search contributions through an API?
Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "elections-ca/elections/search_contributions"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.
Do I need an account with Alexandria to use Elections Canada official voting results and political contributions · Search contributions?
No. Spiral runs it on its own Alexandria account and charges your Spiral balance.
Can my AI agent use Elections Canada official voting results and political contributions · Search contributions?
Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.