# UK Government Tenders Scraper: Contracts Finder + Find a Tender (`mossfetch/uk-public-tenders`) Actor

UK government tenders scraper for Contracts Finder and Find a Tender in one deduplicated feed. Filter by keyword, CPV, value, region and buyer. Daily new-tender alerts. $3 per 1,000 notices.

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

## Pricing

from $3.00 / 1,000 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 Scraper: Contracts Finder + Find a Tender

Get UK government tenders, contract opportunities and contract awards from **Contracts Finder** and **Find a Tender** in one clean dataset. Each procurement appears once. You can filter by keyword, CPV code, contract value, region, buyer and status, and a **new since last run** mode turns a daily schedule into a tender alert feed.

The data comes from the two official UK government OCDS APIs and is published under the [Open Government Licence v3.0](https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/). No login, no proxies and no page scraping are involved.

### What you get

- **Both UK procurement feeds in one run.** Find a Tender carries every notice under the Procurement Act 2023 plus higher-value contracts across England, Wales, Scotland and Northern Ireland. Contracts Finder carries lower-value English public sector contracts.
- **One row per procurement.** Notices are grouped by their OCDS ID (OCID). When a tender later gets an award or contract notice, you get one row holding the latest state. Earlier details such as the bid deadline are kept, and every notice is listed in `noticeHistory`.
- **Cross-feed duplicates removed.** If the same buyer published the same title on both services, only the Find a Tender copy is kept, and it links to the Contracts Finder copy in `alsoPublishedOn`.
- **Flat, spreadsheet-ready fields:** title, description, buyer, CPV codes, value (net and gross), deadlines, contract dates, region, awarded suppliers and value, SME suitability, and a link to the official notice.
- **Monitoring mode** for daily alerts. Each run returns only notices that are new or have changed since the previous run.
- **Personal data removed.** Named contact people, their emails and phone numbers (OCDS `contactPoint`) are always removed. Email addresses typed into descriptions are masked by default.

### Try it in one click

Open the actor and press **Start**. The prefilled input reads the last 3 days and stops after 3 notices, so your first run finishes in a few seconds and costs under $0.01. Then raise **Max results** (or set it to 0) for a full export.

### Who it's for

Bid writers and bid managers, B2B sales teams selling to the public sector, procurement consultancies, and market researchers tracking public spending and contract awards.

### Use cases

1. **Tender alerts.** Schedule a daily *new since last run* search for your keywords and CPV codes, and get only fresh opportunities, sent on by webhook, email, Slack, Make, Zapier or n8n.
2. **Sales prospecting.** See which councils, NHS trusts and agencies are buying what you sell, and who won the last contract, before the renewal.
3. **Market research.** Export award notices to Excel to benchmark contract values, winners and buyer spending by sector and region.

### Sample output

| Title | Buyer | Stage | Value (GBP) | Deadline |
|---|---|---|---|---|
| Replacement Windows & Doors of Housing Stock | Colchester City Council | tender | 5,000,000 | 2026-12-18 |
| Property and Land Management System | North Northamptonshire Council | award | 1,086,876 | 2026-08-21 |
| IDOX Uniform Case Management Software | Oldham Council | award | 323,000 | 2026-11-02 |

(Real rows from a run on 2026-11-19.)

### How to use it

#### Example 1: open IT tenders in London and the South East worth £100k or more

```json
{
  "lookbackDays": 14,
  "cpvCodes": ["72000000", "48000000"],
  "regions": ["London", "South East"],
  "minValue": 100000,
  "openForBidsOnly": true
}
```

#### Example 2: daily alert for cleaning contracts from NHS buyers

Save this input as a task and schedule it to run every morning. The first run returns the last 7 days. Each later run returns only what is new or updated.

```json
{
  "mode": "newSinceLastRun",
  "monitorKey": "nhs-cleaning",
  "keywords": ["cleaning", "janitorial"],
  "buyers": ["NHS"],
  "noticeStages": ["tender"]
}
```

Use a different `monitorKey` for each saved search so the searches don't share history. The actor stores its memory in a named key-value store called `uk-tenders-monitor-state` in your account.

#### Example 3: who won construction contracts last month

