# UK Government Tenders — Public Sector Notices (MCP) (`amygraphics/uk-gov-tenders-scraper`) Actor

Official Find a Tender Service (UK public procurement): open tenders, awards & pipelines with buyer + contact emails free, stage-normalized, value/CPV/buyer filters. Monitor mode = daily new-tenders digest. No API key, official OCDS feed. MCP-ready.

- **URL**: https://apify.com/amygraphics/uk-gov-tenders-scraper.md
- **Developed by:** [Zakaria el bouami](https://apify.com/amygraphics) (community)
- **Categories:** Lead generation, Automation, MCP servers
- **Stats:** 2 total users, 1 monthly users, 100.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/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 — Public Sector Notices (MCP)

> Every public-sector tender notice above £12k/$: open tenders, awards, pipelines — straight from the **official Find a Tender Service** OCDS feed (the UK's above-threshold portal). Buyer + **contact emails extracted free**. **Monitor mode = daily new-tenders digest.** No API key. MCP-ready.

***

### ✨ Why this one

| Ingredient | The edge |
|---|---|
| 🔒 **Hard-to-get data** | OCDS release-package chain: next-link pagination, stage tags (tender/award/planning/contract + Updates), buyer identity resolution, contactPoint plucking from `enquiries` AND `parties`. We did the plumbing. |
| 🛠️ **Hardest problems, solved** | Same contract ≠ same notice: award lots repeat ocids per winner — our dedupe keeps every publication event, normalized stages (`tenderUpdate` → `Tender open`), deadline/value/CPV extraction. |
| ⚙️ **Automation** | `monitor` + daily schedule = **"every new UK public tender in your sector, each morning"** — the Tussell/Beaconfeed product, at ~2% of the price. |
| 🧠 **AI-agent cheap** | $0.001 start + $0.0008/notice. No key, no auth, official portal. |

***

### 🚀 3 recipes that pay

#### #1 — Daily sector digest (bid teams)

```json
{ "mode": "monitor", "daysBack": 1, "stages": ["tender"], "keywords": "cyber", "requestDelaySecs": 0.3 }
```

→ Schedule 08:00 → only *never-seen* open tenders → Slack/CRM webhook.

#### #2 — Buyer intelligence (account research)

```json
{ "mode": "search", "buyerIncludes": "NHS", "daysBack": 30, "stages": ["award"], "maxResults": 200 }
```

→ All NHS awards this month: who won, at what value, with **contact emails**.

#### #3 — Value-window scouting

```json
{ "stages": ["tender"], "minValue": 250000, "maxValue": 5000000, "daysBack": 7 }
```

**MCP**: `https://mcp.apify.com/?actors=amygraphics/uk-gov-tenders-scraper` — ask your agent *"any NHS IT tenders closing this month?"*

***

### 📦 What each row contains

`noticeId` (095872-2026) · `ocid` · `stages[]` (Planning / Tender open / Award / Contract) · `isUpdatedNotice` · `noticeUrl` (jump straight to the official page) · `tenderId` (RM6370…) · `title` + `description` · `buyerName`/`buyerId` · `valueAmount` + `minValueAmount` + currency (GBP) · `cpv` + description · `regions[]` · `tenderDeadline` · `contractStart/End` · **contactName/contactEmail/contactPhone** (free) · `documents[]` · `publishedAt` · `isNew`/`firstSeenAt` (monitor).

***

### 🆚 Competition

| Actor | tot users | Coverage | Pricing |
|---|---|---|---|
| ciel_labs/uk-government-tenders (leader) | 16 | Contracts Finder only | pay-per-event |
| parseforge/uk-gov-tenders-scraper | 4 | partial | — |
| publicdata/uk-contracts-finder-find-a-tender | 3 | basic | — |
| **us** | — | **FTS official OCDS + stage-normalized + contacts FREE + KV monitor** | **$0.0008/notice** |

***

### 🧪 Input reference

| Key | Default | What it does |
|---|---|---|
| `mode` | `search` | `monitor` = never-seen notices only (KV `uk-tenders-seen`) |
| `timeFrom`/`timeTo` | rolling `daysBack` 2 | exact window |
| `keywords` | — | title+desc+buyer+CPV substring |
| `buyerIncludes` | — | e.g. `NHS`, `Ministry of Defence` |
| `cpvIncludes` | — | e.g. `72` (IT) / `45` (construction) |
| `stages` | all | `planning`, `tender`, `award`, `contract`, `pipeline` |
| `minValue`/`maxValue` | — | £ window |
| `maxResults`/`maxPages` | 300 / 30 | caps (100 notices/page, ~50-200/day) |

**Fair use** — Find a Tender API is the UK government's official open-data endpoint; public procurement data by design. We pace requests politely (4/s) and cache daily.

***

### 💰 Pricing

- **$0.001** actor start · **$0.0008** per notice — contacts & documents **FREE**

| Rows | Cost |
|---|---|
| 200 awards (NHS month) | ~$0.16 |
| Daily sector digest (50/day × 30) | ~$1.20/month |

**Part of the AmyGraphics data empire** — 23+ public actors: EU tenders (TED), US federal awards (USAspending), UK company register, startup funding (SEC Form D), conferences, trade shows, jobs & real estate. Contact: morocco.uiux@gmail.com · apify.com/amygraphics

# Actor input Schema

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

search = window of tender notices. monitor = only notices never returned before (KV dedupe) — schedule daily for a fresh tender digest.

## `timeFrom` (type: `string`):

Start of window (YYYY-MM-DD). Empty = rolling daysBack.

## `timeTo` (type: `string`):

End of window (YYYY-MM-DD). Default today.

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

Rolling window when From is empty (1 = yesterday+today = daily digest).

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

Match against title + description + buyer + CPV text (e.g. 'cyber', 'health', 'construction').

## `buyerIncludes` (type: `string`):

Only notices from buyers matching this (e.g. 'NHS', 'Ministry of Defence').

## `cpvIncludes` (type: `string`):

Only notices whose CPV code starts with this (e.g. '72' = IT services, '45' = construction).

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

planning / tender / award / contract / pipeline — empty = all stages.

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

Drop notices worth less than this.

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

Drop notices above this (0 = no cap).

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

Stop after this many matched notices.

## `maxPages` (type: `integer`):

Hard cap on paginated API pages (100 notices per page).

## `requestDelaySecs` (type: `number`):

Politeness pacing toward the official portal.

## `proxyConfiguration` (type: `object`):

NOT needed — official API works directly.

## Actor input object example

```json
{
  "mode": "search",
  "timeFrom": "",
  "timeTo": "",
  "daysBack": 2,
  "keywords": "",
  "buyerIncludes": "",
  "cpvIncludes": "",
  "stages": [],
  "minValue": 0,
  "maxValue": 0,
  "maxResults": 300,
  "maxPages": 30,
  "requestDelaySecs": 0.25,
  "proxyConfiguration": {}
}
```

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

// Run the Actor and wait for it to finish
const run = await client.actor("amygraphics/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("amygraphics/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 amygraphics/uk-gov-tenders-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,amygraphics/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/r64WWBa8n6IgUmhY5/builds/dziYbcOn6uRYY6PdG/openapi.json
