# UK Tenders Scraper — Contracts Finder & Find a Tender (`memo23/uk-tenders-scraper`) Actor

Scrape UK public procurement tenders, opportunities, and contract awards from Contracts Finder and Find a Tender (FTS). Filter by keyword, CPV code, stage (tender/award), and date — get clean, structured JSON/CSV with values, buyers, deadlines, and direct links.

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

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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 Tenders Scraper — Contracts Finder & Find a Tender (FTS)

Scrape UK public sector tenders, government contract opportunities, and contract awards from **Contracts Finder** and **Find a Tender (FTS)**.

Filter by keywords, CPV codes, stage (`tender`, `award`, `planning`), and publication dates — output clean, standardized JSON, CSV, and Excel datasets ready for your CRM, lead pipelines, or alerting bots.

***

### What is the UK Tenders Scraper?

The **UK Tenders Scraper** connects directly to the official UK Open Contracting Data Standard (OCDS) releases from the UK Cabinet Office. It extracts real-time and historical procurement data across central government, local authorities, NHS trusts, emergency services, and education institutions.

- **Contracts Finder**: Covers public sector contracts valued over £12,000 (central government) and £30,000 (wider public sector).
- **Find a Tender (FTS)**: Covers high-value UK procurement opportunities (replacing EU TED post-Brexit).

***

### Key Features

- **Full-Text Keyword Search:** Search by industry terms (e.g. `software development`, `facilities management`, `cleaning services`, `cloud hosting`).
- **CPV Code Filtering:** Filter precisely by Common Procurement Vocabulary (CPV) codes (e.g. `72000000` for IT, `45000000` for Construction).
- **Tenders & Awards:** Pull active calls for competition, early engagement notices, or awarded contracts with winning supplier details and contract values.
- **SME & VCSE Suitability:** Instantly identify tenders suitable for Small & Medium Enterprises (SMEs) and Voluntary/Community organizations.
- **Direct Notice Links:** Every row includes the canonical direct web URL to the government notice page.
- **Official Open Data:** Direct, fast HTTP requests with zero browser overhead and ultra-low compute consumption.

***

### Input Options

| Field | Type | Description | Example |
| :--- | :--- | :--- | :--- |
| `keywords` | String | Search terms matching title, description, or buyer. | `"cyber security"` |
| `stages` | Array | Procurement stages: `tender`, `award`, `planning`. | `["tender"]` |
| `cpvCodes` | Array | CPV classification codes to filter by. | `["72000000"]` |
| `publishedFrom` | String | Earliest publication date (`YYYY-MM-DD`). | `"2026-01-01"` |
| `publishedTo` | String | Latest publication date (`YYYY-MM-DD`). | `""` |
| `maxItems` | Integer | Max notices to scrape (0 for unlimited). | `500` |
| `flatten` | Boolean | Flatten nested structures for CSV/Excel export. | `true` |

***

### Sample Output

```json
{
  "id": "RA361520",
  "ocid": "ocds-b5fd17-97c50046-db56-410c-85fb-faa5207bf904",
  "title": "RA361520 - Working with Conflict Session",
  "description": "Hi NELFT & North London NHS Foundation Trust Procurement Shared Service requests offers for the provision of the above goods...",
  "stage": "tender",
  "status": "active",
  "publishedDate": "2026-11-20T15:45:17Z",
  "deadlineDate": "2026-12-04T12:00:00Z",
  "contractStartDate": "2027-01-01T00:00:00Z",
  "contractEndDate": "2028-01-01T00:00:00Z",
  "value": 50000,
  "minValue": null,
  "maxValue": null,
  "currency": "GBP",
  "buyerName": "North East London NHS Foundation Trust",
  "buyerId": "GB-CFS-56941",
  "buyerEmail": "procurement@nelft.nhs.uk",
  "buyerPostcode": "IG3 8XJ",
  "buyerCountry": "United Kingdom",
  "cpvCode": "80000000",
  "cpvDescription": "Education and training services",
  "additionalCpvCodes": ["80500000"],
  "suitabilitySme": true,
  "suitabilityVcse": false,
  "noticeUrl": "https://www.contractsfinder.service.gov.uk/Notice/3f0945d1-6cf6-4244-ad3b-da605b45809d",
  "source": "contracts_finder"
}
```

***

### Use Cases

1. **B2B Lead Generation:** Monitor government contracts in your industry and be the first to submit bids.
2. **Competitive Intelligence:** Analyze which competitors are winning government contracts and at what prices.
3. **Automated Alerting:** Set up daily runs with Apify schedules or webhooks into Slack, Teams, or CRM.
4. **Market Research:** Quantify public sector spend in specific sectors (NHS, education, defence).

# Actor input Schema

## `keywords` (type: `string`):

Search keyword(s) matching title, description, or buyer. Example: "cloud", "cyber security", "cleaning".

## `stages` (type: `array`):

Select procurement stage(s) to include. Options: tender (active opportunities), award (awarded contracts), planning (prior information / early notices).

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

Filter by CPV (Common Procurement Vocabulary) codes. Example: 72000000 (IT services), 45000000 (Construction), 79000000 (Business services).

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

Earliest publication date to include. Example: 2026-01-01.

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

Latest publication date to include. Leave empty for today.

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

Maximum number of notices to return. Set to 0 for unlimited.

## `flatten` (type: `boolean`):

Flatten nested objects into top-level columns for spreadsheet and table export.

## Actor input object example

```json
{
  "keywords": "",
  "stages": [
    "tender"
  ],
  "cpvCodes": [],
  "publishedFrom": "",
  "maxItems": 500,
  "flatten": true
}
```

# Actor output Schema

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

No description

# 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": "",
    "stages": [
        "tender"
    ],
    "cpvCodes": [],
    "publishedFrom": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/uk-tenders-scraper").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": "",
    "stages": ["tender"],
    "cpvCodes": [],
    "publishedFrom": "",
}

# Run the Actor and wait for it to finish
run = client.actor("memo23/uk-tenders-scraper").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": "",
  "stages": [
    "tender"
  ],
  "cpvCodes": [],
  "publishedFrom": ""
}' |
apify call memo23/uk-tenders-scraper --silent --output-dataset

```

## MCP server setup

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

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/h7lwn1akeegxjiUOk/builds/NajSKs6PRXe6lrFkm/openapi.json