```json
{
  "publishedFrom": "2026-10-01",
  "publishedTo": "2026-11-01",
  "cpvCodes": ["45"],
  "noticeStages": ["award", "contract"],
  "maxItems": 0
}
```

### Input

| Field | What it does |
|---|---|
| `sources` | `contractsFinder`, `findATender`, or both (default). |
| `mode` | `all` (default) returns every matching notice in the window. `newSinceLastRun` returns only new or updated ones. |
| `monitorKey` | The name of a saved search's memory in monitoring mode. |
| `lookbackDays` | The window to read when no dates are set (default 7). In monitoring mode, this applies only to the first run. |
| `publishedFrom` / `publishedTo` | An explicit date window (UTC). |
| `keywords`, `keywordMatch`, `excludeKeywords` | Case-insensitive text match on the title and description. |
| `cpvCodes` | CPV codes or prefixes. `72000000` and `72` both match every IT services code. |
| `regions` | The UK region where the contract is delivered: North East, North West, Yorkshire and the Humber, East Midlands, West Midlands, East of England, London, South East, South West, Wales, Scotland, Northern Ireland. If a notice gives no delivery region, the buyer's region is used. |
| `includeNationwide` | Keep UK-wide contracts when filtering by region (default on). |
| `buyers` | Matches any part of the buyer name, for example `NHS` or `Leeds City Council`. |
| `statuses` | Tender status: planning, planned, active, complete, cancelled, unsuccessful, withdrawn. |
| `noticeStages` | The stage of the latest notice: planning, tender, award, contract, implementation. |
| `openForBidsOnly` | Only active tenders with a submission deadline still in the future. |
| `minValue` / `maxValue` | In GBP. Uses the tender value, or the awarded value if no tender value is published. |
| `includeUnknownValue` | When a value filter is set, also keep notices with no published value (default off). |
| `maxItems` | Stop after this many notices (default 1,000; 0 = no limit). |
| `dedupeAcrossSources` | Drop cross-feed duplicates (default on). |
| `redactEmailsInText` | Mask email addresses in descriptions (default on). |
| `includeRawRelease` | Also attach the full OCDS release, with contact points removed. |

### Output

Each dataset item looks like this (shortened):

```json
{
  "source": "findATender",
  "sourceName": "Find a Tender",
  "ocid": "ocds-h6vhtk-07b95c",
  "noticeStage": "tender",
  "noticeUrl": "https://www.find-tender.service.gov.uk/Notice/107018-2026",
  "title": "Corridor A - External Rendering Works 2026",
  "status": "active",
  "buyerName": "Hull College",
  "buyerRegion": "Yorkshire and the Humber",
  "cpvCodes": ["45410000"],
  "cpvDescriptions": ["Plastering work"],
  "valueAmount": 70000,
  "valueAmountGross": 70000,
  "currency": "GBP",
  "procurementMethodDetails": "Below threshold - open competition",
  "aboveThreshold": false,
  "tenderDeadline": "2026-12-11T12:00:00Z",
  "deliveryRegions": ["Yorkshire and the Humber"],
  "awardedSuppliers": [],
  "releaseCount": 1,
  "noticeHistory": [{ "stage": "tender", "tags": ["tender"], "date": "2026-11-11T11:08:06Z", "url": "https://www.find-tender.service.gov.uk/Notice/107018-2026" }],
  "licence": "Open Government Licence v3.0",
  "attribution": "Contains public sector information licensed under the Open Government Licence v3.0."
}
```

Other fields: `releaseId`, `releaseDate`, `noticeTags`, `description`, `buyerId`, `buyerLocality`, `buyerPostalCode`, `valueMin`, `awardedValue`, `awardDate`, `procurementMethod`, `mainCategory`, `suitableForSme`, `suitableForVcse`, `enquiryDeadline`, `contractStart`, `contractEnd`, `lotCount`, `deliveryRegionCodes`, `publishedDate`, `firstPublishedDate`, `alsoPublishedOn`, and `changeType` (`new` or `updated`, monitoring mode only).

The dataset has two views: **Overview** (opportunities) and **Awards** (who won and for how much). You can export either to CSV, Excel or JSON, or send it on through the API, webhooks, Make, Zapier or n8n.

