# UK Contracts Finder Scraper: Awards and Tenders (`plain-build/uk-contracts-finder-scraper`) Actor

UK public contract awards and tenders from Contracts Finder's open OCDS API: buyer, title, CPV codes, value, contract dates, awarded value and supplier organisations; mostly awards and call-offs under frameworks set up before 2025. One row per notice release. No login, no key; no contact persons.

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

## Pricing

from $1.28 / 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.
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 Contracts Finder Scraper: Awards and Tenders

This UK Contracts Finder scraper returns UK public contract awards and tenders from Contracts Finder, the UK government's service for procurements under the Public Contracts Regulations 2015, through its open OCDS API: one row per notice release with buyer, title, CPV codes, stage, value, contract dates, link, and on award releases the awarded value and supplier organisations. Most releases today are awards and call-offs under frameworks and dynamic purchasing systems set up before 24 Feb 2025; new procurements are on Find a Tender, which the UK public tenders scraper reads. No login, no key; USD 1.50 per 1,000 results (USD 1.28 on Silver and above). Contains public sector information licensed under the Open Government Licence v3.0.

### What it does

UK public contract awards and tenders from Contracts Finder's open OCDS API: buyer, title, CPV codes, value, contract dates, awarded value and supplier organisations; mostly awards and call-offs under frameworks set up before 2025. One row per notice release. No login, no key; no contact persons.

The data comes from Contracts Finder (Crown Commercial Service, UK Cabinet Office) through its official API (https://www.contractsfinder.service.gov.uk/apidocumentation/Notices/1/GET-Published-Notice-OCDS-Search). This Actor is not affiliated with, endorsed by or sponsored by Contracts Finder (Crown Commercial Service, UK Cabinet Office). It reads only that API, one request at a time, and it checks robots.txt before the first request to each host.

### Who it is for

- Sales and bid teams at companies selling to UK public buyers, who track which buyers award call-offs from which frameworks and to whom.
- Framework suppliers and competitors who watch awards under existing frameworks and dynamic purchasing systems, with values and contract dates.
- Market analysts who check which public buyers buy what and which organisations win, with SME and voluntary-sector suitability flags.
- Developers who want Contracts Finder notices as JSON or CSV without reading the OCDS documentation.

### Key features

- One row per Contracts Finder notice release: notice id, release, buyer, title, description, CPV codes, stage, procurement method, estimated value and currency, tender deadline, contract start and end, SME and VCSE suitability, publication time and the notice link.
- Award releases add the awarded value and currency, the award date and the supplier organisations.
- Filters: publication date (at most 366 days back; 30 days with new_since_last_run on), stage (planning, tender, award) and eight-digit CPV codes; a CPV code also matches its sub-codes.
- Option new_since_last_run delivers and charges only releases you have not had for the same stage and CPV codes.
- Official open OCDS API of the UK Cabinet Office, no login, no key, contact points never read.
- Errors and empty results go to a separate errors dataset and are not charged.

### How it works

The Actor calls Contracts Finder's official OCDS search API (contractsfinder.service.gov.uk/Published/Notices/OCDS/Search), which publishes Contracts Finder's notices in the Open Contracting Data Standard. It asks for the notice releases published in your window, 100 a request, newest first, with your stage, and follows the API's next-page link. The API can end a search early without saying so (an 18-day window stopped after 5 pages, 499 releases, on 20 Nov 2026), so when a search brought 100 releases or more the Actor starts a new search that ends at its oldest release (it reads that release's second again and skips the repeats). The reading ends with a search that brings fewer than 100 releases; if a search brings 100 or more and all of them were read before in the run, the run fails rather than end as complete. Search times are sent in UK local time, as the API reads them. Each release becomes one row: buyer, title, description, CPV codes, stage, procurement method, estimated value, deadline, contract dates, SME and VCSE suitability, and on award releases the awarded value, the award date and the supplier organisations. The CPV filter is applied to the codes in each release's tender and awards. Contact points (names, emails, phones), street addresses and postcodes are never read. A supplier name that does not read as an organisation (a sole trader can be a person) is left out, and the run counts these in one uncharged item. Free text is cleaned the same way as all free text. One request at a time, 15 seconds after the answer to the one before, which keeps a run under the limit Contracts Finder showed (about 20 requests in a few minutes); after a 429 or 503 answer the run waits the seconds the API names in Retry-After and tries again; it fails after 3 retries, or at once when the API asks for more than 2 minutes or answers 403 (its rate-limit answer, which asks for 5 minutes), without sending early.

