Canparl Search Speeches
canparl_search_speechesFind indexed House Hansard speeches by speaker, bill debated or mentioned, or date. contains scans at most 100 candidate speeches per call; follow nextOffset without changing filters until exhausted before drawing a negative conclusion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum returned matches, 1–10 per call; larger values up to 10000 clamp to 10 with a notice. A page ends early at the 24000-byte response budget, returning at least one match whole. Candidate pages contain 20 rows. | |
| dateTo | No | Inclusive Ottawa civil date upper bound, YYYY-MM-DD; independently optional. | |
| offset | No | Raw candidate offset; keep every filter identical when continuing. | |
| contains | No | Local case-insensitive Unicode-normalized literal English text substring; cannot be the only scope. | |
| dateFrom | No | Inclusive Ottawa civil date lower bound, YYYY-MM-DD; independently optional. | |
| politician | No | Speaker OpenParliament slug or exact politician path/HTTPS URL (member.slug from canparl_get_member, or an includeFormer canparl_search_members row), or a current MP's official personId. A digit-only value equal to a current personId, or its /politicians/<digits>/ path or profile URL, is read as that personId. | |
| billDebated | No | Bill debated; combined with all other scopes using AND. | |
| mentionedBill | No | Bill mentioned; combined with all other scopes using AND. | |
| substantiveOnly | No | Exclude procedural remarks when true; false includes substantive and procedural remarks. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | Effective maximum returned matches after the per-call cap. | |
| error | No | Present when the call failed. Absent on success. | |
| shown | No | Number of returned matching speeches. | |
| notice | No | Limit clamp, coverage, continuation, procedural-filter, unavailable affiliation, and response-budget guidance. | |
| scanned | No | Raw candidates visited, including excluded committee records; at most 100. A response-budget stop ends it before the first match not returned. | |
| speeches | No | Matching House speeches in source order with complete English prose. | |
| exhausted | No | True only after visiting every row of a source-terminal page. | |
| truncated | No | Whether raw candidates remain to be scanned; not an exact count of further matches. | |
| nextOffset | No | First unvisited raw candidate offset, or null when exhausted; after a response-budget stop, the first match not returned. | |
| provenance | No | Original retrieval metadata for scope validation, candidate pages fetched before the page ended, and memberships of returned speeches. | |
| appliedFilters | No | All normalized filters applied with AND; bill relationships rely on the source endpoint. | |
| excludedCommittees | No | Visited candidates excluded because they were not House debate documents. |