# Scotland Tenders & Awards Radar: Public Contracts Scotland (`dottti/scotland-tender-radar`) Actor

Scottish public sector tenders and contract awards from Public Contracts Scotland as clean JSON: buyer, value in GBP, CPV, deadline, winner, contract value and bids received. Filter by keyword, buyer, CPV and value, and get daily alerts for new notices.

- **URL**: https://apify.com/dottti/scotland-tender-radar.md
- **Developed by:** [Dottti](https://apify.com/dottti) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.50 / 1,000 tender delivereds

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

## Scotland Tenders & Awards Radar: Public Contracts Scotland

Get Scotland's public sector tenders and contract awards from Public Contracts Scotland as clean JSON: what is being
bought, by which council, NHS board or agency, the estimated value in GBP, the CPV code, the bid deadline, and for
awards the winner, the contract value and how many bids came in. Filter by keyword, buyer, CPV, category and value,
and schedule it to get alerts for new notices.

The data comes from the official Public Contracts Scotland OCDS API, published by the Scottish Government. No login,
no browser, no scraping of web pages.

### Who it is for

- **Suppliers and contractors** bidding for Scottish public contracts: a daily list of new tenders in your field, with
  the deadline and a link to the notice.
- **Bid writers and sales teams**: award results show who won, at what value and against how many bids, so you can
  size the market and see when contracts come back round.
- **Competitor research**: every award notice with the supplier name, its size (SME or large) and its town.
- **Consultants, analysts and journalists**: a clean table of Scottish procurement by buyer, CPV code or value.

### What you get

A tender (contract notice):

```json
{
  "recordType": "tender",
  "ocid": "ocds-r6ebe6-0000847982",
  "noticeId": "rls-1-NOV568403",
  "noticeType": "Contract Notice",
  "title": "Purchase & Installation of Multibeam Echosounder System",
  "description": "The Scottish Ministers, Marine Directorate invites tenders for the purchase and installation of replacement for the underwater components of a Teledyne Reson T50 multibeam system. ...",
  "buyer": "Scottish Government",
  "buyerLocality": "Aberdeen",
  "buyerPostcode": "AB11 9DB",
  "buyerUrl": "http://www.gov.scot",
  "value": 120000,
  "currency": "GBP",
  "procurementMethod": "open",
  "procurementMethodDetails": "Open procedure",
  "category": "goods",
  "cpv": "38114000",
  "cpvCodes": ["38114000", "38110000", "38000000"],
  "deadline": "2026-12-09T12:00:00Z",
  "daysLeft": 29,
  "isOpen": true,
  "lots": 1,
  "documents": [
    { "title": "Invitation to Tender", "url": null },
    { "title": "Schedule 14 - Terms and Conditions for Supply of Goods", "url": null }
  ],
  "publishedDate": "2026-11-09T00:00:00Z",
  "noticeUrl": "https://www.publiccontractsscotland.gov.uk/search/show/search_view.aspx?ID=NOV568403",
  "country": "GB-SCT"
}
```

An award (contract award notice):

```json
{
  "recordType": "award",
  "ocid": "ocds-r6ebe6-0000847966",
  "noticeType": "Site Notice - Contract Award Notice (below threshold)",
  "title": "Next Generation Firewall and Remote Access Upgrade",
  "buyer": "Stirling Council",
  "category": "services",
  "cpv": "72260000",
  "winner": "Dell",
  "winningValue": 641089,
  "bidsReceived": 1,
  "awards": [
    { "lot": null, "supplier": "Dell", "supplierLocality": "Glasgow", "supplierSize": "large", "value": 641089, "currency": "GBP", "status": "active", "dateSigned": "2026-10-29T00:00:00Z" }
  ],
  "publishedDate": "2026-11-09T00:00:00Z",
  "noticeUrl": "https://www.publiccontractsscotland.gov.uk/search/show/search_view.aspx?ID=NOV568396"
}
```

Notices covered: contract notices (above threshold, utilities, social and other specific services, and below-threshold
site notices) and award notices (above threshold, utilities, social services, below-threshold site awards and Quick
Quote awards). When a procurement has several lots, `awards` has one entry per lot and supplier, and `winningValue`
is the total.

Contact names, email addresses, phone numbers and supplier street addresses from the source are left out on purpose.
Email addresses and phone numbers typed into descriptions are replaced with `[email removed]` and `[phone removed]`.

If nothing matches or the API can't be reached, you get a free `status` row that says so, and the run still ends
successfully, so schedules keep working.

### How to use it

- **Empty input**: up to 20 of the newest tenders and awards from the last 7 days. Takes about 20 seconds.
- **Your field**: set `keywords` (software, roofing, cleaning, consultancy) or `cpvPrefixes` (45 construction,
  72 IT services, 79 business services), and `minValueGbp`.
- **Open tenders only**: set `recordTypes` to `tenders` and turn on `openOnly`.
- **Award results**: set `recordTypes` to `awards` and an earlier `publishedSince`.
- **Alerts**: turn on `onlyNew` and schedule the Actor daily (Schedules in Apify Console). Each run returns only
  notices it has not delivered before for the same filters: a procurement once as a tender and once more as an award.

### Pricing

Pay per result: **$5.00 per 1,000 tenders and $12.00 per 1,000 award results** delivered. Status rows are free.
Platform usage is included in the price. Set a maximum cost per run in Apify Console and the Actor stops cleanly when
it is reached.

### Limits

- The Actor reads one notice list per month and notice type (8 types), so a window of one month is about 8 to 16
  requests. `publishedSince` can go back about 13 months.
- Results come newest first. Keywords match parts of words, so short keywords match more than you might expect.
- Values are as published: the buyer's estimate for tenders and the contract or award value for awards, in GBP. Many
  notices have no value.
- Quick Quote awards have no public notice page, so `noticeUrl` is empty for them; `apiUrl` always points to the
  official record.

### Data source

Public Contracts Scotland OCDS API (api.publiccontractsscotland.gov.uk), published by the Scottish Government under
the Open Government Licence v3.0. Each row carries a `source` attribution and links to the official notice.

# Actor input Schema

## `recordTypes` (type: `string`):

tenders: contract notices still looking for suppliers (above and below threshold). awards: contract award notices with the winner and value. both: tenders and awards.

## `publishedSince` (type: `string`):

Read notices published on or after this day (YYYY-MM-DD). Empty = the last 7 days. At most about 13 months back.

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

Words matched against the title, description, lot titles, buyer and winner. Case is ignored. Example: software, roofing, cleaning, consultancy.

## `matchMode` (type: `string`):

any: at least one keyword. all: every keyword.

## `buyers` (type: `array`):

Keep notices whose buyer name contains one of these, for example Glasgow City Council, NHS or Scottish Water.

## `cpvPrefixes` (type: `array`):

Keep notices with a CPV code starting with one of these (2 to 8 digits). Example: 45 for construction work, 72 for IT services, 79 for business services.

## `categories` (type: `array`):

Goods, services or works. Empty = all.

## `minValueGbp` (type: `integer`):

Keep tenders with an estimated value, and awards with a contract value, of at least this many pounds. Notices without a value are dropped when this is set.

## `openOnly` (type: `boolean`):

Keep only tenders whose bid deadline has not passed yet. Awards are not affected.

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

Stop after this many matching notices (newest first).

## `onlyNew` (type: `boolean`):

Skip notices this Actor already delivered in earlier runs with the same filters. A procurement is delivered once as a tender and once more when its award is published. Use with a daily schedule.

## `requestDelayMs` (type: `integer`):

Pause between API requests. Minimum 200.

## `maxRetries` (type: `integer`):

Retries per request on network errors, 429 and 5xx responses.

## Actor input object example

```json
{
  "recordTypes": "both",
  "matchMode": "any",
  "openOnly": false,
  "maxItems": 20,
  "onlyNew": false,
  "requestDelayMs": 300,
  "maxRetries": 4
}
```

# Actor output Schema

## `records` (type: `string`):

Buyer, value, CPV, deadline, winner, contract value and bids received.

# 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 = {
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("dottti/scotland-tender-radar").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 = { "maxItems": 20 }

# Run the Actor and wait for it to finish
run = client.actor("dottti/scotland-tender-radar").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 '{
  "maxItems": 20
}' |
apify call dottti/scotland-tender-radar --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dottti/scotland-tender-radar"
        }
    }
}
```

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/8nPmy5xvAvTY7LiJO/builds/qnqXEv6FTbdS7HPJf/openapi.json
