UK public contract search (Contracts Finder)
UK public-sector contract notices from Contracts Finder by keyword, stage (planning, tender, award) and publication dates, newest first. Each notice has notice id, stage, title, description, status, reference, category, procurement method, CPV codes, value, tender deadline, contract dates, SME and VCSE suitability, delivery regions, buyer and address, and awards with suppliers and values. Pass next_cursor back as cursor; null on the last page. Filter by contract value (value_min, value_max, GBP), CPV codes and delivery region. When any of those is given, notices come most recent and relevant first, each also carries value_low, value_high and postcode (ocid, release_id, category, procurement method and buyer address are null), the response adds total, and paging reaches the first 500 matches.
Every response includes credits_used: the credits this call cost.
Parameters
| name | type | description |
|---|---|---|
q | string | Keyword. Example: software |
stage | string | Comma-separated stages: planning, tender, award. Example: award |
from | string | Published on or after (YYYY-MM-DD). |
to | string | Published on or before (YYYY-MM-DD). |
limit | integer | Notices per page, 1-100. Example: 20 |
cursor | string | Paging cursor: pass next_cursor from the previous page; it is null on the last page. |
value_min | number | Minimum contract value in GBP. |
value_max | number | Maximum contract value in GBP. |
cpv | string | Comma-separated 8-digit CPV codes (e.g. 72000000 for IT services); a division code also matches its sub-codes. |
region | string | Comma-separated delivery regions: North East, North West, Yorkshire and The Humber, East Midlands, West Midlands, East of England, London, South East, South West, Scotland, Wales, Northern Ireland. |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/contracts-finder/v1/search?q=software" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/contracts-finder/v1/search",
params={"q": "software"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/contracts-finder/v1/search");
url.searchParams.set("q", "software");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).