# ukcontracts.notices

UK public tenders and awards from Find a Tender and Contracts Finder: title, buyer, value, deadline, CPV code, suppliers and contract dates, by publication date.

UK public contracts, one of the UK public contracts scrapers.

| | |
| --- | --- |
| Id | `ukcontracts.notices` |
| Version | 1 |
| Billed per | request — 1 unit for a charged run |
| Runs | within one request |

Start it with `POST /v1/scrapers/ukcontracts.notices/runs`. How runs work is in [Running a scraper](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `source` | "find_a_tender" \| "contracts_finder" | no | `find_a_tender` (above the UK thresholds) or `contracts_finder` (below them). Default: `"find_a_tender"`. |
| `published_from` | string | no | Notices published on or after this day, `YYYY-MM-DD`. Default: seven days back. |
| `published_to` | string | no | Notices published on or before this day, `YYYY-MM-DD`. Default: today. |
| `stage` | "any" \| "planning" \| "tender" \| "award" \| "contract" | no | Only notices of this stage, kept from the page read. Default: `"any"`. |
| `keyword` | string | no | Only notices whose title or description holds this text, kept from the page read. Limit: at least 2 characters, at most 100 characters. |
| `max_results` | integer | no | Notices read a page, at most 100. Limit: 1 to 100. Default: `50`. |
| `cursor` | string | no | The next page: the `next_cursor` a previous run reported. Limit: at most 400 characters. |

## Record fields

Every record of a run has these fields. A value that is not known is `null` — never an empty string and never `0`.

| Field | Type | Notes |
| --- | --- | --- |
| `source` | string | `find_a_tender` or `contracts_finder`. |
| `ocid` | string | The procurement's Open Contracting id, the same across its notices. |
| `notice_id` | string | The id of this notice. |
| `url` | string | The notice's public page. |
| `stage` | string or null | What this notice is: `planning`, `tender`, `award` or `contract`, as the release is tagged; the last tag where it has several. |
| `title` | string or null | The procurement's title. |
| `description` | string or null | Its description. |
| `buyer` | string or null | The public body buying. |
| `status` | string or null | The tender's status, e.g. `active`, `complete`. |
| `category` | string or null | `goods`, `works` or `services`. |
| `procurement_method` | string or null | The method, e.g. `open`, `selective`. |
| `cpv_code` | string or null | The main CPV code. |
| `cpv_description` | string or null | What that code means. |
| `value` | number or null | The tender's estimated value. |
| `currency` | string or null | The currency of the value, e.g. `GBP`. |
| `published_date` | string or null | The day this notice was published, `YYYY-MM-DD`. |
| `deadline_date` | string or null | The day tenders are due, `YYYY-MM-DD`. |
| `contract_start` | string or null | The contract's start, `YYYY-MM-DD`. |
| `contract_end` | string or null | The contract's end, `YYYY-MM-DD`. |
| `suppliers` | array of string | The organisations awarded it. |
| `award_value` | number or null | The value of the award, where one is published. |
| `award_date` | string or null | The day of the award, `YYYY-MM-DD`. |
| `fetched_at` | string (date-time) | When the service was asked, in UTC. |

## Example request

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
curl -X POST "https://api.enrichednow.com/v1/scrapers/ukcontracts.notices/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"source":"find_a_tender","published_from":"2026-11-15","published_to":"2026-11-20","max_results":4}}'
```

## Example response

The run, once it has ended. A run that has not ended within `wait` comes back with `202` and the status `queued` or `running`.

```json
{
  "id": "run_841742f37553189ff9c27ba1",
  "scraper_id": "ukcontracts.notices",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "source": "find_a_tender",
    "published_from": "2026-11-15",
    "published_to": "2026-11-20",
    "max_results": 4
  },
  "record_count": 1,
  "units": 1,
  "units_per_request": 1,
  "units_per_record": null,
  "units_per_page": null,
  "diagnostics": {
    "requests": 1,
    "bytes": 259214,
    "wall_ms": 885,
    "facts": {}
  },
  "created_at": "2026-11-16T22:37:50.170950Z",
  "started_at": "2026-11-16T22:37:50.178331Z",
  "finished_at": "2026-11-16T22:37:51.066313Z"
}
```

Its records, from `GET /v1/runs/{id}/records`. The record is a real one: this scraper's own parser read it from a page recorded from the site.

```json
{
  "records": [
    {
      "source": "find_a_tender",
      "ocid": "ocds-h6vhtk-07c0d9",
      "notice_id": "110374-2026",
      "url": "https://www.find-tender.service.gov.uk/Notice/110374-2026",
      "stage": "tender",
      "title": "PROVISION OF SERVICES TO ACCEPT, PROCESS AND MARKET MIXED AND SOURCE SEPARATED WASTE FOR RECYCLING",
      "description": "arc21 is procuring, in two Lots to reflect different waste configurations and collection systems and to provide for future changes and roll out of services, the provision of services relating to the receipt, transfer, processing, brokerage … [truncated]",
      "buyer": "arc21",
      "status": "active",
      "category": "services",
      "procurement_method": "open",
      "cpv_code": null,
      "cpv_description": null,
      "value": 14913274,
      "currency": "GBP",
      "published_date": "2026-11-20",
      "deadline_date": "2026-12-21",
      "contract_start": null,
      "contract_end": null,
      "suppliers": [],
      "award_value": null,
      "award_date": null,
      "fetched_at": "2026-11-23T23:51:46.174094Z"
    }
  ],
  "next_cursor": null
}
```

What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with `… [truncated]`.

- Shortened: `description`: 5,828 characters, the first 239 shown.

A run does not always end `ok`. [Results and statuses](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the UK public contracts scrapers](https://docs.enrichednow.com/results-and-statuses.md#uk-public-contracts) are in their own section there.