### How to try it

1. Open the Input tab. The prefilled input returns the 25 newest notice releases of the last 7 days, of every stage and CPV code.
2. Click Start. A run reads 100 notice releases a request, one request every 15 seconds (Contracts Finder limits requests), so the prefilled run finishes in under a minute; a week (about 650 releases) is about 8 requests, about 2 minutes.
3. Open the Output tab to see the results as a table, or export them as JSON, CSV or Excel.

To get new notices every day, schedule a daily run with `new_since_last_run` on and `published_after` empty. Each run then delivers and charges only notice releases you have not had from this Actor for the same stage and CPV codes.

- A release held back by `max_items` or your spending limit comes in a later run only after all newer releases, because the API reads newest first: a run whose `max_items` is lower than the new releases since the run before (about 100 a day, 1,787 from 2 to 19 Nov 2026) does not catch up. After 30 days held-back releases are no longer read, and the run says so in one uncharged error item (`held_back_dropped`). Raise `max_items`, add filters (stage, CPV codes) or run more often.
- If runs stop for a while, the next run goes back to two days before the last run that finished with nothing held back, at most 30 days: the Actor remembers the last 50,000 releases it delivered, and a longer window could deliver one twice.
- An edited notice or an award update is published as a new release of the same notice (same `notice_id`, new `source_id`), so a daily run delivers it as a new row.
- Each combination of `stage` and `cpv_codes` has its own memory, a key-value store named `uk-contracts-finder-scraper-state` in your account. Delete it to start again.
- Two runs at the same time can deliver and charge the same release, so leave a gap between scheduled runs.

Contracts Finder published 131 notice releases on Wednesday 18 Nov 2026: 92 awards, 16 award updates, 18 tenders, 4 tender amendments and 1 planning notice; 74 of them were call-offs from framework agreements and dynamic purchasing systems. The run reads them 100 a request, one request every 15 seconds, and keeps those that match your CPV codes: a week is about 8 requests (about 2 minutes), a year about 600 (about 2.5 hours; raise the run timeout).

The name check uses derived data, not official statistics: Statistics Norway (SSB) table 10501 and the Finnish Digital and Population Data Services Agency (DVV) first names, both CC BY 4.0, and Czech Statistical Office data, plus hand-written names; for UK names also the Office for National Statistics' baby names for England and Wales (Open Government Licence v3.0).

Attribution: Contains public sector information licensed under the Open Government Licence v3.0 (https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/). The licence asks you to give this statement where you use the data, and not to suggest that the UK government endorses you.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `published_after` | string | "" | Date as YYYY-MM-DD, at most 366 days back (30 days with new_since_last_run on). Contracts Finder filters on the day a notice release was published or last edited; the day starts at midnight UK time. Leave empty for the last 7 days. |
| `stage` | string | "all" | all, planning, tender or award, the OCDS stages Contracts Finder gives its notices. Leave all for every notice. |
| `cpv_codes` | array | \[] | Eight-digit CPV codes, for example 72000000. A code also matches its sub-codes, such as 72268000. Leave empty for all codes. The run still reads every notice of the window and keeps those that match. |
| `new_since_last_run` | boolean | false | Deliver and charge only notice releases this Actor has not delivered to you before for the same stage and CPV codes. A release held back by Maximum results or your spending limit comes in a later run, after all newer releases (the API reads newest first); after 30 days it is no longer read, and the run says so in an uncharged error item. Delivered releases are remembered in a key-value store named uk-contracts-finder-scraper-state in your account. |
| `max_items` | integer | 10 | How many results to return at most, from 1 to 10000. |

### Output

Each result has these fields. Missing values are `null`, never a different type.

