# UK Public Tenders: Find a Tender + Contracts Finder (`yzy001/uk-public-tenders`) Actor

Open UK public sector tenders from both official services, Find a Tender and Contracts Finder, in one feed: buyer, region, CPV categories, value in GBP with VAT basis, deadline and days left, SME suitability, lots. Filter and track only new or changed tenders.

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

## Pricing

from $2.50 / 1,000 tenders

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 + Contracts Finder

Open UK public sector tenders from both of the government's official notice services, Find a Tender and Contracts Finder, read through their OCDS APIs and put into one table: buyer, region, CPV categories, estimated value in pounds with its VAT basis, tender deadline and days left, SME and VCSE suitability, lots, and links to the notice and the bidding portal. Filter by CPV code, keyword, category, region, value or SME suitability, and schedule it with change tracking to receive only tenders you have not seen yet, or that were updated since.

Both services together publish about 400 tenders a week (most on Find a Tender, which carries most UK notices since the Procurement Act 2023).

### What you get for each tender

| Field | Meaning |
|---|---|
| `source`, `noticeId`, `ocid`, `noticeUrl`, `publishedDate` | Service, notice ID, the procurement's OCDS ID, the notice page, publication day |
| `title`, `description` | The buyer's title and description |
| `buyerName`, `buyerRegion`, `buyerWebsite` | The contracting authority and its UK region |
| `deliveryRegions` | Where the work is delivered |
| `category`, `procurementMethod`, `procurementMethodDetails` | `GOODS`, `SERVICES` or `WORKS`; open, selective and so on |
| `aboveThreshold`, `legalBasis` | Above or below the procurement threshold; the legal basis (2023/54 = Procurement Act 2023) |
| `cpvCodes`, `cpvLabels` | All CPV codes on the notice with their English labels |
| `estimatedValueGbp`, `valueVatBasis` | The buyer's estimated value, and whether it excludes or includes VAT |
| `tenderDeadline`, `enquiryDeadline`, `daysUntilDeadline`, `isOpen`, `tenderStatus` | Deadlines, days left, and whether it can still be bid for |
| `smeSuitable`, `vcseSuitable` | Marked suitable for SMEs / voluntary and community organisations |
| `contractStart`, `contractEnd` | Planned contract period |
| `lots` | Each lot: title, estimated value, SME suitability, status |
| `submissionUrl`, `documentUrls` | Bidding portal and tender documents |
| `dataFlags` | Problems in the notice itself (see below) |
| `changeStatus`, `firstSeen` | With tracking: `FIRST_RUN`, `NEW`, `CHANGED` or `SEEN` |

### Values

Find a Tender gives the estimated value excluding VAT, including VAT, or both; the value excluding VAT is used when there is one, and `valueVatBasis` says which. Contracts Finder gives one amount and does not say (`NOT_STATED`). Buyers enter 0 or 1 when they give no value; those are returned as empty. A stated value under 100 is kept but flagged `VALUE_UNDER_100` (one notice gave 1.2 for a building refurbishment).

### Open for bidding

A tender is open while its deadline is today or later and it is not cancelled or complete. Find a Tender can publish an update that carries only the changed fields (`PARTIAL_UPDATE`); with `onlyOpen` such an update is kept only when it carries a deadline still ahead. Selective procedures that publish no deadline are kept with `isOpen` empty.

### One row per procurement

A procurement can have several notices in the window (a tender notice and a later update); only the newest is returned. With `trackChanges`, a procurement returned before comes back as `CHANGED` when a newer notice appears.

### Personal data

Notices name contact people with their e-mail addresses and phone numbers; none of that is collected. Only the buyer organisation's name, region and website are kept. E-mail addresses that buyers type into a title or description are replaced with `[e-mail removed]`. Contract awards (who won) are not part of this Actor.

### Filters

`cpvCodes`, `keywords`, `categories`, `regions`, `daysBack` or `fromDate`/`toDate`, `sources`, `onlyOpen`, `minDaysToDeadline`, `minValueGbp`, `maxValueGbp`, `smeSuitableOnly`, `includePlanning`, `allowPartial`, `trackChanges`, `onlyNew`, `maxItems`.

