# UK Public Tenders (Find a Tender and Contracts Finder) (`banyan/uk-public-tenders`) Actor

UK public sector tender notices from Find a Tender and Contracts Finder in one schema, with keyword, CPV and value filters and new/updated tracking between runs.

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

## Pricing

$4.00 / 1,000 tender 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 Public Tenders (Find a Tender and Contracts Finder)

Get UK public sector tender notices from both government portals in one clean schema:
[Find a Tender](https://www.find-tender.service.gov.uk) (above-threshold notices, and since the Procurement Act 2023
also most below-threshold notices) and [Contracts Finder](https://www.contractsfinder.service.gov.uk) (England, mostly
procurements started under the old regulations). Filter by keyword, CPV code and value, and run it on a schedule to
get only the notices that are new or have been amended, updated or cancelled since your last run.

The data comes from the portals' official open-data APIs (OCDS release packages), published by the Cabinet Office
under the [Open Government Licence v3.0](http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/).
No login, no proxy, no browser.

### Who it is for

- Suppliers and bid teams who want a daily feed of UK public contract opportunities in their sector.
- Bid-writing consultancies and tender alert services that need both portals in one format.
- Market and policy researchers tracking public procurement activity by buyer, region, CPV code or value.
- AI agents and automations that need typed, documented tender data.

### Input

| Field | Default | Meaning |
|---|---|---|
| `sources` | both | `find-a-tender`, `contracts-finder`, or both. |
| `publishedSinceDays` | 7 | Read notices published or updated in the last N days (1 to 90). |
| `keywords` | all | Keep notices whose title or description contains any of these words or phrases (case-insensitive). |
| `cpvPrefixes` | all | Keep notices with a CPV code starting with any of these, for example `72` (IT services) or `4521` (building works). |
| `minValueGbp` | any | Keep only notices with an estimated value in GBP at or above this. Notices without a stated value are left out. |
| `onlyNewOrUpdated` | false | Return only notices that are new, or have a newer release, since this Actor's previous run in your account. |
| `maxNotices` | 100 | Stop after this many notices, newest first. |

Example:

```json
{
  "sources": ["find-a-tender", "contracts-finder"],
  "publishedSinceDays": 7,
  "keywords": ["software", "cyber security"],
  "cpvPrefixes": ["72", "48"],
  "minValueGbp": 50000,
  "onlyNewOrUpdated": true,
  "maxNotices": 200
}
```

### Output

One dataset item per tender notice (example from a real run on 2026-11-14):

```json
{
  "notice_id": "ocds-h6vhtk-07bc30",
  "release_id": "108240-2026",
  "source": "find-a-tender",
  "notice_url": "https://www.find-tender.service.gov.uk/Notice/108240-2026",
  "title": "T190 – Mechanical Installation, Repair and Maintenance (MIRM)",
  "description": "NI Water wishes to appoint a contractor to provide M and E Services with Mechanical Installation, Repair and Maintenance ...",
  "stage": "tender",
  "status": "active",
  "buyer_name": "NI Water and its subsidiaries",
  "buyer_id": "GB-PPON-PCZH-7295-JJTZ",
  "buyer_region": "UKN06",
  "buyer_country": "United Kingdom",
  "main_category": "services",
  "procurement_method": "Competitive flexible procedure",
  "cpv_codes": ["71333000", "51120000", "50500000", "50000000"],
  "value_amount": 57000000.0,
  "value_currency": "GBP",
  "tender_deadline": "2026-12-11T12:00:00Z",
  "published_at": "2026-11-13T18:39:27Z",
  "lots_count": 2,
  "change_type": "new",
  "first_seen_at": "2026-11-14T23:41:24Z",
  "scraped_at": "2026-11-14T23:41:08.064288Z"
}
```

- `notice_id` is the OCDS `ocid` and stays the same for every release of a procurement. Each notice appears once per
  run, with its latest tender-stage release (`release_id`, `stage`, `published_at`).
- `stage` is the release tag: `tender`, `tenderUpdate` (Find a Tender change notice), `tenderAmendment` (Contracts
  Finder) or `tenderCancellation`.
- `status` is the OCDS tender status (`active`, `complete`, `cancelled`, ...) or `null` when the release does not state it.
- `buyer_region` is the NUTS/ITL code of the buyer's address where the notice gives one (Find a Tender only).
  `buyer_country` is passed through as published, so Contracts Finder may say `England` or `UK`.
