# UK Public Sector Tender and Contract Notices Scraper (`nimbryxo-studio/uk-public-sector-tender-and-contract-notices`) Actor

Get the latest UK government procurement notices, search by keyword, or browse by status, with buyer, value, dates, CPV codes and awarded supplier for each contract.

- **URL**: https://apify.com/nimbryxo-studio/uk-public-sector-tender-and-contract-notices.md
- **Developed by:** [Nimbryxo-studio](https://apify.com/nimbryxo-studio) (community)
- **Categories:** Automation, 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 $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Sector Tender and Contract Notices Scraper

Contracts Finder is the UK government's public procurement notice service. This actor reads its official, keyless APIs and returns one clean record per notice: buyer and contact details, status and stage, values, CPV codes and descriptions, delivery regions, key dates, awarded suppliers, documents and the source link.

### What this actor does

- **Recent notices** — newest OCDS releases, following the API cursor, with optional stage, status, date and client-side filters.
- **Keyword search** — real server-side text search over notice title, description, buyer, supplier and CPV text, with exact-phrase and required-word support.
- **Browse by status** — the legacy `byStatus` mode, still accepted and mapped to the search API.
- **Fetch by ID or URL** — paste Contracts Finder notice links or GUIDs and get the full notice detail in one batch.
- **Filters** — stage, status, CPV sector or code prefix, region, value range, six date ranges, buyer name, SME/VCSE suitability, awarded-to SME/VCSE, subcontract and still-open.
- **Full detail** — buyer contact block, awards (value, supplier name/address/DUNS, dates, procedure), CPV descriptions, framework and extension flags, documents and withdrawal data.
- **No credentials** — public data only, no login, API key or proxy configuration. No personal contact data is required to run the actor.
- Output is **omit-empty** at every depth: fields the notice does not carry are left out rather than stored as null or blank.

Data is published by Contracts Finder under the Open Government Licence v3.0. This actor is an independent reader of that public data, not a UK government service.

### Modes

| Mode | What it returns | Best for |
|---|---|---|
| `recent` | Newest notices for the selected stage/status, following OCDS cursor pages | A daily new-notice feed |
| `search` | Notices matching `searchQuery` and every other filter | Finding opportunities by keyword |
| `byStatus` | Legacy alias for `search` with the old `status` values | Existing saved tasks |
| `byNoticeId` | Full detail for the GUIDs or URLs in `noticeIds` | Enriching a known notice list |

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `recent` | `recent`, `search`, `byStatus` or `byNoticeId` |
| `searchQuery` | string | `IT services` | Keyword search for `search` / `byStatus` |
| `status` | string | `active` | `any`, `Open`, `Closed`, `Withdrawn`, `Awarded`, or legacy `active`, `closed`, `cancelled`, `complete` |
| `stage` | string | `any` | `any`, `tender`, `award`, `planning`, `earlyEngagement` |
| `noticeIds` | array | `[]` | Notice GUIDs or URLs for `byNoticeId` |
| `cpvSector` | string | `any` | One of the 45 CPV root sectors |
| `cpvCodes` | array | `[]` | CPV codes or numeric prefixes, e.g. `72000000`, `72`; a prefix is padded to its 8-digit parent and matches sub-codes |
| `regions` | array | `[]` | Delivery regions; empty means every region |
| `valueFrom` | number | — | Minimum stated value in GBP |
| `valueTo` | number | — | Maximum stated value in GBP |
| `publishedFrom` | date | — | First publication on or after this date |
| `publishedTo` | date | — | First publication on or before this date |
| `deadlineFrom` | date | — | Tender closing date on or after this date |
| `deadlineTo` | date | — | Tender closing date on or before this date |
| `awardedFrom` | date | — | Award date on or after this date |
| `awardedTo` | date | — | Award date on or before this date |
| `approachMarketFrom` | date | — | Approach-to-market date on or after this date |
| `approachMarketTo` | date | — | Approach-to-market date on or before this date |
| `buyerContains` | string | — | Buyer name contains this text |
| `suitableForSme` | boolean | `false` | Only notices suitable for SMEs |
| `suitableForVcse` | boolean | `false` | Only notices suitable for VCSEs |
| `awardedToSme` | boolean | `false` | Only awards to an SME |
| `awardedToVcse` | boolean | `false` | Only awards to a VCSE |
| `subcontractOnly` | boolean | `false` | Only subcontract / supply-chain notices |
| `onlyOpen` | boolean | `false` | Only Open notices with a future deadline |
| `sortOrder` | string | `publishedAt:DESC` | `relevance`, publication, value, deadline, award or contract-end order |
| `maxItems` | integer | `50` | Hard cap on emitted records (1-2000) |
| `includeDetails` | boolean | `true` | Fetch full notice details in batches |
| `dedupeByOcid` | boolean | `false` | Keep the latest release per procurement where an `ocid` exists |

The daily test prefill is the smallest run with output: `recent`, keyword `IT services`, status `active`, `maxItems` 3 and `includeDetails` off.

### Examples

Newest notices, full detail:

```json
{
  "mode": "recent",
  "maxItems": 50,
  "includeDetails": true
}
```

Open IT tenders in London:

```json
{
  "mode": "search",
  "searchQuery": "software",
  "stage": "tender",
  "status": "Open",
  "cpvSector": "72000000",
  "regions": ["London"],
  "onlyOpen": true,
  "maxItems": 100
}
```

Awards in the last quarter, highest value first:

```json
{
  "mode": "search",
  "stage": "award",
  "status": "Awarded",
  "publishedFrom": "2026-08-01",
  "publishedTo": "2026-10-31",
  "sortOrder": "value.amount:DESC",
  "includeDetails": true,
  "maxItems": 200
}
```

Specific notices by URL:

```json
{
  "mode": "byNoticeId",
  "noticeIds": [
    "https://www.contractsfinder.service.gov.uk/notice/43e6be48-00b9-4c6c-b7ae-ffad2f0b099b"
  ],
  "includeDetails": true
}
```

Legacy input still works:

```json
{
  "mode": "byStatus",
  "status": "complete",
  "maxItems": 20
}
```

### Output fields

- **Identity** — `noticeId`, `noticeIdentifier`, `ocidId`, `releaseId`, `releaseTags`, `stage`, `noticeType`, `noticeStatus`, `status`
- **Notice** — `title`, `description`, `additionalText`, `sector`, `procurementMethod`, `procurementMethodDetails`, `procurementCategory`, `frameworkAgreement`, `extensionPossible`
- **Buyer** — `buyer`, `buyerId`, `buyerContactName`, `buyerEmail`, `buyerPhone`, `buyerAddress`, `buyerTown`, `buyerPostcode`, `buyerCountry`, `buyerWebsite`
- **Money** — `valueAmount`, `valueLow`, `valueHigh`, `valueCurrency`, `awardedValue`, `awardedCurrency`
- **Classification** — `cpvCodes`, `cpvDescriptions`, `cpvCategories`
- **Delivery** — `deliveryRegions`, `deliveryPostcode`, `locationLat`, `locationLon`, `nationwide`, `subcontract`, `supplyChain`
- **Dates** — `publishedDate`, `publishedAt`, `tenderEndDate`, `deadlineDate`, `approachMarketDate`, `awardedDate`, `contractStartDate`, `contractEndDate`, `lastUpdatedDate`, `withdrawnDate`
- **Awards** — `supplierName`, `supplierNames`, `supplierAddress`, `supplierDuns`, `supplierId`, `supplierCountry`, `awardStatus`, `awards[]`
- **Documents** — `documents[]` with title, URL, type, format and filename
- **Suitability** — `suitableForSme`, `suitableForVcse`, `awardedToSme`, `awardedToVcse`
- **Provenance** — `sourceUrl`, `license`, `recordType`, `scrapedAt`

### Limitations

- **Search API cap.** The keyword Search API returns at most 1,000 matches per request even when it reports more hits. Narrow the filters, split the date range, or use `recent` (OCDS cursor pages) when you need a long continuous window.
- **Buyer filter cap.** `buyerContains` is applied to the first 1,000 search candidates because the API has no buyer field. Add a keyword or narrow the dates/CPV when the buyer is rare.
- **OCID coverage.** The Search API and the full-notice endpoint do not expose the OCDS `ocid`. `ocidId`, `releaseId` and `releaseTags` are filled by `recent`; Search and by-ID records carry `noticeId` and omit `ocidId`.
- **Detail enrichment.** `includeDetails` adds one batch request per 50 notices. Turning it off is faster but omits buyer contacts, award detail and documents.
- **Notices without values.** Notices that publish no value are dropped when a value filter is set. The actor never guesses a value.
- **Sorting window.** The APIs have no sort parameter. Value, deadline, award and contract-end sorts are applied to the fetched candidate window (up to 1,000 search results or the recent scan cap), not to the entire history.
- **Service limits.** Contracts Finder applies rate limits. The actor paces its requests and waits when asked; a long run can therefore be slow.
- **Implementation stage.** The OCDS feed includes implementation releases in `recent` with `status: any`; the keyword Search API has no reliable implementation-only filter, so `implementation` is not a stage option.
- **Scope.** This actor covers Contracts Finder. Find a Tender is a separate service and is not read here.

### FAQ

**Is this official data?**
Yes. Notices come from Contracts Finder, the Cabinet Office's public procurement service, under the Open Government Licence v3.0.

**Why is `ocidId` missing on some rows?**
The keyword search and full-notice APIs do not publish it. `recent` rows include it because the OCDS feed does.

**Why do `closed` and `cancelled` still work?**
Legacy enum values are mapped in code to `Closed` and `Withdrawn`, which the Search API supports.

**Why is `supplierName` missing?**
Supplier details appear only once a contract has an award notice. Open tenders have no winner yet.

**Can I get more than 1,000 search results?**
Split the query by date, region or CPV sector, or use `recent` with a date window and client-side filters.

**Does the actor need cookies or a proxy?**
No. All data comes from public JSON APIs with no login, key or proxy.

# Actor input Schema

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

What to scrape. recent follows the OCDS feed; search uses the Contracts Finder Search API; byStatus is the legacy alias for search + status; byNoticeId fetches specific notices.

## `searchQuery` (type: `string`):

Words or phrases to find in the notice title, description, buyer, supplier or CPV text (mode=search or byStatus). Supports "exact phrase", +required words and OR by default, like Contracts Finder.

## `status` (type: `string`):

Filter by notice status. Legacy values active/closed/cancelled/complete are still accepted and mapped to Open/Closed/Withdrawn/Awarded.

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

Filter by the stage of the notice. Open tenders are Contract notices with status Open; awards are Contract notices with status Awarded; pipeline and early engagement are separate notice types. Recent's all-stage feed also includes implementation releases; the Search API has no reliable implementation-only filter.

## `noticeIds` (type: `array`):

For mode=byNoticeId: Contracts Finder notice GUIDs or notice URLs, one per line. Release IDs are accepted too.

## `cpvSector` (type: `string`):

Filter by one of the 45 CPV root sectors. A sector also matches all of its sub-codes. Leave on Any for all sectors.

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

Exact CPV codes or numeric prefixes, e.g. 72000000, 72, 45215. A prefix matches every code below it.

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

Only notices delivered in these regions. Leave empty for every region. Any-region notices are always included.

## `valueFrom` (type: `number`):

Only notices whose stated value range reaches at least this amount. Notices with no stated value are dropped when a value or date filter is set.

## `valueTo` (type: `number`):

Only notices whose stated value range starts at or below this amount.

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

Only notices first published on or after this date.

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

Only notices first published on or before this date.

## `deadlineFrom` (type: `string`):

Only notices whose tender deadline is on or after this date.

## `deadlineTo` (type: `string`):

Only notices whose tender deadline is on or before this date.

## `awardedFrom` (type: `string`):

Only award notices awarded on or after this date.

## `awardedTo` (type: `string`):

Only award notices awarded on or before this date.

## `approachMarketFrom` (type: `string`):

Only planning notices with an approach-to-market date on or after this date.

## `approachMarketTo` (type: `string`):

Only planning notices with an approach-to-market date on or before this date.

## `buyerContains` (type: `string`):

Keep notices whose buying organisation name contains this text (case-insensitive). Applied after the server search and re-checked on every record.

## `suitableForSme` (type: `boolean`):

Only notices marked suitable for small and medium enterprises.

## `suitableForVcse` (type: `boolean`):

Only notices marked suitable for voluntary, community and social enterprises.

## `awardedToSme` (type: `boolean`):

Only award notices where the winning supplier is marked as an SME.

## `awardedToVcse` (type: `boolean`):

Only award notices where the winning supplier is marked as a VCSE.

## `subcontractOnly` (type: `boolean`):

Only notices marked as subcontract or supply-chain opportunities.

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

Keep only Open notices whose closing date is in the future.

## `sortOrder` (type: `string`):

Order of the delivered records. Legacy sort values are still accepted.

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

Hard cap on emitted records. The Search API returns at most 1,000 matches per request; recent follows cursor pages.

## `includeDetails` (type: `boolean`):

Fetch the full notice batch (buyer contact, awards, documents, withdrawal data). One batch request per 50 notices.

## `dedupeByOcid` (type: `boolean`):

When enabled, keep only the latest release for each OCDS procurement (ocid). Search rows without an ocid fall back to the notice ID.

## Actor input object example

```json
{
  "mode": "recent",
  "searchQuery": "IT services",
  "status": "active",
  "stage": "any",
  "noticeIds": [],
  "cpvSector": "any",
  "cpvCodes": [],
  "regions": [],
  "suitableForSme": false,
  "suitableForVcse": false,
  "awardedToSme": false,
  "awardedToVcse": false,
  "subcontractOnly": false,
  "onlyOpen": false,
  "sortOrder": "publishedAt:DESC",
  "maxItems": 3,
  "includeDetails": false,
  "dedupeByOcid": false
}
```

# Actor output Schema

## `contracts` (type: `string`):

Dataset containing all scraped notice records. Empty fields are omitted at every depth.

# 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 = {
    "mode": "recent",
    "searchQuery": "IT services",
    "status": "active",
    "stage": "any",
    "noticeIds": [],
    "cpvSector": "any",
    "cpvCodes": [],
    "regions": [],
    "suitableForSme": false,
    "suitableForVcse": false,
    "awardedToSme": false,
    "awardedToVcse": false,
    "subcontractOnly": false,
    "onlyOpen": false,
    "sortOrder": "publishedAt:DESC",
    "maxItems": 3,
    "includeDetails": false,
    "dedupeByOcid": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("nimbryxo-studio/uk-public-sector-tender-and-contract-notices").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 = {
    "mode": "recent",
    "searchQuery": "IT services",
    "status": "active",
    "stage": "any",
    "noticeIds": [],
    "cpvSector": "any",
    "cpvCodes": [],
    "regions": [],
    "suitableForSme": False,
    "suitableForVcse": False,
    "awardedToSme": False,
    "awardedToVcse": False,
    "subcontractOnly": False,
    "onlyOpen": False,
    "sortOrder": "publishedAt:DESC",
    "maxItems": 3,
    "includeDetails": False,
    "dedupeByOcid": False,
}

# Run the Actor and wait for it to finish
run = client.actor("nimbryxo-studio/uk-public-sector-tender-and-contract-notices").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 '{
  "mode": "recent",
  "searchQuery": "IT services",
  "status": "active",
  "stage": "any",
  "noticeIds": [],
  "cpvSector": "any",
  "cpvCodes": [],
  "regions": [],
  "suitableForSme": false,
  "suitableForVcse": false,
  "awardedToSme": false,
  "awardedToVcse": false,
  "subcontractOnly": false,
  "onlyOpen": false,
  "sortOrder": "publishedAt:DESC",
  "maxItems": 3,
  "includeDetails": false,
  "dedupeByOcid": false
}' |
apify call nimbryxo-studio/uk-public-sector-tender-and-contract-notices --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nimbryxo-studio/uk-public-sector-tender-and-contract-notices"
        }
    }
}
```

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/M2URbFjBaD56MQvx8/builds/Azjwslr2glcdJ8dCN/openapi.json
