GOV.UK: search, travel advice and bank holidays
GOV.UK content APIs: search GOV.UK pages, FCDO foreign travel advice for a country, and UK bank holidays for England and Wales, Scotland and Northern Ireland.
No API key needed to call
- Source
- GOV.UK (Government Digital Service and Foreign, Commonwealth and Development Office)
- Licence and terms
- Open Government Licence v3.0
- Coverage
- United Kingdom
- Refresh cadence
- Answers are shared and cached for 3600 seconds.
Questions you can ask
- What does GOV.UK say about renewing a passport?
- What is the UK government travel advice for France?
- What are the latest listed bank holidays in Scotland?
Operations
Search GOV.UK
Answers: which GOV.UK pages and guidance match a query, with title, description, type and last update?
| q | required, string, Search keywords. |
|---|---|
| count | optional, integer, default 8, How many results. |
Example: What does GOV.UK say about renewing a passport?
Over MCP
{"tool":"call_connector_operation","arguments":{"connector":"govuk","operation":"govuk_search","params":{"q":"passport","count":3}}}Over HTTP
curl '/v1/connectors/govuk/govuk_search?q=passport&count=3'FCDO foreign travel advice for a country
Answers: what is the UK Foreign Office travel advice for a country: latest change, warnings and the text of the safety, entry requirements and health sections (shortened)?
| country | required, string, Country slug in lower case, for example france, japan, united-arab-emirates. |
|---|
Example: What is the UK government travel advice for France?
Over MCP
{"tool":"call_connector_operation","arguments":{"connector":"govuk","operation":"govuk_travel_advice","params":{"country":"france"}}}Over HTTP
curl '/v1/connectors/govuk/govuk_travel_advice?country=france'UK bank holidays
Answers: what are the bank holidays in England and Wales, Scotland or Northern Ireland, and which are upcoming?
| division | optional, string, england-and-wales | scotland | northern-ireland, default england-and-wales, Part of the UK. |
|---|---|
| from | optional, string, Only holidays on or after this date (YYYY-MM-DD), earliest first. Without it the latest 25 listed holidays are returned. |
Example: What are the latest listed bank holidays in Scotland?
Over MCP
{"tool":"call_connector_operation","arguments":{"connector":"govuk","operation":"govuk_bank_holidays","params":{"division":"scotland"}}}Over HTTP
curl '/v1/connectors/govuk/govuk_bank_holidays?division=scotland'Source notice
Source: GOV.UK. Contains information licensed under the Open Government Licence v3.0. Terms: "You are free to: copy, publish, distribute and transmit the Information; adapt the Information; exploit the Information commercially and non-commercially" under the Open Government Licence v3.0, which asks for attribution. Values are trimmed and reordered here; the publisher does not endorse this presentation.