Spiral gives your agent every tool with one account. Browse the tools →

n8n · Public Records

How to Use GOV.UK publication search in n8n

Returns matching GOV.UK content records and links for further reading. Use it to discover publications across topics and publishers before fetching a page or exploring a manual.

Prompts to try with GOV.UK publication search in n8n

Copy an example into n8n, or ask in your own words.

Every Friday, use GOV.UK publication search to find HMRC guidance about VAT updated during the past week and list the titles and source links.

GOV.UK publication searchn8n
Try asking
  • Every Monday at 9am: use GOV.UK publication search to look this up and give me the result as a table.

  • Pull the latest numbers from GOV.UK publication search and tell me what changed since last week.

  • Check GOV.UK publication search and summarize what you find in three bullet points.

  • Pull the newest data from GOV.UK publication search and give me the result as a table.

How to set up GOV.UK publication search in n8n

Pick the way that suits you. Each takes about two minutes.

Use the Spiral skill

  1. Send n8n this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use Spiral's MCP server

  1. Create a key

    Create a key under API keys in the console.

  2. Add an MCP Client node

    In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

    https://api.spiral.ai/mcp
  3. Pick a tool

    The node lists Spiral's tools. In an MCP Client node pick one, such as run, and give it its arguments:

    {
      "provider": "fal",
      "model": "fal-ai/flux/schnell",
      "input": { "prompt": "a lighthouse at dawn" },
      "wait": true
    }
  4. Run GOV.UK publication search in a workflow step

    Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds GOV.UK publication search, prices it and runs it each time the step fires.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run GOV.UK publication search

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "gov-uk/government-publications/search",
        "input": {
          "q": "<q>"
        }
      }'

Then paste one of the prompts above: n8n finds GOV.UK publication search on Spiral, shows the price and runs it.

GOV.UK publication search providers and prices

Spiral runs GOV.UK publication search through Alexandria. Open a card for today's price, with every fee included.

AlexandriaPublic Records
GOV.UK · Search
gov-uk/government-publications/search

Settings you can ask for

Ask n8n for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Limit1 to 50

Results per page, 1 to 50 (default 10).

Orderrelevance, newest, oldest, or most_viewed

relevance (default with q; needs q), newest (default without q), oldest (by public timestamp, the last public change) or most_viewed.

Every API field of GOV.UK · Search is on its tool page: open its card above.

What can you do with GOV.UK publication search in n8n?

Maintain a GOV.UK reading queue for a business research topic. A scheduled agent can compare successive publication, manual, organization, page, or product notice results and report what needs review.

Prepare a retailer’s compliance reading list

Identify the relevant government publishers, find retail guidance, locate HMRC manual sections, and check OPSS notices for the retailer’s product categories. Read the selected pages to produce a linked reading list.

Research a consumer goods import launch

Build an evidence pack covering customs guidance, relevant HMRC manual sections, government publishing bodies, and published product safety notices. Read the underlying pages before drafting questions for the importer’s advisers.

Draft a trade association research bulletin

Collect publications, manual amendments, and product safety notices relevant to consumer goods businesses. Match publishers to organization records and read each selected page before writing the bulletin.

Check a marketplace seller handbook

Compare a draft handbook’s government references with published guidance, HMRC manual contents, and OPSS product notices. Use organization records to resolve publisher names and page content to support proposed corrections.

Build a manual section reading queue

Find the relevant HMRC manual, inspect its contents and change notes, and read selected sections. Produce a reading queue with section titles and source links.

Resolve publishers in a publication inventory

Match publication publishers to government organization records and follow available successor relationships. Use publication search and page content to check the references in the inventory.

Questions about GOV.UK publication search in n8n

Can n8n use GOV.UK publication search?

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run GOV.UK publication search like any built-in tool.

How much does GOV.UK publication search cost in n8n?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your n8n plan is separate.

Do I need an Alexandria account to use GOV.UK publication search in n8n?

You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs GOV.UK publication search on its own Alexandria account.

How long does it take to set up GOV.UK publication search in n8n?

About two minutes: create a key, then add an MCP Client node, then pick a tool.

Does n8n wait while GOV.UK publication search runs?

GOV.UK publication search runs in the background. n8n starts the run, checks on it and gives you the json when it's ready.

Does this cover every UK government website?

No. GOV.UK content retrieval covers pages hosted on www.gov.uk. It does not provide general coverage of other government websites.

Does GOV.UK search include publications in every language?

No. GOV.UK documents that only English documents are allowed into its search index, and certain formats are excluded.

What does a GOV.UK search update date mean?

The public timestamp is the last updated date excluding minor editorial corrections. A date-based search therefore does not identify every text edit.

Can I retrieve an earlier version of a publication?

The Content API returns published GOV.UK content. GOV.UK directs requests for historical content to the National Archives.

Are HMRC manuals complete answers to tax questions?

No. HMRC explicitly says its manuals are not comprehensive and do not provide a definitive answer in every case.

Get started

Start using GOV.UK publication search in n8n

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into n8n:

Set up n8n

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options