# UK Government Tenders & Awards (Contracts Finder & FTS) (`blueoceanstar/uk-gov-tenders-intel`) Actor

Extract live UK public sector tenders, pipeline notices, and awarded contracts from both official OCDS portals (Contracts Finder & Find a Tender) with buyer contact emails, CPV codes, GBP values, and SME filters.

- **URL**: https://apify.com/blueoceanstar/uk-gov-tenders-intel.md
- **Developed by:** [Jason chen](https://apify.com/blueoceanstar) (community)
- **Categories:** Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 uk tenders extracted

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/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 & Awards — Contracts Finder + Find a Tender

Extract live **UK public sector tenders, procurement pipelines, and awarded contracts** simultaneously from **both official UK Government OCDS 1.1 portals**:

- **Contracts Finder** (sub-threshold central government, NHS trusts, local councils, and SME-friendly opportunities)
- **Find a Tender Service (FTS)** (above-threshold UK national tenders and framework agreements)

Built for **GovTech & B2B bid-intelligence teams**, **UK construction & IT suppliers**, **recruitment agencies**, and **AI research workflows** looking for clean structured data—without scraping fragile HTML pages or paying proxy surcharges.

***

### Key Capabilities

- **Unified Dual-Portal Feed:** Queries both official OCDS JSON endpoints and deduplicates notices by `ocid` automatically.
- **Actionable Buyer Contact & Award Data:** Extracts `buyerName`, `buyerEmail`, `buyerPhone`, `buyerContactName`, `buyerLocation`, `cpvCode` / `cpvDescription`, `deadlineDate`, `contractStartDate`, `contractEndDate`, and awarded winning suppliers (`awardedSuppliersSummary`, `awardValueAmount`).
- **Smart GBP Fallback on Awards:** Automatically populates `valueAmount` and `valueCurrency` from `awards[].value` whenever Find a Tender omits top-level `tender.value`.
- **Built-In Industry & SME Filtering:** Filter by procurement stage (`planning`, `tender`, `award`), `keywords`, CPV code prefixes (e.g. `["72", "48"]` for IT/software), `procurementCategories` (`services`, `goods`, `works`), `smeOnly`, and GBP contract value range.
- **Key-Value Store Executive Summary (`TENDERS_SUMMARY`):** Every run writes an aggregated JSON report ranking top public buyers, top CPV codes, SME count, total GBP contract value, and top 10 highest-value opportunities.

***

### Input Configuration

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `sources` | `string[]` | `["contracts_finder", "find_a_tender"]` | Portals to query (`contracts_finder`, `find_a_tender`). |
| `stages` | `string[]` | `["tender", "award"]` | Notice stages (`planning`, `tender`, `award`). |
| `keywords` | `string[]` | `[]` | Case-insensitive keyword filters across titles, descriptions, buyers, and suppliers. |
| `cpvPrefixes` | `string[]` | `[]` | CPV sector prefixes (e.g. `["72", "48"]` for IT/software). |
| `procurementCategories` | `string[]` | `[]` | Filter by `services`, `goods`, or `works`. |
| `smeOnly` | `boolean` | `false` | Return only notices marked suitable for SMEs. |
| `minValueGbp` / `maxValueGbp` | `integer` | `—` | Optional GBP contract value bounds. |
| `publishedFrom` / `publishedTo` | `string` | Last 7 days UTC | Optional `YYYY-MM-DD` date window. |
| `maxTenders` | `integer` | `30` | Maximum notices pushed per run (`1–1000`). |

***

### Sample Output Item

```json
{
  "ocid": "ocds-b5fd17-4537a13b-5321-443e-8592-4af6e7a7da33",
  "releaseId": "4537a13b-5321-443e-8592-4af6e7a7da33",
  "source": "contracts_finder",
  "stage": "award",
  "title": "Enterprise Hardware & Deployment Services",
  "buyerName": "UK Health Security Agency",
  "buyerEmail": "procurementnotices@ukhsa.gov.uk",
  "buyerLocation": "Canary Wharf, E14 4PU",
  "valueAmount": 99200,
  "valueCurrency": "GBP",
  "awardValueAmount": 99200,
  "awardedSuppliersSummary": "Computacenter (UK) Limited (large)",
  "smeSuitable": true,
  "noticeUrl": "https://www.contractsfinder.service.gov.uk/Notice/4537a13b-5321-443e-8592-4af6e7a7da33"
}
```

***

### Transparent Pay-per-Event Pricing

- **`apify-actor-start`**: `$0.005` once per run.
- **`tender-extracted`**: `$0.005` per UK tender or contract award pushed (`$5.00 / 1,000` notices).
- Honors Apify's **Maximum cost per run (`maxTotalChargeUsd`)** cap immediately so you never overspend.

# Actor input Schema

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

Choose contracts_finder (lower-value & local councils), find_a_tender (above-threshold UK-wide contracts), or both.

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

Notice stages to fetch: planning (future pipeline), tender (open opportunities), award (won contracts & suppliers).

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

Optional case-insensitive keywords matched against title, description, buyer name, CPV description, and awarded suppliers.

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

Filter by CPV industry prefixes (e.g. \["72", "48"] for IT & software, \["45"] for construction).

## `procurementCategories` (type: `array`):

Optional categories: services, goods, works.

## `smeOnly` (type: `boolean`):

When enabled, keeps only notices explicitly flagged as suitable for Small & Medium Enterprises.

## `minValueGbp` (type: `integer`):

Keep notices with estimated or awarded value >= this GBP amount.

## `maxValueGbp` (type: `integer`):

Keep notices with estimated or awarded value <= this GBP amount.

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

Inclusive start date (YYYY-MM-DD). Defaults to 7 days ago UTC if omitted.

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

Inclusive end date (YYYY-MM-DD). Defaults to today UTC if omitted.

## `maxTenders` (type: `integer`):

Maximum matching notices pushed across selected sources (1-1000).

## Actor input object example

```json
{
  "sources": [
    "contracts_finder",
    "find_a_tender"
  ],
  "stages": [
    "tender",
    "award"
  ],
  "keywords": [],
  "cpvPrefixes": [],
  "procurementCategories": [],
  "smeOnly": false,
  "publishedFrom": "",
  "publishedTo": "",
  "maxTenders": 30
}
```

# Actor output Schema

## `tenders` (type: `string`):

Structured Contracts Finder & Find a Tender opportunities and awards with buyer emails, CPV codes, and GBP values.

## `summary` (type: `string`):

Aggregated counts by portal, stage, CPV codes, top buyers, and highest-value contracts.

# 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 = {
    "sources": [
        "contracts_finder",
        "find_a_tender"
    ],
    "stages": [
        "tender",
        "award"
    ],
    "maxTenders": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("blueoceanstar/uk-gov-tenders-intel").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 = {
    "sources": [
        "contracts_finder",
        "find_a_tender",
    ],
    "stages": [
        "tender",
        "award",
    ],
    "maxTenders": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("blueoceanstar/uk-gov-tenders-intel").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 '{
  "sources": [
    "contracts_finder",
    "find_a_tender"
  ],
  "stages": [
    "tender",
    "award"
  ],
  "maxTenders": 30
}' |
apify call blueoceanstar/uk-gov-tenders-intel --silent --output-dataset

```

## MCP server setup

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

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/sUI13Vt2VxYs8gUlb/builds/bpR8FKMzXY6zcvFFD/openapi.json