| Field | Type | Description |
|---|---|---|
| `item_type` | string | Always `contract_notice` |
| `source_id` | string | cf: and the release id (the notice id and a release number), for example cf:9afa8411-f7ed-4fae-91d1-2e55a558a6ca-921997 |
| `notice_id` | string | Contracts Finder's notice id; the releases of one notice share it |
| `ocid` | string or null | The OCDS id of the procurement process |
| `notice_stage` | string or null | The OCDS release tags, for example tender, award or awardUpdate |
| `title` | string or null | The procurement's title; at most 1,000 characters |
| `description_snippet` | string or null | The first 300 characters of the procurement's description |
| `buyer_name` | string or null | The contracting authority. Empty when the name reads as a person's |
| `buyer_country` | string or null | The buyer's country, two-letter code, for example GB |
| `cpv_codes` | string or null | CPV codes of the tender and awards, comma separated, no repeats |
| `main_category` | string or null | goods, services or works, when the notice gives it |
| `procurement_method` | string or null | The procurement method as the notice describes it, for example Call-off from a framework agreement or Open procedure |
| `tender_status` | string or null | The OCDS tender status, for example active, complete or planned |
| `estimated_value_amount` | number or null | The estimated value of the procurement. Empty when the notice gives none or 0 |
| `estimated_value_currency` | string or null | ISO 4217 currency of the estimated value |
| `tender_deadline` | string or null | The deadline for tenders, ISO time in UTC, when the notice gives one |
| `contract_start` | string or null | The contract's start, ISO time in UTC: the tender's contract period, else the first award's |
| `contract_end` | string or null | The contract's end, ISO time in UTC: the tender's contract period, else the first award's |
| `suitable_for_sme` | boolean or null | True when the buyer marked the procurement as suitable for small and medium-sized enterprises |
| `suitable_for_vcse` | boolean or null | True when the buyer marked the procurement as suitable for voluntary, community and social enterprises |
| `awarded_value_amount` | number or null | Award releases: the sum of the awards' values, else of the contracts' values, when they share one currency |
| `awarded_value_currency` | string or null | ISO 4217 currency of the awarded value |
| `award_date` | string or null | Award releases: the earliest award date, else the earliest date a contract was signed, ISO time in UTC |
| `supplier_names` | string or null | Award releases: the supplier organisations, no repeats, separated by '; '. Names that do not read as an organisation are left out |
| `published_at` | string | When the release was published, ISO time in UTC |
| `notice_url` | string | The notice's page on Contracts Finder |
| `source_url` | string | The record on the source site |
| `fetched_at` | string | When the record was fetched, ISO 8601 UTC |
| `actor_version` | string | The build that produced the record |

Example item:

```json
{
  "item_type": "contract_notice",
  "source_id": "<source_id>",
  "notice_id": "<notice_id>",
  "ocid": "<ocid>",
  "notice_stage": "<notice_stage>",
  "title": "<title>",
  "description_snippet": "<description_snippet>",
  "buyer_name": "<buyer_name>",
  "buyer_country": "<buyer_country>",
  "cpv_codes": "<cpv_codes>",
  "main_category": "<main_category>",
  "procurement_method": "<procurement_method>",
  "tender_status": "<tender_status>",
  "estimated_value_amount": 0,
  "estimated_value_currency": "<estimated_value_currency>",
  "tender_deadline": "<tender_deadline>",
  "contract_start": "<contract_start>",
  "contract_end": "<contract_end>",
  "suitable_for_sme": true,
  "suitable_for_vcse": true,
  "awarded_value_amount": 0,
  "awarded_value_currency": "<awarded_value_currency>",
  "award_date": "<award_date>",
  "supplier_names": "<supplier_names>",
  "published_at": "<published_at>",
  "notice_url": "<notice_url>",
  "source_url": "<source_url>",
  "fetched_at": "2026-11-04T09:30:00Z",
  "actor_version": "0.1.1"
}
```

Free-text fields are cleaned before delivery: email addresses, phone numbers, @handles and person names introduced by words such as "contact", "recruiter", "founder" or "manager" are replaced with `[removed]`. The cleaning follows fixed rules, so a name written elsewhere in the text, or in lower case, can remain.

### What it does not do

