Search parliamentary documents
riksdag_search_documentsSearch Swedish parliamentary documents and consolidated SFS statutes by words, document type, session, committee, party, member IID or dates. Choose relevance or descending date ordering and follow complete continuation calls. Read document status and text with riksdag_get_document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Remote page number, starting at 1. | |
| sort | No | Source ordering; relevance for nonblank queries and descending date otherwise. | |
| party | No | Party code or exact reference label. | |
| query | No | Source full-text query; narrow slow searches with session or type. | |
| dateTo | No | Inclusive latest ISO calendar date, YYYY-MM-DD. | |
| offset | No | In-page row offset; follow nextCall without changing the remote page size. | |
| session | No | Parliamentary session; omission searches all available sessions. | |
| dateFrom | No | Inclusive earliest ISO calendar date, YYYY-MM-DD. | |
| memberId | No | Numeric member IID from riksdag_search_members; leading zeros are preserved. | |
| pageSize | No | Requested remote page size; maximum applied size 50. | |
| revision | No | Remote-page revision from continuation; rejects changed pages. | |
| committee | No | Committee code or exact reference label. | |
| documentType | No | Document type code or exact reference label, including sfs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Applied remote page. | |
| error | No | Present when the call failed. Absent on success. | |
| items | No | Complete rows selected from the fetched remote page. | |
| offset | No | Applied in-page row offset. | |
| source | No | Required attribution to the Swedish Parliament. | |
| hasMore | No | Whether local rows or another remote page remain. | |
| notices | No | All applicable notices, including an empty list. | |
| nextCall | No | Complete next-page call with unchanged filters and page size. | |
| pageSize | No | Applied remote page size. | |
| revision | No | Hash of the complete normalized remote page. | |
| truncated | No | Whether response fitting shortened this local page. | |
| totalCount | No | Authoritative source hit count, when published. | |
| retrievedAt | No | Source fetch time, retained unchanged on cache hits. | |
| returnedCount | No | Actual rows returned. | |
| upstreamQuery | No | Upstream query echo; not proof that a filter was applied. | |
| effectiveQuery | No | Deterministic normalized input, applied defaults and local filters. | |
| upstreamWarnings | No | Warnings supplied by the source. | |
| remoteReturnedCount | No | Complete fetched remote-page row count. |