- `cpv_codes`: the main CPV code first, then additional and item-level codes.
- `value_amount` is the estimated value excluding VAT; when a notice gives only the VAT-inclusive amount, that amount.
- `tender_deadline` is the deadline to submit a tender or, for procedures that start with a request to participate,
  the deadline for that request.
- `change_type` is `new` the first time your account sees a notice, `updated` when a newer release has been
  published since it last saw it, and `unchanged` otherwise. `first_seen_at` is when your account first saw it.
- Times are UTC, ISO 8601.

Change notices, amendments and cancellations often carry only the changed fields. When the original notice is in the
same time window, the missing fields are filled from it; otherwise they are `null`.

The run also writes a `SUMMARY` record to the default key-value store: per source, the pages read, releases read,
notices matching your filters, notices delivered and any error.

### Scheduling and change tracking

The Actor remembers the notices it has delivered in a named key-value store in your Apify account
(`uk-public-tenders-seen`). For a daily alert feed, schedule it once a day with `publishedSinceDays` of 2 or 3 and
`onlyNewOrUpdated` on: each run returns the notices that are new or have a newer release since the previous run.
With `onlyNewOrUpdated` on, the Actor reads the whole time window to find them. All schedules in one account share
this history, so use one schedule per account for change tracking, or leave `onlyNewOrUpdated` off for ad-hoc
searches. History for notices not seen for 120 days is dropped.

### Pricing

Pay per result: **$4.00 per 1,000 notices** (event `notice`, $0.004 each). Free-plan runs are capped at 100 notices
per run. A run also stops adding results when your maximum charge per run is reached.

### Speed and limits

- Both portals rate-limit their APIs (HTTP 429 with a two-minute wait, at about 15 requests in 2 minutes). The Actor
  sends one request every 10 seconds across both portals, and waits and retries when asked to slow down.
- Find a Tender's API has no working stage filter for Procurement Act notices, so the Actor reads all release types
  and keeps the tender-stage ones (about a quarter). Seven days of Find a Tender is about 2,300 releases (23 pages,
  about 4 minutes). A first page of results arrives in seconds, and runs stop as soon as `maxNotices` matching
  notices are found, so the default input finishes in under a minute.
- With `onlyNewOrUpdated` on, or with narrow filters, the whole window is read: allow about 4 minutes per 7 days.
  A run reads at most 200 pages per portal.
- Keyword, CPV and value filters run on the Actor side over the fetched notices.
- Only tender-stage notices are returned: planning (pipeline), award and contract notices are not included.
- Contracts Finder now carries far fewer new tenders than Find a Tender (about 50 tender notices in the week to
  2026-11-14), because new procurements under the Procurement Act 2023 are published on Find a Tender.

### Data and privacy

The Actor returns organisation-level data only. Named contact points (names, emails, phone numbers) in the source
data are dropped, and emails and phone numbers are removed from description text.

Contains public sector information licensed under the Open Government Licence v3.0.

# Actor input Schema

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

Find a Tender (above-threshold and Procurement Act notices) and Contracts Finder (England, mostly below threshold).

## `publishedSinceDays` (type: `integer`):

Read tender notices published or updated in the last N days.

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

Keep notices whose title or description contains any of these words or phrases (case-insensitive). Empty keeps all.

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

Keep notices with a CPV code starting with any of these, for example 72 (IT services) or 4521 (building works). Empty keeps all.

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

Keep only notices with an estimated value in GBP at or above this amount. Notices without a stated value are left out. Leave empty for any value.

## `onlyNewOrUpdated` (type: `boolean`):

Return only notices that are new or have a newer release (amendment, update, cancellation) since this Actor's previous run in your account. The whole time window is read to find them.

## `maxNotices` (type: `integer`):

Stop after this many notices (newest first).

## Actor input object example

```json
{
  "sources": [
    "find-a-tender",
    "contracts-finder"
  ],
  "publishedSinceDays": 7,
  "keywords": [],
  "cpvPrefixes": [],
  "onlyNewOrUpdated": false,
  "maxNotices": 50
}
```

# 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 = {
    "sources": [
        "find-a-tender",
        "contracts-finder"
    ],
    "publishedSinceDays": 7,
    "maxNotices": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("banyan/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 = {
    "sources": [
        "find-a-tender",
        "contracts-finder",
    ],
    "publishedSinceDays": 7,
    "maxNotices": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("banyan/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 '{
  "sources": [
    "find-a-tender",
    "contracts-finder"
  ],
  "publishedSinceDays": 7,
  "maxNotices": 50
}' |
apify call banyan/uk-public-tenders --silent --output-dataset

```

## MCP server setup

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