### Things to know

- Find a Tender limits how fast its API can be read, so a run over a week takes about three minutes.
- If one service fails, the other is returned and the failed one is named in the status message and summary (turn `allowPartial` off to fail instead). A service that has published nothing for a week fails instead of returning an old picture as current.
- Both services are read at the same time, and reading stops 30 seconds before the run's timeout. Find a Tender asks for a two-minute pause (HTTP 429) when it has been read too often from the same address. When that pause would run past the timeout, the notices already read are returned and the service is named as read only in part, in the status message and in `partialSources` in the summary. Notices that were not read come back as new on the next tracked run. Raise the run timeout for long date ranges.
- CPV labels are the ones on the notice; the UK uses some newer wordings than the 2008 CPV list.

### Data

Find a Tender and Contracts Finder, the UK government's public procurement notice services, read through their public OCDS APIs. Notice data is available under the Open Government Licence v3.0. No login and no scraping of web pages.

# Actor input Schema

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

Keep tenders with any of these CPV codes or their sub-codes, for example 72 (IT services), 45 (construction), 85 (health and social work), 90 (cleaning and environmental). Empty = all.

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

Optional. Keep tenders whose title, description, buyer or lot titles contain any of these words.

## `categories` (type: `array`):

Goods, services or works. Empty = all.

## `regions` (type: `array`):

Optional. Keep tenders whose buyer is in, or whose work is delivered in, any of these regions.

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

Notices published in the last N days, today included (1-31). About 400 tenders a week across both services. Ignored when a from date is set.

## `fromDate` (type: `string`):

Optional. First publication date to include (YYYY-MM-DD). At most 31 days.

## `toDate` (type: `string`):

Optional. Last publication date to include. Defaults to today.

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

Find a Tender carries most notices since the Procurement Act 2023; Contracts Finder carries lower-value ones.

## `onlyOpen` (type: `boolean`):

Leave out tenders whose deadline has passed or that are cancelled or complete.

## `minDaysToDeadline` (type: `integer`):

Optional. Keep tenders with at least this many days left.

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

Optional. Notices without a value are left out when this is set.

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

Optional. Notices without a value are left out when this is set.

## `smeSuitableOnly` (type: `boolean`):

Keep tenders the buyer marked as suitable for small and medium-sized enterprises.

## `includePlanning` (type: `boolean`):

Also return planned procurements and market engagement notices.

## `allowPartial` (type: `boolean`):

If one service fails, return the other and name the failed one. Off = the run fails.

## `trackChanges` (type: `boolean`):

Remember which tenders were returned before and mark each row NEW, CHANGED, SEEN or FIRST_RUN.

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

With tracking on, return only tenders not returned before, or changed since.

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

Upper limit on rows, newest first.

## Actor input object example

```json
{
  "cpvCodes": [],
  "keywords": [],
  "categories": [],
  "regions": [],
  "daysBack": 3,
  "sources": [
    "FIND_A_TENDER",
    "CONTRACTS_FINDER"
  ],
  "onlyOpen": true,
  "smeSuitableOnly": false,
  "includePlanning": false,
  "allowPartial": true,
  "trackChanges": false,
  "onlyNew": false,
  "maxItems": 200
}
```

# Actor output Schema

## `items` (type: `string`):

Normalised notices from both services.

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

Per-service status, counts by region, category and CPV division, data flags, caveats.

# 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 = {
    "daysBack": 3,
    "maxItems": 200
};

// Run the Actor and wait for it to finish
const run = await client.actor("yzy001/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 = {
    "daysBack": 3,
    "maxItems": 200,
}

# Run the Actor and wait for it to finish
run = client.actor("yzy001/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 '{
  "daysBack": 3,
  "maxItems": 200
}' |
apify call yzy001/uk-public-tenders --silent --output-dataset

```

## MCP server setup

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