Gov Uk Content

v0.2.1
io.github.pipeworx-io/gov-uk-content Checked 1 day ago Published 1 month ago

GOV.UK Content + Search APIs.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

content

Fetch the full rendered content and metadata of any single GOV.UK page from its base_path — guidance, a policy paper, an organisation page, a departmental manual or one section of one. Returns title, description, body, publication and last-updated timestamps, and the page's links. Use gov_uk_search or hmrc_manual_search first when you do not already know the base_path.

ParameterTypeDescription
base_path *string

hmrc_manuals

List HM Revenue & Customs internal manuals and other UK departmental manuals — the guidance HMRC caseworkers and other officials actually apply, published in full. Covers income tax, PAYE, employment income, capital gains, corporation tax, VAT, inheritance tax, pensions, stamp duty, national insurance, trusts, residence and domicile, double taxation, compliance and penalties, plus non-HMRC manuals from other departments. Use this to see what manuals exist and their base_paths, then hmrc_manual_search to find the section that answers a question.

ParameterTypeDescription
countnumberManuals per page, 1-100 (default 50).
include_other_departmentsbooleanAlso return non-HMRC departmental manuals (Home Office, DWP, and others). Default false.
querystringOptional free text to narrow the manual list, e.g. "capital gains" or "pensions".
startnumberOffset for paging.

hmrc_manual_section

Retrieve the full text of one section of an HMRC internal manual (or another UK departmental manual), by its base_path or by manual plus section id such as EIM42750. Returns the section title, its text, its place in the manual's structure, whether it has been withdrawn, and its published_at / source_last_modified with age_days so you can tell how current HMRC's stated position is.

ParameterTypeDescription
base_pathstringFull section path, e.g. "/hmrc-internal-manuals/employment-income-manual/eim42750".
manualstringManual base_path or slug, used together with section_id.
max_charsnumberCap on returned body text (default 20000).
section_idstringSection id, e.g. "EIM42750" (case-insensitive).

hmrc_manual_changes

Read what HMRC most recently changed in one of its internal manuals — the per-section revision log the department publishes with each manual, newest first. Each entry carries the section id and title, HMRC's own note of what changed ("Updated for change in legislation for intermediaries", "Page withdrawn"), its published_at and age_days. Use it to tell whether HMRC's stated position on a topic has moved, to audit a manual's freshness, or to watch a specific area of UK tax guidance for revisions.

ParameterTypeDescription
manual *stringManual base_path or slug, e.g. "employment-income-manual" or "/hmrc-internal-manuals/capital-gains-manual".
limitnumberChange entries to return, 1-200 (default 25).
section_idstringOnly changes to this section, e.g. "EIM42750".
sincestringOnly changes published on or after this date (YYYY-MM-DD).

organisations

List GOV.UK government organisations (departments, agencies, etc.) with title, URL path, acronym, and operational state, paginated via start and count (default 20, max 100 per page).

ParameterTypeDescription
countnumber
startnumber

taxons

Fetch a GOV.UK taxonomy tree node by base_path (defaults to root "/"), returning the taxon's title, description, phase, links to child taxons, and associated content items.

ParameterTypeDescription
base_pathstring

search_autocomplete

Autocomplete suggestions.

ParameterTypeDescription
query *string