# UK Government Consultations Tracker (`ukdatakit/uk-gov-consultations`) Actor

Every UK government consultation and call for evidence on GOV.UK: open ones sorted by closing date, closed ones awaiting a response, and newly published outcomes. Filter by keyword or department and schedule only-new alerts. Official GOV.UK data, no API key.

- **URL**: https://apify.com/ukdatakit/uk-gov-consultations.md
- **Developed by:** [Christopher Brown](https://apify.com/ukdatakit) (community)
- **Categories:** News
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 consultations

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## UK Government Consultations Tracker – Open, Closing Soon & Outcomes

Get **every UK government consultation and call for evidence on GOV.UK**:

- **open** ones, sorted by closing date, with days left to respond;
- **closed** ones still waiting for a government response;
- newly published **outcomes**.

Filter by keyword or department (HM Treasury, HMRC, DfE, MHCLG, DESNZ and every other GOV.UK organisation). Schedule **Only new since the last run** to get alerts for new consultations and published responses, so you never miss a deadline that affects your sector.

The default input returns all consultations open right now (about 60–80 at a time). Data comes from the official GOV.UK search API under the Open Government Licence. No API key, no login.

### Who uses this

- **Trade bodies, charities and campaign groups** respond before deadlines on policy that affects their members.
- **Public affairs, law and consultancy firms** run client alerts by department or keyword ("VAT", "planning", "social care").
- **Businesses** find out early about tax, regulation and licensing changes.
- **Journalists and researchers** see what government is asking about and when responses come out.

### Inputs

| Input | Example | Notes |
|---|---|---|
| Status | `open`, `closed`, `outcome` | Default `open`. |
| Include calls for evidence | `true` | |
| Keywords | `planning`, `tax` | Each keyword is its own search; results are merged. |
| Keyword must appear in title or summary | `true` | GOV.UK search is fuzzy. This keeps only clear matches. |
| Departments (GOV.UK slugs) | `hm-treasury`, `department-for-education` | The last part of the department's GOV.UK URL. |
| Closing in the next N days | `14` | Open consultations only. |
| Published or updated in the last N days | `30` | Handy with `outcome`. |
| Only new since the last run | `false` | First run saves a baseline. Use a different **watchlist name** per alert. |
| Max results | `100` | |

### Example output

```json
{
  "title": "Amendments to the Poisons Act 1972 framework",
  "summary": "The government is consulting on amendments to strengthen the regulatory framework for explosives precursors and poisons under the Poisons Act 1972.",
  "type": "consultation",
  "status": "open",
  "documentType": "open_consultation",
  "opens": "2026-10-01",
  "closes": "2026-11-11",
  "closesAt": "2026-11-11T23:59:00.000+00:00",
  "daysLeft": 1,
  "lastUpdated": "2026-10-01T09:00:48Z",
  "organisations": [
    "Home Office"
  ],
  "organisationAcronyms": [
    "Home Office"
  ],
  "organisationSlugs": [
    "home-office"
  ],
  "url": "https://www.gov.uk/government/consultations/amendments-to-the-poisons-act-1972-framework"
}
```

An outcome row (`statuses: ["outcome"]`, `keywords: ["tax"]`, last 30 days) looks like this:

```json
{"title": "Modernising and standardising company tax returns", "type": "consultation", "status": "outcome published", "closes": "2026-06-02", "lastUpdated": "2026-10-28T13:50:46Z", "organisations": ["HM Revenue & Customs"], "matchedKeywords": ["tax"], "url": "https://www.gov.uk/government/consultations/modernising-and-standardising-company-tax-returns--2"}
```

`status` is `open`, `closed – awaiting outcome` or `outcome published`. If GOV.UK still labels a consultation as open after its closing date, the actor reports it as closed.

### Pricing

Pay only for results: **$1.00 per 1,000 consultations** ($0.001 each). No start fee. Set a spending limit on the run and the actor stops cleanly when it is reached.

### Source and licence

- Source: the [GOV.UK search API](https://www.gov.uk/api/search.json) (the same index behind gov.uk/search/policy-papers-and-consultations), filtered to consultation and call-for-evidence document types.
- Licence: Open Government Licence v3.0. Contains public sector information licensed under the Open Government Licence v3.0.
- No personal data. Documents are government publications.

### FAQ

**Does it include devolved governments?** It includes UK government departments and agencies that publish on GOV.UK. The Scottish and Welsh Governments and the Northern Ireland Executive publish many consultations on their own sites, and those aren't included.

**Does it include the full consultation text or response forms?** No. You get the title, summary, dates, departments and link. Open the link for documents and how to respond.

**How do I find a department's slug?** Open its GOV.UK page, for example gov.uk/government/organisations/**hm-treasury**, and use the last part of the URL.

# Actor input Schema

## `statuses` (type: `array`):

Open = taking responses now. Closed = closed, government response not yet published. Outcome = government response published.

## `includeCallsForEvidence` (type: `boolean`):

Calls for evidence are earlier-stage requests for views, published alongside consultations.

## `keywords` (type: `array`):

GOV.UK search words, e.g. "planning", "VAT", "social care". Each keyword runs its own search; results are merged.

## `strictKeywords` (type: `boolean`):

GOV.UK search is fuzzy and returns loosely related pages. Keep this on to keep only documents whose title or summary contains the keyword.

## `organisations` (type: `array`):

Only these organisations, using the slug from their GOV.UK page, e.g. "hm-treasury", "department-for-education", "ministry-of-housing-communities-and-local-government", "hm-revenue-customs".

## `closingWithinDays` (type: `integer`):

Only open consultations that close within N days.

## `updatedWithinDays` (type: `integer`):

Useful with Outcome to see responses published recently.

## `onlyNew` (type: `boolean`):

Remembers what earlier runs returned (per watchlist name), so a scheduled run gives only newly opened consultations and newly published outcomes. The first run returns everything and saves a baseline.

## `watchlistName` (type: `string`):

Use a different name for each saved search you schedule.

## `maxResults` (type: `integer`):

Stop after this many documents.

## Actor input object example

```json
{
  "statuses": [
    "open"
  ],
  "includeCallsForEvidence": true,
  "strictKeywords": true,
  "onlyNew": false,
  "watchlistName": "default",
  "maxResults": 100
}
```

# Actor output Schema

## `results` (type: `string`):

One row per consultation or call for evidence.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("ukdatakit/uk-gov-consultations").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("ukdatakit/uk-gov-consultations").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call ukdatakit/uk-gov-consultations --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ukdatakit/uk-gov-consultations"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ufCL41vAnz9B1a4vY/builds/DQ2zEVQ8kD3XCcC3K/openapi.json
