# UK Government Tenders & Contracts Scraper (`datapress/uk-government-tenders`) Actor

Search UK public-sector tenders and contract awards from Find a Tender and Contracts Finder. Filter by keyword, CPV code, value, region and deadline. Official open data, privacy-safe output.

- **URL**: https://apify.com/datapress/uk-government-tenders.md
- **Developed by:** [JD](https://apify.com/datapress) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 tender notices

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 Tenders & Contracts Scraper

Get **every UK public-sector tender and contract award** from **Find a Tender** and **Contracts Finder** in one clean, filterable dataset: titles, buyers, values, deadlines, CPV codes and winning suppliers. Export to Excel, CSV, JSON or Google Sheets, or schedule it daily as a **new-tenders alert feed**.

Built on the UK Government's **official open-data APIs** (Open Government Licence v3.0), not HTML scraping, so it's **fast** (thousands of notices in seconds), **reliable**, and **legally clean**.

### Who uses this

- **Suppliers and SMEs:** find contracts to bid for in your trade and region before your competitors do.
- **Bid writers and consultancies:** monitor opportunities for multiple clients.
- **Sales and business development teams:** see which councils, NHS trusts and departments are buying what, and when contracts expire.
- **Market researchers and analysts:** track public spending, contract values and who wins.

### What you can filter by

| Filter | Example |
|---|---|
| Keywords (title, description, lots) | `cleaning`, `software`, `catering` |
| Notice type | Open tenders, contract awards, pipeline/planning notices |
| Still open for bids | Only tenders with a future deadline |
| Date range | Last N days, or exact from/to dates |
| CPV code prefix | `45` construction, `72` IT, `90911` cleaning, `85` health & social |
| Contract value | Min/max £ |
| Buyer location | Postcode prefixes, e.g. `M`, `LS`, `SW1A` |
| Source | Find a Tender, Contracts Finder, or both |

### Output example

```json
{
  "source": "Find a Tender",
  "noticeType": "tender",
  "title": "Birmingham Metropolitan College Tender for Cleaning Services Contract",
  "buyerName": "BMet College",
  "buyerLocality": "Birmingham",
  "buyerPostcode": "B4 7PS",
  "valueAmount": 2158665,
  "valueCurrency": "GBP",
  "submissionDeadline": "2026-12-17T10:00:00Z",
  "procurementMethodDetails": "Competitive flexible procedure",
  "cpvCodes": ["90919300"],
  "cpvDescriptions": ["School cleaning services"],
  "url": "https://www.find-tender.service.gov.uk/Notice/110264-2026"
}
```

Award notices also include `awardDate`, `awardValue`, `contractStart`/`contractEnd`, and `suppliers` (with **Companies House numbers** where published), useful for spotting contracts coming up for renewal.

**Full field list:** source, noticeType, noticeId, ocid, url, title, description, status, publishedDate, submissionDeadline, valueAmount, valueAmountGross, valueCurrency, procurementMethod, procurementMethodDetails, mainCategory, cpvCodes, cpvDescriptions, lots, contractStart, contractEnd, buyerName, buyerLocality, buyerPostcode, buyerRegion, buyerCountry, buyerType, buyerContactEmail, awardDate, awardValue, suppliers.

### How to use it

1. Enter keywords and/or CPV codes (or leave them blank for everything).
2. Pick notice types and a date range.
3. Click **Start**. Results appear in the **Output** tab as a table you can download.

**Tip: a daily alert feed.** Create a **Schedule** that runs every morning with *Days back = 1* and *Only tenders still open* ticked, then connect an email, Slack or Google Sheets integration. You'll get each day's new opportunities automatically.

### Pricing

You pay only for the notices you receive (pay per result). There's no subscription, and filtering happens before you're charged, so you only pay for matches. You can set a maximum cost per run in Apify's run options.

### Privacy and data protection

This Actor is designed to be **UK GDPR-friendly**:

- **Named individual contacts and phone numbers are removed.** Only team mailboxes (e.g. `procurement@council.gov.uk`) are kept.
- Personal emails and mobile numbers inside description text are redacted.
- **Sole traders and individual suppliers are redacted**; only incorporated companies and public bodies are named.

### Data source and licence

Contains public sector information licensed under the [Open Government Licence v3.0](https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/). Data comes from the official Find a Tender service and Contracts Finder APIs. This Actor is independent and is not affiliated with or endorsed by the UK Government or the Cabinet Office.

### FAQ

**How far back can I search?** Up to 365 days per run. For longer history, run it in yearly chunks using the date fields.

**Why do some notices have no value?** Buyers don't always publish one. If you set a minimum value, notices without a value are skipped.

**Scotland, Wales and Northern Ireland?** Find a Tender covers higher-value notices across the whole UK. Lower-value notices from Public Contracts Scotland, Sell2Wales and eTendersNI aren't included yet. Open an issue if you need them.

**Something wrong or missing?** Open an issue on the **Issues** tab and we'll take a look.

### Example input (API & AI agents)

Open cleaning tenders from buyers in Manchester and Leeds published in the last 7 days.

```json
{
  "keywords": [
    "cleaning"
  ],
  "noticeTypes": [
    "tender"
  ],
  "onlyOpen": true,
  "daysBack": 7,
  "postcodePrefixes": [
    "M",
    "LS"
  ],
  "maxItems": 200
}
```

### Use with Claude, ChatGPT & AI agents (MCP)

Connect this Actor to any MCP client (Claude, ChatGPT, Cursor, VS Code) with this server URL; you'll be asked to sign in to Apify:

```
https://mcp.apify.com/?tools=datapress/uk-government-tenders
```

Or add **all datapress tools at once** (tenders, Companies House, EU registers, job boards, app stores, domains): see [datapress-mcp on GitHub](https://github.com/JD-ZY/datapress-mcp).

### More data tools from datapress

- **[Global Public Tenders (EU TED + US Federal)](https://apify.com/datapress/global-tenders)**: the same thing for the EU and US.
- **[UK Companies House Scraper + Financials](https://apify.com/datapress/uk-companies-house)**: look up the companies that win contracts.

# Actor input Schema

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

Only return notices whose title, description or lot titles contain ANY of these words (case-insensitive). Leave empty for all.

## `noticeTypes` (type: `array`):

tender = open opportunities you can bid for; award = who won and for how much; planning = early market engagement / pipeline.

## `onlyOpen` (type: `boolean`):

Keep only tender notices whose submission deadline is in the future.

## `daysBack` (type: `integer`):

How many days of notices to search, counting back from today (ignored if 'Published from' is set). Tip: schedule a daily run with 1 day for a fresh-notices feed.

## `publishedFrom` (type: `string`):

Start date, YYYY-MM-DD. Overrides 'Days back'.

## `publishedTo` (type: `string`):

End date, YYYY-MM-DD. Defaults to now.

## `cpvPrefixes` (type: `array`):

Filter by Common Procurement Vocabulary code prefix, e.g. 45 = construction, 72 = IT services, 90911 = cleaning, 79 = business services.

## `minValue` (type: `integer`):

Skip notices below this estimated value. Notices without a published value are skipped when this is set.

## `maxValue` (type: `integer`):

Skip notices above this estimated value. Notices without a published value are skipped when this is set.

## `postcodePrefixes` (type: `array`):

Only buyers whose postcode starts with one of these, e.g. M, LS1, SW1A, BS.

## `sources` (type: `array`):

Find a Tender covers higher-value contracts (and all notices under the Procurement Act 2023); Contracts Finder covers lower-value English contracts.

## `maxItems` (type: `integer`):

Stop after this many matching notices.

## Actor input object example

```json
{
  "keywords": [
    "cleaning"
  ],
  "noticeTypes": [
    "tender"
  ],
  "onlyOpen": false,
  "daysBack": 7,
  "sources": [
    "find-a-tender",
    "contracts-finder"
  ],
  "maxItems": 1000
}
```

# Actor output Schema

## `overview` (type: `string`):

Title, buyer, value, deadline and link for each matching notice.

## `allFields` (type: `string`):

Every field, including CPV codes, lots, contract dates and awarded suppliers.

# 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 = {
    "keywords": [
        "cleaning"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("datapress/uk-government-tenders").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 = { "keywords": ["cleaning"] }

# Run the Actor and wait for it to finish
run = client.actor("datapress/uk-government-tenders").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 '{
  "keywords": [
    "cleaning"
  ]
}' |
apify call datapress/uk-government-tenders --silent --output-dataset

```

## MCP server setup

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

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/Xkze21t5xfdP0fxyE/builds/YFI5BWuc6Y87VXsGO/openapi.json
