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

Normalised UK public procurement notices from the official Find a Tender and Contracts Finder OCDS APIs. One schema, no HTML scraping.

- **URL**: https://apify.com/samueledorodion/uk-public-tenders.md
- **Developed by:** [Samuel Edorodion](https://apify.com/samueledorodion) (community)
- **Categories:** Lead generation, Business
- **Features:** Limited permissions
- **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

Normalised **UK public procurement notices** from the two official open APIs: [Find a Tender](https://www.find-tender.service.gov.uk/) and [Contracts Finder](https://www.contractsfinder.service.gov.uk/). One row per notice, one schema, ready for a bid desk, a spreadsheet, or a scheduled monitor.

This Actor calls the published OCDS JSON endpoints. It does not scrape HTML and it does not use proxies.

Contains public sector information licensed under the Open Government Licence v3.0. This Actor is an independent client. It is not endorsed by, associated with, or maintained by the Crown Commercial Service or the Cabinet Office.

### What does UK Public Tenders do?

It downloads release packages from:

- Find a Tender: `GET /api/1.0/ocdsReleasePackages` ([documentation](https://www.find-tender.service.gov.uk/apidocumentation/1.0/GET-ocdsReleasePackages))
- Contracts Finder: `GET /Published/Notices/OCDS/Search` ([documentation](https://www.contractsfinder.service.gov.uk/apidocumentation/Notices/1/GET-Published-Notice-OCDS-Search))

Each OCDS release is mapped to a single notice and deduplicated by `ocid`. You can filter by keyword, CPV prefix, stage, value, region or NUTS code, buyer, supplier, SME or VCSE suitability, and closing date. A scheduled run can persist the last-seen `ocid` and `updatedDate` and return only notices that are new or changed.

### Why use UK Public Tenders?

Bid teams, SME suppliers, and consultancies use it to stop copying portals into spreadsheets.

- **Bid teams** watch live tenders in their CPV codes and the deadlines that close this week.
- **SME and VCSE suppliers** keep the notices buyers have marked as suitable for them.
- **Consultancies and market-intelligence teams** follow awards, winning suppliers, and Companies House numbers.
- **Operations** schedule the Actor, call it from the Apify API, and download JSON, CSV, Excel, or HTML.

It stays reliable because the source of truth is the department's own API:

| | This Actor | A page scraper |
| --- | --- | --- |
| Source | Official OCDS JSON | HTML that changes without notice |
| Pagination | Documented cursor, same-origin only | Guessed "next" links |
| Rate limits | Find a Tender `429`/`503` honours `Retry-After`. Contracts Finder `403` waits 5 minutes | IP blocks and proxy bills |
| Procurement Act notices | Kept. Find a Tender's `stages` query currently drops UK4 and similar notices, so stage is applied after download | Easy to miss when the markup differs |
| Identity | One row per `ocid`, newest release wins | Duplicates on every edit |
| Contact details | Buyer name, email, and phone only when the notice publishes them | Whatever the template happens to show |

### What data can UK Public Tenders extract?

| Field | What it is |
| --- | --- |
| `ocid`, `noticeId`, `noticeUrl` | Process id, public notice id, and the official notice link |
| `portal` | `fts` (Find a Tender) or `cf` (Contracts Finder) |
| `stage`, `noticeType` | `planning`, `tender`, or `award`, plus the UK notice code when published (`UK4`, `UK6`, …) |
| `title`, `description` | As published |
| `buyerName`, `buyerId`, `buyerAddress` | Contracting authority |
| `buyerContactName`, `buyerContactEmail`, `buyerContactPhone` | Buyer contact point, only as published |
| `valueAmount`, `valueCurrency` | Net amount when both net and gross are published; otherwise the gross amount, the linked contract value, or the sum of lot values |
| `publishedDate`, `updatedDate`, `deadline` | First published date we can see, this release's date, and the tender deadline |
| `cpvCodes`, `cpvDescriptions` | CPV codes without the check digit |
| `region`, `nutsCodes` | Delivery region, with NUTS codes collected alongside it |
| `smeSuitable`, `vcseSuitable` | Published suitability, including lot flags and SME/VCSE reserved participation |
| `suppliers` | `name`, `companyNumber` (GB-COH), `sme`, `vcse`, `awardValue` |
| `documents` | `{ title, url }` for published documents |
| `relatedNoticeIds` | Related process identifiers |
| `rawOcds` | The source release, only when you turn it on |

You can download the dataset as JSON, CSV, Excel, or HTML.

### How to download UK tender notices

1. Open the Actor and choose **Try for free** or **Start**.
2. Leave the dates empty for the last 7 days, or set **Date from** and **Date to**.
3. Add keywords or CPV prefixes if you want a narrower list. `72` matches every IT-services code that starts with 72.
4. Choose **Both official APIs**, **Find a Tender only**, or **Contracts Finder only**.
5. Set **Maximum notices**. `25` stays inside the free notice allowance.
6. Start the run. Open the **Output** tab, or download the dataset from the run's API.

For a daily monitor, schedule the Actor and turn on **Only new or changed**. State is stored in the named key-value store `uk-public-tenders-seen`, shared by later runs in the same Apify account.

Programmatic runs use the same input JSON. See the **API** tab on the Actor page.

### How much does it cost to download UK tenders?

Pay per event. You pay for notices you receive, not for empty pages the Actor had to walk.

| Event | Price | When it is charged |
| --- | --- | --- |
| `notice` | **$0.004** | Each returned notice after the first 25 in that run. This is the primary event. |
| `raw-ocds` | **$0.002** | Each returned notice when **Include raw OCDS** is on, including the free 25. |
| `apify-actor-start` | $0.00005 | Charged by the platform when the run starts. Not charged from this Actor's code. |

The first **25 notices in every run are free** of the `notice` event. A default run (`maxItems` 25, raw OCDS off) therefore adds no notice charges. Notice 26 costs $0.004. One thousand notices after the free allowance cost $3.90 in `notice` events.

Examples for one run:

| What you ask for | Events | Event cost |
| --- | --- | --- |
| 25 notices | 25 free | $0.00 |
| 100 notices | 25 free + 75 × `notice` | $0.30 |
| 25 notices with raw OCDS | 25 × `raw-ocds` | $0.05 |
| 100 notices with raw OCDS | 75 × `notice` + 100 × `raw-ocds` | $0.50 |

Set a maximum charge on the run. The Actor stops cleanly when the next notice would exceed it, writes the rows already saved, and records `stoppedReason: "budget"` in the `OUTPUT` summary. It does not keep calling the APIs after the budget is exhausted.

Platform compute is separate from these events and stays small: the Actor is an HTTP client with a 512 MB default and no browser. The synthetic dataset-item event must be removed in the Console so a notice is not billed twice. The exact clicks are in [DEPLOY.md](./DEPLOY.md).

### Input

See the **Input** tab for every field. A few that are easy to misread:

- **Keywords** are OR. **Keywords and CPV codes together** are AND. A keyword matches the title, the description, or a CPV description.
- **CPV codes** are prefixes. `72`, `72000000`, and `72000000-8` all match an IT code that starts with those digits.
- **Date from / date to** default to the last 7 days. A date without a time is a UTC day (`dateTo` runs through 23:59:59). Find a Tender filters by last update (`updatedFrom` / `updatedTo`). Contracts Finder filters by publication, which includes the latest edit in the current stage (`publishedFrom` / `publishedTo`).
- **Stage** is applied after download. Sending `stages=tender` to Find a Tender currently returns legacy notices and drops Procurement Act notices such as UK4, even when their OCDS tag is `tender`. This Actor does not send that parameter.
- **SME suitable** and **VCSE suitable** default to **Any**. `yes` keeps only notices the buyer marked suitable (or reserved for that group).
- **Closing within days** keeps deadlines that are still in the future and fall inside the window. Notices with no deadline are left out.
- **Only new or changed** should stay off for a one-off search. Turn it on for a schedule.
- **Value** filters ignore notices that have no GBP amount, because the bound cannot be checked.

Example input for software tenders suitable for SMEs:

```json
{
  "keywords": ["software"],
  "cpvCodes": ["72"],
  "portals": "both",
  "stages": "tender",
  "smeSuitable": "yes",
  "maxItems": 25,
  "includeDocumentLinks": true,
  "includeRawOcds": false,
  "onlyNewOrChanged": false
}
```

### Output

Each dataset row is one notice. The run's key-value store record `OUTPUT` is the summary: fetched, returned, billed, skipped because unchanged, skipped by filters, duplicates, and rate-limit waits.

Shortened rows from the official APIs (descriptions trimmed):

```json
{
  "ocid": "ocds-h6vhtk-07bd25",
  "noticeId": "108710-2026",
  "portal": "fts",
  "stage": "tender",
  "noticeType": "UK4",
  "title": "Housing Related to Short Term Accommodation and Emergency Temporary Accommodation  Barrow in furness",
  "buyerName": "Westmorland and Furness Council",
  "buyerContactEmail": "Procurement.Mailbox.WAF@Cumbria.gov.uk",
  "valueAmount": 250264,
  "valueCurrency": "GBP",
  "deadline": "2026-12-09T12:00:00Z",
  "cpvCodes": ["85000000"],
  "cpvDescriptions": ["Health and social work services"],
  "region": "UKD",
  "nutsCodes": ["UKD", "UKD12"],
  "smeSuitable": true,
  "vcseSuitable": true,
  "suppliers": [],
  "noticeUrl": "https://www.find-tender.service.gov.uk/Notice/108710-2026",
  "updatedDate": "2026-11-16T22:51:06Z"
}
```

```json
{
  "ocid": "ocds-b5fd17-79f463ad-f885-45e4-addc-81dc887ed06b",
  "noticeId": "d7561127-59f5-4fbc-b0e5-013f9c7098c3",
  "portal": "cf",
  "stage": "award",
  "noticeType": "award",
  "title": "Electric Vehicle Leasing and Vehicle Salary Sacrifice Scheme for Great Yarmouth Borough Council",
  "buyerName": "Suffolk Coastal District Council and Waveney District Council",
  "valueAmount": 1,
  "valueCurrency": "GBP",
  "cpvCodes": ["34144900", "50111100"],
  "suppliers": [
    {
      "name": "Tuskerdirect Ltd",
      "companyNumber": "03864648",
      "sme": false,
      "vcse": false,
      "awardValue": 1
    }
  ],
  "noticeUrl": "https://www.contractsfinder.service.gov.uk/Notice/d7561127-59f5-4fbc-b0e5-013f9c7098c3"
}
```

`stoppedReason` in `OUTPUT` is one of `maxItems`, `budget`, `source-exhausted`, `page-cap`, or `portal-error`. A single portal failure still returns notices from the other portal and records the error. If both portals fail, the run fails.

### Tips

- Start with `maxItems: 25` while you tune keywords. Raise it once the filter looks right.
- Prefer CPV prefixes over long keyword lists when you know the category.
- Use **Only new or changed** on a daily schedule. Leave it off when you want a backfill of the whole window.
- Raw OCDS is for teams that reprocess the source. Leave it off if the normalised columns are enough; it is a separate event.
- The Actor reads at most 100 releases per request and at most 40 pages per portal, and it pauses between pages (0.4 s on Find a Tender, 1.5 s on Contracts Finder).

### FAQ, disclaimers, and support

#### Is this an official Cabinet Office or CCS product?

No. The notices are public sector information from the official APIs, licensed under the Open Government Licence v3.0. This Actor is not endorsed by the Crown Commercial Service or the Cabinet Office.

#### Why do some tenders have no value?

Buyers often leave the value off, or they publish only a gross figure. When both `amount` and `amountGross` exist, the row uses the net `amount`. When a value filter is set, notices with no GBP value are excluded so a minimum cannot be silently ignored.

#### Why is the contact email sometimes empty?

The contact point is copied only when the notice publishes it. Supplier email addresses are not copied into the normalised row. The raw release, if you request it, still contains whatever the API published.

#### The run stopped with a Contracts Finder 403

The Contracts Finder documentation says a 403 means the caller should wait five minutes. This Actor does that, up to two waits, and then continues with whatever Find a Tender returned. Check `OUTPUT.errors` and run again later. A 429 or 503 from Find a Tender waits for the `Retry-After` header.

#### Can I get only notices that changed since yesterday?

Yes. Schedule the run, set the window to cover the gap since the previous run, and enable **Only new or changed**. The seen store remembers `ocid` plus `updatedDate`. A notice is returned again when its update time moves forward.

#### Does the data include personal data?

Buyer contact names, emails, and phone numbers are included only when the contracting authority published them on the notice. Awards can name suppliers, including sole traders. Personal data is protected by UK GDPR. Use it only where you have a lawful basis. If you are unsure, take advice.

#### Where do I report a bad row?

Open the **Issues** tab on this Actor. Include the `ocid` and which portal it came from. Please do not send access tokens.

### Local development

```bash
npm install
npm test
npm run smoke
```

`npm test` checks normalisation against recorded responses from both APIs. `npm run smoke` calls the live APIs with a two-day window and a limit of three notices each.

To run the Actor entry point locally:

```bash
npm run build
mkdir -p storage/key_value_stores/default
cp examples/INPUT.json storage/key_value_stores/default/INPUT.json
apify run
```

Publishing steps, including the pay-per-event events, are in [DEPLOY.md](./DEPLOY.md).

# Actor input Schema

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

Case-insensitive words or phrases. A notice matches when any keyword appears in the title, description, or CPV description. Leave empty to skip keyword filtering.

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

Common Procurement Vocabulary prefixes. "72" matches 72000000 and 72400000. Check digits such as 72000000-8 are accepted.

## `portals` (type: `string`):

Find a Tender covers higher-value and Procurement Act notices. Contracts Finder covers below-threshold notices from contracting authorities in England and reserved central-government notices.

## `stages` (type: `string`):

planning (pipelines and early engagement), tender (live opportunities), or award (contract awards). Applied after download. Find a Tender's own stages parameter currently drops Procurement Act notices, so this Actor does not send it.

## `dateFrom` (type: `string`):

Start of the window. A date without a time is UTC midnight. Leave empty for 7 days ago.

## `dateTo` (type: `string`):

End of the window. A date without a time includes the whole UTC day. Leave empty for now.

## `valueMinGbp` (type: `number`):

Keep notices whose published value is at least this many pounds. Notices with no GBP value are excluded when a bound is set. Net amount is used when the API publishes both net and gross.

## `valueMaxGbp` (type: `number`):

Keep notices whose published value is at most this many pounds.

## `region` (type: `string`):

Case-insensitive text matched against the delivery region, for example "North West" or "UKD".

## `nutsCodes` (type: `array`):

NUTS prefixes. "UKD" matches UKD and UKD12. A notice matches when any code matches.

## `buyerName` (type: `string`):

Case-insensitive substring of the contracting authority name.

## `supplierName` (type: `string`):

Case-insensitive substring of an awarded supplier name.

## `supplierCompanyNumber` (type: `string`):

UK Companies House number (GB-COH). Leading zeros are ignored, so 03864648 and 3864648 match.

## `smeSuitable` (type: `string`):

Suitability is taken from the published OCDS flag, lot suitability, or a reserved-participation mark for SMEs.

## `vcseSuitable` (type: `string`):

VCSE means a voluntary, community, or social enterprise. Same published-flag rules as SME suitable.

## `closingWithinDays` (type: `integer`):

Keep tenders whose submission deadline is still open and falls within this many days. Notices without a deadline are excluded.

## `onlyNewOrChanged` (type: `boolean`):

Compare each ocid and updated date with the named key-value store uk-public-tenders-seen. Scheduled monitor runs then return only notices that are new or updated. Leave off for a one-off search so the first run is not empty.

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

Maximum rows written to the dataset, newest first across the selected portals. The default of 25 stays inside the free notice allowance.

## `includeRawOcds` (type: `boolean`):

Attach the source release as rawOcds. Each returned notice then also emits the raw-ocds event ($0.002), including notices inside the free allowance.

## `includeDocumentLinks` (type: `boolean`):

Keep the document title and URL pairs published on the notice. Turn off to return an empty documents array.

## Actor input object example

```json
{
  "portals": "both",
  "stages": "all",
  "smeSuitable": "any",
  "vcseSuitable": "any",
  "onlyNewOrChanged": false,
  "maxItems": 25,
  "includeRawOcds": false,
  "includeDocumentLinks": true
}
```

# Actor output Schema

## `notices` (type: `string`):

Dataset of normalised notices, one row per OCID.

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

Fetched, returned, billed, skipped, and rate-limit counts.

# 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("samueledorodion/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 = {}

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

```

## MCP server setup

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