Each run also saves a `RUN_SUMMARY` record in the key-value store. It shows how many notices each source returned, the number of duplicates removed and the number of matches.

### Pricing

**$3.00 per 1,000 notices** ($0.003 per notice saved to the dataset). You pay only for notices that match your filters. Fetching, deduplicating and filtered-out notices cost nothing. A daily alert that finds 20 new notices costs about $0.06, and a full export of 1,000 notices costs $3.

Set **Maximum cost per run** in the run options to cap spending. When the cap is reached, the actor stops cleanly and saves what it has.

### Reliability

- Every request has a timeout and is retried on network errors and 5xx responses.
- Both government APIs rate-limit clients. When they do, they answer HTTP 429 and ask the client to wait 2 minutes. The actor spaces out its requests to avoid this. If it is still rate-limited, it waits as instructed and then continues, and the status message tells you it is waiting. Rate limiting makes a run slower, not failed.
- If one source is down after all retries, you still get results from the other source. The status message and `RUN_SUMMARY` say clearly which source failed. In monitoring mode, the next run automatically re-reads the missed window.
- If every selected source fails, the run is marked as failed instead of finishing "successfully" with an empty dataset.

### Data notes and limits

- About half of all notices publish no contract value (common for award notices, frameworks and planning notices). Value filters exclude these unless you turn on `includeUnknownValue`.
- Regions come from the notice's delivery address. Older Contracts Finder notices give region names, while Find a Tender gives ITL/NUTS codes, which are converted to the 12 UK regions. The raw codes are kept in `deliveryRegionCodes`.
- Contracts Finder date filters use the publication date. Find a Tender date filters use the last-updated date.
- The Contracts Finder API can silently stop paging partway through a long date range. The actor works around this by querying Contracts Finder one day at a time and re-splitting any query that looks cut short.
- Contracts Finder and Find a Tender give the same procurement different OCIDs. Cross-feed duplicates are matched on title and buyer name, so a renamed duplicate can slip through.

### Licence and personal data

The source data is © Crown copyright and public sector bodies, used under the Open Government Licence v3.0. If you republish it, include the attribution text supplied in each row.

The actor removes every OCDS `contactPoint` (named officers, emails, phone numbers) before any data is saved. Organisation names, addresses and identifiers of buyers and suppliers are kept, because they are published business information. Some suppliers are sole traders, and their trading name may be a person's name. If you process this data, you are responsible for your own data-protection compliance.

### FAQ

**Do I need an API key or a proxy?** No. Both APIs are open.

**How far back can I go?** As far back as each service's API goes. Find a Tender started in January 2021, and Contracts Finder holds older notices. Long windows take longer, because both APIs return 100 notices per page and limit how fast clients can request pages.

**Can I get only new tenders each day?** Yes. Use `mode: newSinceLastRun`, add `noticeStages: ["tender"]`, and schedule the run daily.

**What does it cost?** $0.003 per notice saved, nothing for notices that are filtered out, plus a $0.00005 start fee per run. You are not billed separately for Apify compute. The prefilled test run costs under $0.01.

**Is it legal to use this data?** The data is published under the Open Government Licence v3.0. Keep the attribution text supplied in each row if you republish it.

**Do you scrape web pages?** No. The actor reads the two official OCDS APIs.

### Use it from code (API)