- Contracts Finder only. Since the Procurement Act 2023 started on 24 Feb 2025, new UK procurements, above and below the thresholds, are advertised on Find a Tender; Contracts Finder carries notices of procurements started under the Public Contracts Regulations 2015: mostly awards and call-offs under frameworks and dynamic purchasing systems set up before then, plus a few tenders (18 of 131 releases on 18 Nov 2026). For new tenders use the UK public tenders scraper (Find a Tender). Contracts Finder's volume shrinks as the old frameworks end.
- Contracts Finder's API can end a search early without saying so (on 20 Nov 2026 an 18-day window stopped after 499 releases). The Actor then searches again up to the oldest release it has, so a long window takes a few more requests. This needs the API's newest-first order, which it had in every test on 20 Nov 2026: the 18 days then came to 1,787 releases, with the same day counts as single-day searches.
- The window filters on the day a release was published or last edited, not on the deadline. An edited notice or an award update comes as a new release of the same notice: same notice_id, new source_id.
- No keyword search: the API filters by date and stage only. The CPV filter is applied to each release after it is read, so a narrow filter on a long window reads many pages.
- Contracts Finder limits requests: on 20 Nov 2026 it answered 21 requests sent 6.5 seconds apart and then 429 with a 2-minute wait. So the run sends one request every 15 seconds: a week is about 8 requests (about 2 minutes), a year about 600 (about 2.5 hours). The default run timeout is 1 hour: raise it for more than about 4 months. If the API still answers 429, the run waits as asked and fails after 4 tries on one page (the first and 3 retries).
- Contact points, street addresses, postcodes, documents and bids are not returned. Supplier names that do not read as an organisation are left out of supplier_names: a name is kept when it ends in a company form (Ltd, Limited, PLC, LLP), or when it has a company word (Group, Services and others) or a UK public-body or GP-practice word (council, NHS, CIC, charity, school, surgery, medical centre and others) and has no title (Mr, Dr, MS ...) or initials, in any case, and does not read as a person's name; a trading-as name (t/a, trading as) is judged by the part before t/a. So a sole trader's award shows no supplier, and a firm with a plain name (no such word) can be left out too; the release itself is delivered. A buyer name that reads as a person's is left empty.
- A supplier name with a title (Sir, Lord, Dr and others), a single letter or two capitals before a name (A Patel, JR Smith), or a single letter after a name (Evans G) is left out even when it names an organisation, such as a school named after its founder or JD Sports Group, DS Smith Group, A Better Start Trust and Dr Foster Group: the rule cannot tell them apart, and leaving the name out keeps sole traders' names out of the data. A name that ends in Ltd, Limited, PLC or LLP is always kept. The same holds for a single letter after a word (Hepatitis C Trust, Plan B Services) and for a charity or firm named after a person without Ltd (Joseph Rowntree Foundation, Grant Thornton Services); a name that ends in a public body's type (NHS Trust, NHS Foundation Trust, ICB, Integrated Care Board, Health Board, Council, Commission or Housing Association) is kept even when named after a person, unless a title or initials are in it, it has punctuation other than an apostrophe, & or a hyphen in a word, a word such as of, for, with or via joins two parts, or a bracket note other than its initials follows. A person's name joined to a public body by &, and or no joining word (Priya Patel Example NHS Foundation Trust) is still kept, because it has the shape of a body named after a person (George Eliot Hospital NHS Trust); so a housing association or commission named after a person (John Smith Housing Association) is delivered; a bare Hospital or NHS at the end does not count. Some place names are read as persons by the shared check and left out (Victoria Road Surgery, Stanley Town Council).
- A school or academy whose name starts with a person's full name (John Lyon School) is left out unless it carries a school phrase (Primary School, High School, Church of England School, Academy Trust, School Foundation and others, or College), or ends in Ltd, because sole traders use School and Academy too.
- UK first names come from the ONS baby-name lists for England and Wales (names with 20 or more births in a year since 1996, and the top 100 of every tenth year since 1904). A rarer first name (for example Rajesh) is not known, so a sole trader's name such as Rajesh Sharma Services can still be delivered, as can a name with the surname first (Evans Gareth Services); names that are also ordinary words (Grace, Rose) are not used as first names.
- Value, deadline and CPV codes can be empty or rough: buyers fill in the notices. Contracts Finder has no threshold flag and no buyer region in its OCDS output.
- The description is cut to its first 300 characters; supplier names stop at 5,000 characters in all.
- Attribution: the data is published under the Open Government Licence v3.0, which asks you to give the statement "Contains public sector information licensed under the Open Government Licence v3.0" where you use it.

### How much it costs

You pay per result delivered to the default dataset. Errors and empty results are written to a separate `errors` dataset and are never charged.

| Plan tier | Price per 1,000 results |
|---|---|
| Free and Bronze | USD 1.50 |
| Silver and above | USD 1.28 |

Example: a run that delivers 1,000 results costs USD 1.50 on the Free and Bronze tiers and USD 1.28 on Silver and above, plus the platform's start event of USD 0.00005. If you set a maximum cost per run, the Actor stops before it would go over it and delivers nothing it cannot charge for.

### Other Actors in this family

This Actor is part of a family of job and public-data scrapers built on the same core: one result per charge, a separate uncharged errors dataset, and no person fields. Links follow as the other Actors are published.

### FAQ and support

