Search GOV.UK
govuk_searchSearch all of GOV.UK's content items—including guides, transactions, and publications—by keyword. Filter results by document type or government department to find official information quickly.
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 |
|---|---|---|---|
| query | Yes | Free-text search query, e.g. 'universal credit eligibility' or 'MOT check' | |
| count | No | Number of results to return (1–50) | |
| start | No | Offset for pagination, e.g. 10 for the second page of 10 results | |
| filter_format | No | Filter by document format. Common values: 'guide', 'answer', 'transaction', 'publication', 'news_article', 'detailed_guide', 'hmrc_manual_section', 'travel_advice', 'organisation'. Leave blank to search all types. | |
| filter_organisations | No | Filter by organisation slug, e.g. 'hm-revenue-customs', 'department-for-work-pensions', 'driver-and-vehicle-standards-agency'. | |
| order | No | Sort order. Use '-public_timestamp' for newest-first (default relevance). |
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. |