# UK Government Tenders & Public Contracts Lead Monitor (OCDS) (`gridline-labs/uk-gov-tenders-scraper`) Actor

Monitor live UK public sector tenders from Contracts Finder & Find a Tender Service (FTS). Extract GBP budgets, deadlines, CPV codes, buyer contact emails & phones with daily onlyNew alerts.

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

## Pricing

Pay per event

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 & Public Contracts Lead Monitor (OCDS)

Monitor **live UK public sector tenders and high-value government contracts** across **both** official UK Open Contracting Data Standard (OCDS) portals in a single fast run:

1. **UK Contracts Finder** — Central government, councils, schools & NHS tenders (`£12k+` opportunities)
2. **UK Find a Tender Service (FTS)** — High-value public procurement contracts (`£138k – £500M+`)

Built **100% HTTP-only** on **256 MB RAM** by **[Gridline Labs](https://gridlinelabshq.com)** for **B2B sales teams, IT/software consultancies, construction & facilities suppliers, GovCon bid managers, and CRM/Slack/n8n daily lead pipelines**.

***

### Why B2B Teams Schedule This Actor Daily

- **One Unified CRM-Ready Lead Schema:** Raw UK OCDS JSON nests buyer contacts, CPV sector codes, contract values, and deadlines across deep arrays. This Actor flattens both portals into clean rows with `buyerName`, `contactName`, `contactEmail`, `contactPhone`, `valueGbp`, `deadlineDate`, `daysUntilDeadline`, `cpvCodes`, `suitableForSme`, and direct `noticeUrl`.
- **True Daily Recurring Alerts (`onlyNew: true`):** Schedule every weekday morning at 8 AM UK time with `publishedWithinDays: 3` and `onlyNew: true`. Previously sent OCIDs are automatically skipped at **`$0` cost** — you only pay for brand-new tenders matching your sector!
- **Sector, Keyword & Minimum Budget Filtering:** Filter by CPV sector prefixes (`72` IT/Software, `45` Construction, `79` Consulting/Marketing, `85` Healthcare, `55` Catering), custom keywords, minimum GBP budget (`minValueGbp`), or SME suitability (`smeOnly: true`). Filtered-out notices cost **`$0`**.
- **Competitor Award Intelligence:** Switch `stages: ["award"]` to monitor who won public contracts and at what value.

***

### Sample Output Lead Record

```json
{
  "ocid": "ocds-b5fd17-e26e780c-ce5e-46c5-b547-7a9930878ee9",
  "sourcePortal": "contracts_finder",
  "stage": "tender",
  "publishedAt": "2026-12-04T09:54:20Z",
  "title": "CA18777 - Alderbrook School Tender for Catering Services",
  "buyerName": "Alderbrook School",
  "buyerRegion": "West Midlands",
  "contactName": "Dawn Blount",
  "contactEmail": "support@multiquote.com",
  "contactPhone": "0151 482 9230",
  "valueGbp": 4193097,
  "currency": "GBP",
  "deadlineDate": "2027-01-04T10:00:00Z",
  "daysUntilDeadline": 31,
  "cpvCodes": ["55524000"],
  "suitableForSme": true,
  "noticeUrl": "https://www.contractsfinder.service.gov.uk/Notice/..."
}
```

***

### Connect to AI Agents (MCP), n8n, Slack & HubSpot

```json
{
  "mcpServers": {
    "uk-gov-tenders": {
      "url": "https://mcp.apify.com/?tools=gridline-labs/uk-gov-tenders-scraper",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

***

### Transparent Pay-Per-Event (PPE) Pricing

| Event | Price | Description |
| :--- | :---: | :--- |
| **UK public tender lead** (`tender-lead`) | **$0.004** (`$4.00 / 1,000` leads) | Charged only for matching tenders delivered to your dataset |

*Filtered-out tenders and already-seen `onlyNew` monitor records cost **`$0`**. Daily monitoring of 20 matching leads/day costs just **~$1.60/month**.*

***

Built by **[Gridline Labs](https://gridlinelabshq.com)** · Explore **[GridSnap for Chrome](https://gridlinelabshq.com/gridsnap)** and **[AgentReady AI Search Auditor](https://gridlinelabshq.com/audit)**.

# Actor input Schema

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

Which official UK OCDS portals to query: 'contracts_finder' (£12k+ UK public tenders) and/or 'find_a_tender' (high-value £138k–£500M+ UK government, NHS & university contracts).

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

Filter notice stages: 'tender' (open bids — best for sales leads), 'planning' (early pipeline), 'award' (competitor intelligence).

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

Optional keywords to match in tender title, description, or CPV description (case-insensitive). Leave empty to capture all matching UK tenders.

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

Optional EU/UK CPV sector prefixes (e.g. '72' for IT/Software, '45' for Construction, '79' for Business Consulting, '85' for Healthcare, '55' for Catering).

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

Only return contracts with disclosed value >= this GBP amount (0 = include all, including undisclosed budgets).

## `publishedWithinDays` (type: `integer`):

Lookback window in days (1–90). Ideal for daily (1–2 days) or weekly (7 days) scheduled B2B lead alerts.

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

When enabled, return only tenders explicitly flagged suitable for Small & Medium Enterprises (where provided).

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

Remember previously emitted OCIDs across scheduled runs and output only brand-new tenders. Previously seen tenders cost $0.

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

Maximum number of matching tender leads to emit per run.

## Actor input object example

```json
{
  "sources": [
    "contracts_finder",
    "find_a_tender"
  ],
  "stages": [
    "tender"
  ],
  "keywords": [],
  "cpvPrefixes": [],
  "minValueGbp": 0,
  "publishedWithinDays": 14,
  "smeOnly": false,
  "onlyNew": false,
  "maxResults": 50
}
```

# Actor output Schema

## `tenders` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("gridline-labs/uk-gov-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("gridline-labs/uk-gov-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 '{}' |
apify call gridline-labs/uk-gov-tenders-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gridline-labs/uk-gov-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/MGJCM2x4zdCCbmwtH/builds/aToel1NhC2WNzecc6/openapi.json
