Valimised ja erakonnad
Erakondade rahastamine
Kes erakondi rahastab ja kuhu raha läheb: ERJK kvartali- ja valimisaruanded.
Erakondade Rahastamise Järelevalve Komisjoni (ERJK) avaandmetest tuleb, kes erakondi rahastab ja kuhu raha läheb: kvartali- ja valimisaruannete tulud, kulud, annetajad ja teenusepakkujad, erakonna ja perioodi kaupa. Aruandeid saab kõrvutada nii erakondade vahel kui ka aastate lõikes. Nimekirjades on ka ajaloolisi ja tegevuse lõpetanud erakondi, ning isikukoodi siin ei avaldata: juriidilise annetaja puhul on selle asemel registrikood.
Mida su agent peab oskama
GETPiisab lehe tõmbamisest. Kõik vajalikud päringud on tavalised HTTPS-päringud. Iga agent, kes oskab veebilehe alla laadida, saab selle juhendi läbi teha.
Vastused, mis on siit tulnud
- Kes sai kõige rohkem raha?Milline erakond sai 2025. aastal kõige rohkem tulu ja kui suur see tulu oli?2026-08-04
Juhend ise
Inglise keeles, sest seda loeb mudel.
Party Funding Data (ERJK)
Use when
- You need party revenue, expenditure, donor, or supplier data.
- You need quarterly or election-report comparisons across parties.
Avoid when
- You need party membership records; use
political-party-membership.
Endpoints
- OpenAPI YAML: https://www.erjk.ee/avaandmed/erjkapi.yaml
- Parties:
https://erjk.ee/api/quarterly-reports/parties - Party reports:
https://erjk.ee/api/quarterly-reports/quarters/{party_id} - One report:
https://erjk.ee/api/quarterly-reports/{report_id}?report_type=receipts - Receipt query:
https://erjk.ee/api/quarterly-reports/queries/receipts?party_id=159&category_id=all&period=2025&quarter=quarter - Expense query:
https://erjk.ee/api/quarterly-reports/queries/expenses?party_id=159&category_id=all_by_group&period=2025&quarter=quarter - Election events:
https://erjk.ee/api/events - Classifiers:
https://erjk.ee/api/categories/receipts,https://erjk.ee/api/categories/expenses
Workflow
- Resolve
party_id, category IDs, or electionevent_idfrom their list endpoints. - Use aggregate query endpoints for comparisons; use report endpoints for record-level receipts or expenses.
- Preserve the exact query URL and return numeric amounts without silently rounding.
Access reality
- Public unauthenticated JSON API, verified 2026-07-14.
- The 2025 receipt example returns party/category/quarter rows with
amount,period,party_id,party_name,category_id,category_name, andquarter. - Requests may redirect from
/api/...to/et/api/...; allow redirects.
Request contract
report_typeis required on individual quarterly and election report endpoints and acceptsreceiptsorexpenses.party_idaccepts a numeric ID,all, orall_sumwhere documented.category_idsupports endpoint-specific aggregate values such asall,all_by_group, andall_sum.quarter=quartergroups a selected year by quarter;q1throughq4select quarter bounds.- The OpenAPI
periodenum is stale and stops at 2022; discover newer years from party report lists rather than rejecting them locally.
Output schema expectations
- Preserve IDs, names, period, quarter, category, amount, report type, and the exact request URL.
- Keep receipts and expenses separate.
Limits and caveats
- Party and category lists include inactive or historical values; do not treat every returned party as currently registered.
- Amounts are JSON strings. Parse them as decimal values, not binary floats, when totals must reconcile.
- The two endpoints round differently, and the difference is small enough to look like an arithmetic error. The aggregate query endpoints return exact decimal strings; the individual report endpoint (
/{report_id}?report_type=receipts) returns amounts already rounded to whole euros, as numbers. Measured 2026-08-01, ISAMAA 2026 Q1: 301,569.53 € from the query, 301,573 € from the report. State a quarter's revenue from the aggregate query; use the report for who paid. party_id=allis complete, not a sample — it just groups more coarsely. Same measurement:allreturned 4 rows for ISAMAA 2025 where the per-party call returned 16, and both summed to exactly 1,496,487.74 €.- The report's
birthdatefield is a birth date only for a natural person; for a legal donor it holds the public registry code. No isikukood is published here.
Verification hooks
- Require
application/jsonand the expected ID/name fields on list endpoints. - For aggregate queries, require at least one row and preserve its period and party/category identifiers.
Module API
partyFunding(party, {year, kind}) -> {source, page, party, year, kind, totals, rows} partyDonations(party, {year, quarter, min}) -> {source, page, party, report, note, totals, shown, truncated, rows} fundingRanking({year, kind}) -> {source, page, year, kind, totals, rows}