# UK Contracts Finder Scraper (`nanodata/uk-contracts-finder-scraper`) Actor

Get UK public sector tenders, planning notices and contract awards from Contracts Finder, with buyer, CPV codes, values, deadlines and suppliers. Pay per notice.

- **URL**: https://apify.com/nanodata/uk-contracts-finder-scraper.md
- **Developed by:** [nanodata](https://apify.com/nanodata) (community)
- **Categories:** Lead generation, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 contracts finder notice scrapeds

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

Get UK public sector contract notices from Contracts Finder as clean rows: planned tenders, open tenders and awarded contracts, with the buyer, CPV codes, values, deadlines, delivery regions and awarded suppliers. Use it to find bids, watch a buyer or an industry, track who wins contracts, or build a list of public sector buyers and suppliers.

Data is from the UK government's Contracts Finder (https://www.contractsfinder.service.gov.uk), published under the Open Government Licence v3.0. Contains public sector information licensed under the Open Government Licence v3.0.

### What you get

For every notice the run returns one row with:

- Ids and link: contracting process id (`ocid`), release id, notice id and the link to the notice page
- Stage and tags (planning, tender, award), publication date, status
- Title, description and the buyer's reference
- Buyer name, identifier, address, website and the contact point as published (name, email, telephone)
- Value, currency and the minimum and maximum value when the buyer gives a range
- Procurement method, procedure details and main category (goods, services, works)
- CPV code and description, plus any additional CPV codes
- Delivery locations and regions
- Tender period, contract period and the future notice date for planned tenders
- Flags for contracts suitable for small businesses and for voluntary, community and social enterprises
- Awards: status, dates, value, contract period and the suppliers with name, company number, address and size
- Document links, budget lines and milestones of planning notices

Each contracting process appears once, with its latest notice. Public sector contact details are kept as published.

### Pricing

Pay per result. You are charged for these events only:

| Event name | When it is charged | Price |
|---|---|---|
| `actor-start` | Once per run, together with the first delivered rows | $0.001 |
| `notice-result` | For each notice row delivered to the dataset | $0.003 ($3.00 per 1,000) |

A run with no matches delivers no rows and is not charged. If you set a maximum cost per run, the run stops cleanly when the limit is reached and reports how many rows it delivered.

### Input

| Field | Meaning |
|---|---|
| `stage` | `planning`, `tender`, `award` or `all` (default). |
| `publishedFrom`, `publishedTo` | Publication date range, format YYYY-MM-DD. A plain end date includes the whole day. Without `publishedFrom` the last 7 days are used. |
| `keywords` | Keep only notices that contain one of these words in the title, description, buyer name or supplier name. The words are checked after loading, so use a narrow date range. |
| `maxResults` | Total number of notices for the run (default 100, up to 5,000). A number written as text such as "50" works too. |
| `maxPages` | Upper limit of result pages to read (default 50, up to 200). Each page holds up to 100 notices. |

An empty input runs a small demo with the 5 newest notices of the last 7 days.

#### Example: open tenders from the last week

```json
{
  "stage": "tender",
  "publishedFrom": "2026-10-30",
  "maxResults": 150
}
```

#### Example: awarded contracts on one day

```json
{
  "stage": "award",
  "publishedFrom": "2026-11-04",
  "publishedTo": "2026-11-04",
  "maxResults": 100
}
```

#### Example: notices that mention cyber security

```json
{
  "keywords": ["cyber security", "cybersecurity"],
  "publishedFrom": "2026-11-01",
  "publishedTo": "2026-11-05",
  "maxResults": 50
}
```

### Output sample

```json
{
  "ocid": "ocds-b5fd17-03e0c50a-5982-4e08-ba4b-5931fbfd3919",
  "id": "37bbb4ce-b2a6-44bd-9e78-6aa53a5df0eb-920753",
  "noticeId": "37bbb4ce-b2a6-44bd-9e78-6aa53a5df0eb",
  "url": "https://www.contractsfinder.service.gov.uk/Notice/37bbb4ce-b2a6-44bd-9e78-6aa53a5df0eb",
  "date": "2026-11-05T17:47:20Z",
  "tag": "award",
  "tags": [
    "award"
  ],
  "stage": "award",
  "title": "Digital & Productivity Software and Services 2026",
  "description": "This contract is for the renewal of these low value COTS software and procurement of any other future digital and productivity tools to support service improvements and efficiency.",
  "status": "complete",
  "tenderReference": "LBKING001-DN805609-97717413",
  "initiationType": "tender",
  "buyerId": "GB-CFS-120787",
  "buyerName": "The Royal Borough of Kingston upon Thames",
  "buyerIdentifierScheme": null,
  "buyerIdentifier": null,
  "buyerAddress": {
    "streetAddress": "Guildhall 2",
    "locality": "Kingston upon Thames",
    "region": null,
    "postalCode": "KT1 1EU",
    "country": "United Kingdom"
  },
  "buyerContact": {
    "name": "Fawzia Seidu",
    "email": "fawzia.seidu@kingston.gov.uk",
    "telephone": "+44 2085475000",
    "fax": null,
    "url": null
  },
  "buyerWebsite": "http://www.kingston.gov.uk",
  "valueAmount": 165000,
  "valueCurrency": "GBP",
  "minValueAmount": null,
  "maxValueAmount": null,
  "procurementMethod": null,
  "procurementMethodDetails": "Other -",
  "mainProcurementCategory": "goods",
  "cpvCode": "72260000",
  "cpvDescription": "Software-related services",
  "additionalClassifications": [],
  "cpvCodes": [
    "72260000"
  ],
  "deliveryLocations": [
    {
      "streetAddress": null,
      "locality": null,
      "region": "North East",
      "postalCode": null,
      "country": "United Kingdom"
    },
    {
      "streetAddress": null,
      "locality": null,
      "region": "North West",
      "postalCode": null,
      "country": "United Kingdom"
    }
  ],
  "regions": [
    "North East",
    "North West"
  ],
  "tenderPeriodStart": null,
  "tenderPeriodEnd": "2026-02-26T23:59:00Z",
  "contractPeriodStart": "2026-03-01T00:00:00Z",
  "contractPeriodEnd": "2029-02-28T23:59:59Z",
  "tenderDatePublished": null,
  "futureNoticeDate": null,
  "suitableForSme": false,
  "suitableForVcse": false,
  "awardCount": 1,
  "awards": [
    {
      "id": "ocds-b5fd17-03e0c50a-5982-4e08-ba4b-5931fbfd3919-2",
      "status": "active",
      "title": null,
      "description": "Direct award under a framework.",
      "date": "2026-02-28T00:00:00Z",
      "datePublished": "2026-11-05T17:47:20Z",
      "valueAmount": 165000,
      "valueCurrency": "GBP",
      "contractPeriodStart": "2026-03-01T00:00:00Z",
      "contractPeriodEnd": "2029-02-28T23:59:59Z",
      "suppliers": [
        {
          "id": "GB-CFS-29488",
          "name": "Bytes Software Services",
          "scheme": null,
          "companyId": null,
          "address": {
            "streetAddress": "KT22 7TW",
            "locality": null,
            "region": null,
            "postalCode": null,
            "country": null
          },
          "scale": "sme",
          "vcse": false,
          "website": null
        }
      ],
      "documents": [
        {
          "section": "award",
          "id": "2",
          "documentType": "awardNotice",
          "description": "Awarded contract notice on Contracts Finder",
          "url": "https://www.contractsfinder.service.gov.uk/Notice/37bbb4ce-b2a6-44bd-9e78-6aa53a5df0eb",
          "datePublished": "2026-11-05T17:47:20Z",
          "dateModified": null,
          "format": "text/html",
          "language": "en"
        }
      ]
    }
  ],
  "supplierNames": [
    "Bytes Software Services"
  ],
  "documents": [
    {
      "section": "award",
      "id": "2",
      "documentType": "awardNotice",
      "description": "Awarded contract notice on Contracts Finder",
      "url": "https://www.contractsfinder.service.gov.uk/Notice/37bbb4ce-b2a6-44bd-9e78-6aa53a5df0eb",
      "datePublished": "2026-11-05T17:47:20Z",
      "dateModified": null,
      "format": "text/html",
      "language": "en"
    }
  ],
  "budget": [],
  "milestones": [],
  "language": "en",
  "searchStage": "award",
  "scrapedAt": "2026-11-06T10:14:40Z"
}
```

The sample is shortened: delivery locations and regions are cut to two entries. Fields that a notice does not have are returned as `null` or as an empty list. Amounts are numbers.

### Limits

- Notices come newest first. A range with many notices needs many pages, and the run stops at `maxPages`.
- The keyword filter looks at the notices that were loaded. If no page contains a match the run ends with an empty result and says so.
- A published change replaces the older notice of the same process, so a row shows the state at its latest publication date.

### FAQ

**Is this data public?**
Yes. Contracts Finder is the UK government's service for public sector contract notices. The contact points are the ones the buyers publish on their notices.

**Do I need an account or an API key?**
No.

**Which licence applies to the data?**
The Open Government Licence v3.0. Keep the attribution line above when you republish the data.

**Why does a row have no value or no deadline?**
Buyers do not fill every field. Planned tenders and some awards have no value or tender period.

**How fresh is the data?**
Each run reads the live service, so rows match what Contracts Finder shows at that moment.

**What happens if the run is restarted by the platform?**
The run keeps its progress and continues without repeating rows or charging them twice.

**What if the service changes its format?**
The run checks the shape of every answer. If it no longer matches, the run stops with a clear message instead of returning an empty result.

# Actor input Schema

## `stage` (type: `string`):

Which notices to list. planning: early engagement and planned tenders. tender: open opportunities. award: awarded contracts. Use all for every stage.

## `publishedFrom` (type: `string`):

First publication date, format YYYY-MM-DD (or YYYY-MM-DDTHH:MM:SSZ). Empty means the last 7 days.

## `publishedTo` (type: `string`):

Last publication date, format YYYY-MM-DD. A plain date includes the whole day. Empty means now.

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

Keep only notices whose title, description, buyer name or supplier name contains one of these words. The words are checked after loading, so a narrow date range works best. Leave empty for no word filter.

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

Maximum notices for the run. Default 100, maximum 5,000. An empty input runs a tiny demo of 5 notices.

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

Upper limit of result pages the run reads (each page holds up to 100 notices). Matters mainly with keywords, which can need many pages. Default 50, maximum 200.

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

Keep the default.

## Actor input object example

```json
{
  "stage": "all",
  "maxResults": 100,
  "maxPages": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `defaultDataset` (type: `string`):

UK public sector contract notices from Contracts Finder

# 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 = {
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("nanodata/uk-contracts-finder-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 = { "proxyConfiguration": { "useApifyProxy": True } }

# Run the Actor and wait for it to finish
run = client.actor("nanodata/uk-contracts-finder-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 '{
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call nanodata/uk-contracts-finder-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nanodata/uk-contracts-finder-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/WtNDfavNTWPgIZsV8/builds/gY1EF7pcmte2z38C7/openapi.json
