Scraper APIUK public contracts
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.
- 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; what a run costs is in Usage and units.
Inputs
The fields of input. A field that is not listed here is refused.
| Field | Type | Description |
|---|---|---|
source | "find_a_tender" | "contracts_finder" | find_a_tender (above the UK thresholds) or contracts_finder (below them).Default: "find_a_tender". |
published_from | string | Notices published on or after this day, YYYY-MM-DD. Default: seven days back. |
published_to | string | Notices published on or before this day, YYYY-MM-DD. Default: today. |
stage | "any" | "planning" | "tender" | "award" | "contract" | Only notices of this stage, kept from the page read.Default: "any". |
keyword | string | 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 | Notices read a page, at most 100.Limit: 1 to 100. Default: 50. |
cursor | string | 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
# Start a run and wait up to 60 seconds for it to finish
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}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("ukcontracts.notices", {
"source": "find_a_tender",
"published_from": "2026-11-15",
"published_to": "2026-11-20",
"max_results": 4,
})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("ukcontracts.notices", {
source: "find_a_tender",
published_from: "2026-11-15",
published_to: "2026-11-20",
max_results: 4,
});
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "ukcontracts.notices", map[string]any{"source": "find_a_tender", "published_from": "2026-11-15", "published_to": "2026-11-20", "max_results": 4})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("ukcontracts.notices", Map.of("source", "find_a_tender", "published_from", "2026-11-15", "published_to", "2026-11-20", "max_results", 4));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run ukcontracts.notices --input source=find_a_tender --input published_from=2026-11-15 --input published_to=2026-11-20 --input max_results=4Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.
The body on its own:
{
"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.
{
"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.
{
"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 lists every status and the reasons every scraper shares; the reasons of the UK public contracts scrapers are in their own section there.