Explore plenary sittings, decisions, and voters
euparl_get_plenary_votesDiscover sittings with mode sittings and year; default decisions pages compact summaries with labels and separate decided-on and recording document relations for sitting_id. Optional document_id filters decisions before paging by exact document identity or hyphen-boundary descendant. Mode decision requires decision_id and returns one rich record with reference text and commentary; it rejects nondefault paging and snapshot. Optional decision-only mep_id returns independent recorded and intended positions with publication availability, without a roster lookup; empty positions do not prove absence from the vote. Mode voters requires decision_id and one position, paging recorded and intended voters independently. Missing arrays succeed with available false; published empty arrays have available true. Optional resolve_names requires explicit roster_term and joins only published names from that complete term roster, never voting-date affiliations or current-roster substitutes. Some IDs may remain unresolved. Continue local decisions or voters with page.next_offset and snapshot; restart at offset 0 without snapshot after snapshot_changed. Missing sitting decisions succeed empty; absent selected decision fails decision_not_found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Default decisions returns compact summaries; sittings discovers by year, decision returns one rich record, voters pages one position. | decisions |
| year | No | Four-digit year, required only for sittings and forbidden in other modes. | |
| limit | No | Whole items requested; default 20, effective maximum 100 with notice. | |
| mep_id | No | Decision-only member lookup: canonical numeric ID, person/ prefix or exact public person URI. Uses published arrays without a roster join; empty positions do not prove absence from the vote. | |
| offset | No | Zero-based collection offset; default 0. | |
| language | No | Supported EU ISO-639-1 language, case-insensitive; default en; source text is never translated. | |
| position | No | Required only for voters: favor, against, abstention, intended_favor, intended_against, or intended_abstention. | |
| snapshot | No | Returned decisions or voter-position snapshot; required for local offset above 0, optional at offset 0; forbidden for sittings and decision. | |
| sitting_id | No | Required outside sittings: real YYYY-MM-DD date, MTG-PL-YYYY-MM-DD, known event prefix, or exact public event URI. | |
| decision_id | No | Required for decision and voters: exact returned canonical decision ID, known eli/dl/event/ prefix, or exact public event URI; forbidden for sittings and decisions. | |
| document_id | No | Decisions-only document filter: canonical ID, eli/dl/doc/ prefix or exact public URI. Matches decided-on or recording relations by exact ID or hyphen-boundary descendant before paging. | |
| roster_term | No | Explicit parliamentary term 0–10 containing the sitting; required with resolve_names true, forbidden otherwise. No term is inferred from dates. | |
| resolve_names | No | Default false retains IDs only; true is voters-only and requires roster_term for complete names-only roster resolution. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | Effective whole-item page limit. | |
| mode | No | Sitting discovery, compact decision page, one rich decision, or one voter-position page. | |
| page | No | Selected sitting, compact decision, or voter-position page; absent for a rich decision. | |
| error | No | Present when the call failed. Absent on success. | |
| shown | No | Whole items shown on this partial page. | |
| notice | No | Publication, language fallback, empty-result or continuation guidance. | |
| voters | No | Independent page for one recorded or intended position, preserving published ID order. | |
| decision | No | Complete selected rich decision, present only in decision mode. | |
| position | No | Selected recorded or intended position in voters mode. | |
| sittings | No | Sitting discovery page, present only in sittings mode. | |
| available | No | Whether the selected source array was published, including a published empty array. | |
| decisions | No | Compact whole-decision page with selected-language labels and separate decided-on and recording document relations. | |
| truncated | No | True when this page returns only part of the selected collection. | |
| sitting_id | No | Normalized selected sitting identifier; absent in sitting discovery. | |
| totalCount | No | Exact count only when published or computed over a complete collection. | |
| decision_id | No | Normalized selected decision identifier; present in decision and voters modes. | |
| appliedFilters | No | Actual normalized retrieval scope and filters. | |
| voter_resolution | No | Names-only provenance and complete-position resolution counts; names do not prove spelling or affiliation on the voting date. |