# UK Government Tenders Search - Contracts Finder & Find a Tender (`se7enmethod/uk-government-tenders-search`) Actor

Search UK public sector tenders and contract awards on Contracts Finder and Find a Tender by keyword, CPV code, value, status (open/awarded), SME suitability and publication date. Returns buyer, deadline, value, CPV, winners and notice links. Official APIs, no key.

- **URL**: https://apify.com/se7enmethod/uk-government-tenders-search.md
- **Developed by:** [Patrick Hebert](https://apify.com/se7enmethod) (community)
- **Categories:** Business, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 results

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 Government Tenders Search - Contracts Finder & Find a Tender

Search **UK public sector tenders and contract awards** from the two official government services in one run:

- **Contracts Finder** (England; contracts over £12k for central government and £30k for the wider public sector) through its official Searches API, and
- **Find a Tender** (the UK-wide service for higher-value procurements since Brexit) through its official OCDS API.

No scraping, API key, login or proxy.

### Use cases

- **Bid alerts**: schedule a daily run for your keywords / CPV codes and get only tenders still open for bids.
- **Sales prospecting**: find councils, NHS trusts and departments that buy what you sell, with budgets.
- **Competitor intelligence**: award notices with winning suppliers and contract values.
- **Bid writers & consultants**: build opportunity pipelines for clients.

### Input

```json
{ "keywords": ["cyber security", "penetration testing"], "status": "open", "cpvCodes": ["72000000"], "minValue": 50000, "lookbackDays": 30 }
```

- `status`: `open` (deadline today or later), `awarded` (with winners) or `all`.
- Every word of a keyword must appear in the notice (title, description, CPV description or buyer name).
- Contracts Finder returns at most 1,000 hits per request; the actor splits the date range automatically to get past it.
- Find a Tender has no keyword search, so the actor reads every notice in the date window (about 2,500 a week) and filters them; keep the window to a few weeks for fast runs.

### Output (one row per notice)

`source, title, buyerName, noticeStatus, stage, noticeType, publishedDate, deadlineDate, valueLow, valueHigh, awardedValue, awardedSuppliers, awardedDate, currency, cpvCodes, cpvDescription, procurementMethod, suitableForSme, suitableForVcse, buyerPostcode, region, contractStart, contractEnd, description, noticeId, noticeIdentifier, noticeUrl`.
Find a Tender publishes every notice in a procedure (tender, update, award), so one procurement can appear as several notices. Queries without matches return `found: false` and are not charged.

### Pricing

Pay per result (per notice returned). `found: false` rows are free.

### Notes & attribution

Contains public sector information licensed under the [Open Government Licence v3.0](https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/). Sources: Contracts Finder and Find a Tender (Crown Commercial Service / Cabinet Office). This actor is not an official government product and is not endorsed by them. Personal contact details (named contacts, emails, phone numbers) are deliberately **not** exported. Descriptions are cut at 3,000 characters.

# Actor input Schema

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

One query per line. Every word must appear in the title, description, CPV description or buyer name, e.g. cyber security, grounds maintenance, cloud hosting. Leave empty to use filters only.

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

Which official service(s) to search.

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

open = tenders whose deadline is today or later; awarded = contract awards with winners; all = everything.

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

Default: today minus lookbackDays. With status=open and no date, Contracts Finder returns every open notice regardless of age.

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

Default: today.

## `lookbackDays` (type: `integer`):

Lookback days (when no start date).

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

Optional. 72000000 (IT services) also matches its sub-codes.

## `minValue` (type: `integer`):

Minimum value (GBP).

## `maxValue` (type: `integer`):

Maximum value (GBP).

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

Only notices marked suitable for SMEs.

## `maxPerQuery` (type: `integer`):

Max notices per query and source.

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

Max results.

## Actor input object example

```json
{
  "keywords": [
    "software"
  ],
  "sources": [
    "contractsFinder",
    "findATender"
  ],
  "status": "open",
  "lookbackDays": 30,
  "smeSuitableOnly": false,
  "maxPerQuery": 500,
  "maxItems": 2000
}
```

# Actor output Schema

## `results` (type: `string`):

All results in the default dataset (Overview view selected).

# 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 = {
    "keywords": [
        "software"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("se7enmethod/uk-government-tenders-search").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 = { "keywords": ["software"] }

# Run the Actor and wait for it to finish
run = client.actor("se7enmethod/uk-government-tenders-search").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 '{
  "keywords": [
    "software"
  ]
}' |
apify call se7enmethod/uk-government-tenders-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,se7enmethod/uk-government-tenders-search"
        }
    }
}
```

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/qdLv3R5Tzek5jOMH3/builds/Fna8sXP4wixD7zRjR/openapi.json
