Search spending records
search_recordsSearch every line item: contract awards, federal contracts and grants, minister and MHA expense lines, and pay over $100,000. records holds exact matches: every word matches (by prefix), largest amount first, up to 25 per page (use page for more). A misspelled word is corrected when nothing matches exactly (see corrected). On page 1, related_by_meaning adds up to 20 records about the same thing that do not contain every word, closest first. Give a query, a filter, or both. Each record has its source citation. Sources: ppa = Provincial contract award; fed_contract = Federal contract; fed_grant = Federal grant or contribution; canadabuys = Federal award notice; pa_pss = Federal professional services payment; pa_tp = Federal transfer payment; sunshine = Public sector pay over $100,000; minister = Minister's expense claim; mha = MHA expense.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number. Default 1. | |
| year | No | Calendar year of the record date, e.g. 2024. | |
| query | No | Words to find, e.g. 'ferry repair', a company name, a town or a job title. | |
| source | No | Limit to one source. | |
| pattern | No | Flag id from list_flags, e.g. no-competition. | |
| supplier_id | No | Supplier id from get_supplier. |