Run it from your own code with the Apify API clients. The input is the same JSON as in the form above.

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("mossfetch/uk-public-tenders").call(run_input={
  "keywords": [
    "cleaning"
  ],
  "lookbackDays": 7,
  "minValue": 50000,
  "maxItems": 100
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**JavaScript**

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

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('mossfetch/uk-public-tenders').call({
  "keywords": [
    "cleaning"
  ],
  "lookbackDays": 7,
  "minValue": 50000,
  "maxItems": 100
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**curl**

```bash
curl -X POST "https://api.apify.com/v2/acts/mossfetch~uk-public-tenders/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"keywords": ["cleaning"], "lookbackDays": 7, "minValue": 50000, "maxItems": 100}'
```

### Integrations and export

Results land in an Apify dataset. Download them as JSON, CSV, Excel, XML or HTML from the dataset tab or the API. You can schedule runs, trigger a webhook when a run finishes, and connect the actor to Make, Zapier, n8n or Google Sheets with Apify's standard integrations. These are generic Apify platform features, not extra features of this actor.

### More public-sector and funding data from mossfetch

- [EU Tenders API (TED)](https://apify.com/mossfetch/eu-ted-tenders)
- [SAM.gov Contract Opportunities API (US federal)](https://apify.com/mossfetch/sam-gov-opportunities)
- [SEC Form D Funding Leads](https://apify.com/mossfetch/sec-form-d-funding-leads)

# Actor input Schema

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

Which official feeds to read. Contracts Finder covers lower-value English notices; Find a Tender covers all notices under the Procurement Act 2023 and higher-value contracts across the UK.

## `mode` (type: `string`):

<b>All notices in window</b> returns every matching notice. <b>New since last run</b> returns only notices that are new or have a new version since the previous run with the same monitoring key. Schedule it daily for tender alerts.

## `monitorKey` (type: `string`):

Name for this saved search's memory in monitoring mode. Use a different key for each search you schedule so they don't share seen-notice history.

## `lookbackDays` (type: `integer`):

How many days back to read when no start date is set (prefilled 3 for a fast first run; default 7). In monitoring mode this only applies to the first run.

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

Start of the window (UTC). Overrides look-back.

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

Last day of the window (inclusive, UTC). Defaults to now.

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

Match notices whose title or description contains these words (case-insensitive).

## `keywordMatch` (type: `string`):

Whether a notice must contain any or all of the keywords.

## `excludeKeywords` (type: `array`):

Drop notices whose title or description contains any of these words.

## `cpvCodes` (type: `array`):

Common Procurement Vocabulary codes or prefixes. '72000000' or '72' matches all IT services; '45' matches all construction work.

## `regions` (type: `array`):

Delivery region of the contract (falls back to the buyer's region).

## `includeNationwide` (type: `boolean`):

When filtering by region, also keep notices delivered UK-wide or nationally.

## `buyers` (type: `array`):

Keep notices whose buyer name contains any of these (e.g. 'NHS', 'Leeds City Council').

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

OCDS tender status.

## `noticeStages` (type: `array`):

Stage of the latest notice.

## `openForBidsOnly` (type: `boolean`):

Only active tenders whose submission deadline is still in the future.

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

Uses the tender value, or the awarded value when there is no tender value.

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

Uses the tender value, or the awarded value when there is no tender value.

## `includeUnknownValue` (type: `boolean`):

When a value filter is set, keep notices that publish no value.

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

Stop after this many notices. 0 = no limit. Each notice costs $0.003, so the prefilled 3 is a test run under $0.01. Raise it (or set 0) for a full export.

## `dedupeAcrossSources` (type: `boolean`):

Drop a Contracts Finder notice when the same buyer published the same title on Find a Tender. The kept row links to the other copy.

## `redactEmailsInText` (type: `boolean`):

Contact person fields are always removed. This also masks email addresses written into free-text descriptions.

## `includeRawRelease` (type: `boolean`):

Attach the full OCDS release (with contact points removed) to each row.

## Actor input object example

```json
{
  "sources": [
    "contractsFinder",
    "findATender"
  ],
  "mode": "all",
  "monitorKey": "default",
  "lookbackDays": 3,
  "keywordMatch": "any",
  "includeNationwide": true,
  "openForBidsOnly": false,
  "includeUnknownValue": false,
  "maxItems": 3,
  "dedupeAcrossSources": true,
  "redactEmailsInText": true,
  "includeRawRelease": false
}
```

# Actor output Schema

## `notices` (type: `string`):

Deduplicated tender and contract notices from Contracts Finder and Find a Tender.

## `runSummary` (type: `string`):

Per-source counts, pages fetched, errors and why the run stopped.

# 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 = {
    "lookbackDays": 3,
    "maxItems": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("mossfetch/uk-public-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 = {
    "lookbackDays": 3,
    "maxItems": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("mossfetch/uk-public-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 '{
  "lookbackDays": 3,
  "maxItems": 3
}' |
apify call mossfetch/uk-public-tenders --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mossfetch/uk-public-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/a6mi6F0BO5yKYAng1/builds/65Lg4CY7woH6shkbK/openapi.json