- **Is there personal data in the output?** No personal data by design. The output holds facts about procurement notices and the public bodies and organisations in them. Contact points (names, emails, phones) are never read, nor street addresses and postcodes. A supplier name that does not read as an organisation is left out, because a sole trader can be a person, and a buyer name that reads as a person's is left empty. Emails, phones and names after words such as contact are removed from the title, description and procurement method. The Open Government Licence does not cover personal data in the published information.
- **Is the data accurate?** The data comes from Contracts Finder's official OCDS API as Crown Commercial Service publishes it. Accuracy is not guaranteed. Buyers fill in the notices, so fields such as the value or the deadline can be missing or wrong.
- **Who runs this Actor?** It is not affiliated with Contracts Finder (Crown Commercial Service, UK Cabinet Office).
- **How is the data collected?** The official API or open data is used where the source offers it. This Actor uses only the official Contracts Finder (Crown Commercial Service, UK Cabinet Office) API.
- **How do I get new UK contract awards by CPV code every day?** Schedule a daily run with new_since_last_run on and published_after empty, stage award and your CPV codes. Each run reads at least the last 7 days and delivers and charges only releases you have not had for the same stage and CPV codes.
- **Does it return contract award winners?** Yes, on award releases supplier_names holds every supplier organisation, separated by '; ', with the awarded value and award date. A supplier name that does not read as an organisation (a sole trader can be a person) is left out; the run counts them in one uncharged dropped item.
- **Why are there few new tenders?** Since 24 Feb 2025 new UK procurements are advertised on Find a Tender under the Procurement Act 2023. Contracts Finder keeps the notices of procurements started under the Public Contracts Regulations 2015, mostly awards and call-offs under older frameworks and dynamic purchasing systems. The UK public tenders scraper reads Find a Tender.
- **Do I need an API key?** No. Contracts Finder's OCDS search API is open and needs no login and no key.
- **Can I use the data commercially?** Contracts Finder publishes its notice data under the Open Government Licence v3.0, which allows commercial use if you give the attribution statement "Contains public sector information licensed under the Open Government Licence v3.0" and do not suggest official endorsement. Personal data is not covered by the licence. The Actor never reads contact points, street addresses or postcodes, and leaves out supplier names that read as a person's; the section "What it does not do" names the person-named suppliers that can still pass (a rare first name, the surname first). This is an open reading, not a legal opinion. Not affiliated with Crown Commercial Service, the Cabinet Office or the UK government.
- **What may I do with the data?** You are responsible for complying with the law and with the source's terms when you use the data.
- **Something is broken.** Open an issue on the Issues tab with the run link and your input. Issues are answered by the automated maintainer.

# Changelog

This Actor's version history is a separate document: https://apify.com/plain-build/uk-contracts-finder-scraper/changelog.md

# Actor input Schema

## `published_after` (type: `string`):

Date as YYYY-MM-DD, at most 366 days back (30 days with new_since_last_run on). Contracts Finder filters on the day a notice release was published or last edited; the day starts at midnight UK time. Leave empty for the last 7 days.

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

all, planning, tender or award, the OCDS stages Contracts Finder gives its notices. Leave all for every notice.

## `cpv_codes` (type: `array`):

Eight-digit CPV codes, for example 72000000. A code also matches its sub-codes, such as 72268000. Leave empty for all codes. The run still reads every notice of the window and keeps those that match.

## `new_since_last_run` (type: `boolean`):

Deliver and charge only notice releases this Actor has not delivered to you before for the same stage and CPV codes. A release held back by Maximum results or your spending limit comes in a later run, after all newer releases (the API reads newest first); after 30 days it is no longer read, and the run says so in an uncharged error item. Delivered releases are remembered in a key-value store named uk-contracts-finder-scraper-state in your account.

## `max_items` (type: `integer`):

How many results to return at most. You pay per result delivered.

## Actor input object example

```json
{
  "published_after": "",
  "stage": "all",
  "cpv_codes": [],
  "new_since_last_run": false,
  "max_items": 25
}
```

# Actor output Schema

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

One item per contract notice.

## `errors` (type: `string`):

Records that could not be delivered, and queries with no results. Not charged.

# 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 = {
    "cpv_codes": [],
    "max_items": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("plain-build/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 = {
    "cpv_codes": [],
    "max_items": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("plain-build/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 '{
  "cpv_codes": [],
  "max_items": 25
}' |
apify call plain-build/uk-contracts-finder-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,plain-build/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/fhX24t7iujPjyD1AL/builds/1SY67yMdaLSnMVCtO/openapi.json
