Search GOV.UK
govuk_searchSearch GOV.UK's official content database to find government information, services, and documents using specific queries and filters.
Instructions
Search GOV.UK's 700k+ content items using the official Search API.
Returns a list of matching content items with title, description, link, format, owning organisation(s), and last updated timestamp.
Use filter_format to narrow to specific content types (e.g. 'transaction' for citizen-facing services, 'guide' for guidance, 'publication' for official documents). Use filter_organisations to restrict to a department.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes | SearchInput with query, count, start, optional format/org filters, and optional sort order. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The free-text query that was searched. | |
| total | Yes | Total matching results across all pages on GOV.UK. | |
| start | Yes | Offset used for this page (zero-based). | |
| count | Yes | Max results requested for this page. | |
| returned | Yes | Number of results actually returned in this response. | |
| has_more | Yes | True if more results exist beyond this page. Re-call with start=start+returned to fetch the next page. | |
| results | No | Matching pages. Use the `link` field of any result as the `base_path` input to govuk_get_content for the full item. |