BidCount / API
The BidCount API
Open tenders, tenders coming soon, buyers and their bid history as JSON. Part of Pro: make a key in Settings. The machine-readable description is openapi.json (OpenAPI 3.1).
Quick start
Make a key in Settings (Pro accounts only), then send it as Authorization: Bearer YOUR_KEY or in an X-API-Key header. Never put a key in a web address. Paths are relative to https://bidcount.co.uk; /v1 lists every resource.
curl https://bidcount.co.uk/v1/tenders?sector=construction&limit=5 \ -H "Authorization: Bearer YOUR_KEY"
const res = await fetch("https://bidcount.co.uk/v1/tenders?sector=construction&limit=5", {
headers: { Authorization: "Bearer " + process.env.BIDCOUNT_KEY },
});
const { data, meta } = await res.json();
console.log(meta.as_of, data.length);
import os, requests
r = requests.get(
"https://bidcount.co.uk/v1/tenders",
params={"sector": "construction", "limit": 5},
headers={"Authorization": "Bearer " + os.environ["BIDCOUNT_KEY"]},
)
body = r.json()
print(body["meta"]["as_of"], len(body["data"]))
Resources
| Path | What it is |
|---|---|
/v1/tenders, /v1/tenders/{id} | Open tenders, with filters, sorting and paging |
/v1/coming-soon, /v1/coming-soon/{id} | Planned procurement notices and market-engagement requests. Dates are the buyer's own estimate |
/v1/buyers, /v1/buyers/{id} | A buyer's usual bids, rating, sample size and counts |
/v1/sectors, /v1/regions and /{id} | Counts, rating mix and headline lists for a sector or region |
/v1/rankings | Buyers, sectors and regions by usual bids |
/v1/search?q= | The site's own search over tenders, coming-soon notices and buyers |
/v1/changes | Tenders that first appeared in the latest daily build; with since=YYYY-MM-DD, every open tender first seen after that day (first-seen days start on the day tracking began; the earliest is in the note in meta), newest first. The date is when BidCount first saw it. Each row carries value, sector and region, and you can narrow with sector, region and value_min (ids, as for /v1/tenders) |
/v1/status, /v1/coverage | How fresh the data is, and what is and is not read |
/v1/contracts, /v1/frameworks, /v1/incumbents, /v1/buyer-intel | Pro data: who holds each ending contract, who is on each framework, who a buyer awards to. Details |
Filters that name a place or a trade take several values: sector=a,b, region=c,d, cpv=909,77 (separated by commas, any of them; at most 6, 12 and 8). Different filters all have to pass.
Every response says when, from where, and with what warnings
A success is {"data", "meta", "links"}. meta always has as_of (when the data was built; the site is rebuilt once a day), sources (the services read), licence (Open Government Licence v3.0, with the attribution line to use) and caveats. Please keep the caveats when you show the numbers. Lists add total, limit and count.
Rating names and the website's labels
The API returns the schema names. The website words them differently; the labels are for display only and are never returned as values.
| API value | Website label | Meaning |
|---|---|---|
thin | few bidders | The buyer's earlier open tenders drew a median of 4 bids or fewer |
typical | a typical contest | A median of more than 4 and fewer than 8 |
contested | crowded | A median of 8 or more |
unrated | not enough history to rate | Too few earlier tenders with bid counts |
The rating describes a buyer's history. It is not a forecast for any one tender, and BidCount does not publish a chance of winning.
Paging
Lists return up to limit rows (default 50, at most 200). When there is another page, links.next (and a Link: rel="next" header) holds a cursor; follow it as given. A cursor only works with the parameters it was issued for. The data is rebuilt daily, so a cursor from before a rebuild still works but may skip or repeat rows (meta.cursor_from_older_build).
Caching
Every success of the public routes has an ETag. Send it back as If-None-Match and an unchanged answer is a 304 with no body. Responses are cacheable for an hour at the edge. Unknown query parameters are refused, so a URL has a known shape. Each API key has its own quota (Pro: 120 requests a minute and 20,000 a day); every keyed answer carries X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset (seconds until the minute resets) and X-RateLimit-Daily-Remaining, and past a quota the answer is 429 with Retry-After. Keyed answers of the public routes are not shared-cached (private, no-cache), but ETag and If-None-Match still work. The Pro data routes are never cached (private, no-store): they send no ETag and no Link header, and page with links.next only. They send no CORS headers either, so call them from your server or assistant, never from a web page, which would put the key in the page. Get and manage your own keys at /settings (sign in by emailed link; create, revoke and delete; rotate by making a new key, switching over and revoking the old one).
Errors
Errors are application/problem+json (RFC 9457) with type, title, status, detail and instance.
invalid-parameter (400)
An unknown or malformed parameter, cursor or limit. errors lists each one.
not-found (404)
No such path or id. A tender that has closed since the last build is not found.
method-not-allowed (405)
Use a method the path takes (the Allow header lists them); the public data routes take GET only.
paid-tier (402)
The account behind the key is not on Pro. Every key call needs Pro; a key stops working with 402 and the code pro_required when the plan ends, and works again when Pro does. Subscribe in Settings.
account-required (403)
The key was issued by hand and belongs to no account. Make a key in Settings; otherwise write to hello@bidcount.co.uk and we will attach one to your account.
conflict (409)
The request clashes with what is there: a limit reached, the radar already set up, nothing to change. detail says which.
not-acceptable (406)
The Accept header excludes JSON.
rate-limited (429)
Slow down; wait for Retry-After seconds.
data-unavailable (503)
The data could not be read just now. Try again after Retry-After.
Saved searches (watches)
If you are the person who finds the tenders for a business, save your patch once and ask what is new each week. A watch is a name and filters, with lists where a trade spans several: for example sectors cleaning-waste-and-environment and grounds-and-agricultural, regions south-west and wales, CPV prefixes 909 and 77, words roof, value_min/value_max, sme_or_vcse, and exclude_cpv_prefixes to leave a kind of work out. Lists mean any of; different filters must all pass (sectors AND regions AND CPV prefixes AND words AND value), so a CPV prefix narrows a watch and never widens it. Words (q, up to 200 characters including OR and -word) match the title or the buyer name and support OR and exclusions such as roof OR gutter -asbestos. A value floor leaves out ceilings and unstated values, as /v1/tenders?value_min= does. Watches need an API key, are shared by all keys of one owner (an account's keys, or the admin's), store only these filters, and at most 10 are kept.
| Call | What it does |
|---|---|
POST /v1/watches (JSON body) | Save a watch; answers 201 with its id and links |
GET /v1/watches, GET /v1/watches/{id}, DELETE /v1/watches/{id} | List, read, delete (delete removes the saved filters only). Every watch carries a plain-English summary of its filters |
PATCH /v1/watches/{id} (JSON body) | Change a watch: send only the fields to change; null removes one and a list replaces the old list |
GET /v1/watches/{id}/new?since=YYYY-MM-DD | Open tenders first seen after that day (default the last 7 days; add until=YYYY-MM-DD for one week) that pass the watch, newest first, with first_seen. First-seen days exist only from the day tracking began; tenders already open then have none and are in /open, and the note in meta says how many |
PUT /v1/watches/{id}/marks ({"tender_id": "...", "mark": "seen"} or {"marks": [...]}, up to 50), GET the same path | Remember what you did with a tender: seen, ignored, pursuing or clear. Rows carry mark; GET lists each mark with its tender's title, buyer, close date and whether it is still open (a mark on a closed tender is dropped the next time you mark); hide_seen=true on /new and /open leaves out seen and ignored ones, so each week shows only what is new to you |
GET /v1/watches/{id}/open | Everything open that passes the watch, soonest closing first. Rows add closes_in_days, first_seen when known and, when the watch has words, matched_words (why it matched) |
Both lists are paged with limit and a cursor like every other list, and take closes_to=YYYY-MM-DD to keep only tenders closing by that day. Answers are private to the key and never cached. Assistants over MCP get the same through save_watch, update_watch, list_watches, watch_news and delete_watch. BidCount sends nothing on its own: it does not e-mail or call a webhook, so ask for /new on a schedule you run (a weekly curl is enough).
Account, radar and webhooks
Everything a person does on their account page can be done by their own software or assistant, with a key made on their own account at /settings (a key issued by hand belongs to no account and gets 403). Calls are JSON, private to the key and never cached; each is also an MCP tool of the same name, and the OpenAPI file lists every one with its inputs. Making and revoking keys and erasing the account stay with the signed-in page: a key cannot mint keys or delete the account it belongs to.
| Call | What it does |
|---|---|
GET and PATCH /v1/account | Read or change the business profile (sectors and regions as ids or names, accreditations, value band, turnover, keywords), the digest email (digest off, daily or weekly, and digest_day for the weekly one). The digest is sent at one morning run on weekdays; a time of day cannot be chosen. |
PUT /v1/account/votes/{tender_id} | Bid, pass or know a tender (or null to clear). Tenders voted bid are reminded in the digest in their last week. |
GET /v1/radar, POST /v1/radar, DELETE /v1/radar?confirm=true | The paid tier's radar: read it, set it up, delete it. Setting it up adds two starter rules (new tenders that fit, contracts ending soon), listed in the answer; change or switch them off with PATCH. A free account gets 402. |
PUT /v1/radar/profile, PUT /v1/radar/config | What the radar looks for (weighted procurement codes, buyers and words, regions, exclusions, value range) and how it ranks (feature weights, alert threshold, and weekly_budget, the most alerts a week it aims for: 3 by default, up to 10 on the paid tier). |
POST /v1/radar/rules, PATCH /v1/radar/rules/{rule_id} | Standing rules: a trigger (new match, contract ending, buyer watch, competitor win), a threshold, a cadence (immediate, daily, weekly) and a channel (email, feed or webhook). active: false switches a rule off. |
GET /v1/radar/alerts, POST /v1/radar/alerts/ack, POST /v1/radar/feedback | Take the waiting alerts and acknowledge them; tell the radar what a tender turned out to be. |
POST /v1/feedback (MCP send_feedback) | Tell us something is wrong, missing or could be better: a topic (wrong_data, missing_tender, bug, idea, other), a message and, when there is one, the tender_id. It is read by a person and by an assistant that triages it; there is no reply. 20 a day per key; no personal data. |
/v1/webhooks (GET, POST), /v1/webhooks/{webhook_id} (GET, PATCH, DELETE), .../secret, .../test | Register up to 5 https endpoints, see how deliveries are going, change, switch off or on, rotate the secret, send a test event. |
Webhooks
A radar rule whose channel is webhook delivers its alerts as radar.alert events to every active webhook of the account (to send different rules to different places, route on data.rule.id in your receiver). The radar runs once a day, after the daily data build in the early morning UK time, so immediate means unbatched, not instant. Each event is a POST of {"id", "type", "created", "data"} as JSON; data.items holds up to 25 alerts and more counts the rest. Items carry what a CRM record needs (tender_id, title, buyer, closes, value, cpv, sector, region, procedure, first_seen, url); those fields are left out for a tender no longer on the public list, and GET /v1/tenders/{tender_id} has the rest. test_webhook with event: "radar.alert" sends a sample ("sample": true) so a no-code tool can learn the fields.
{
"id": "6f1c2e0e-3b7a-4a55-9d2e-2c8f0f6a9b11",
"type": "radar.alert",
"created": "2026-10-17T06:31:02.512Z",
"data": {
"rule": {
"id": "f5504af3-b152-492d-b18f-5b2db258ee9f",
"name": "New tenders that fit"
},
"items": [
{
"tender_id": "ocds-h6vhtk-078790",
"trigger": "new_match",
"score": 71,
"url": "https://bidcount.co.uk/?t=ocds-h6vhtk-078790",
"title": "Re-roofing of Sketty Park community centre",
"buyer": "Swansea Council",
"closes": "2026-11-13",
"value": 180000,
"cpv": "45261320",
"sector": "Construction",
"region": "Wales",
"procedure": "open",
"first_seen": "2026-10-15"
}
],
"more": 0
}
}
Endpoints must be https on the standard port with a public host name (a secret token in the query string is fine); BidCount does not follow redirects and never connects to a private or internal address. The signing secret (whsec_...) is shown once, when the webhook is made or its secret rotated; rotating makes the old secret invalid at once.
Check each event before trusting it: BidCount-Signature: t=<unix seconds>,v1=<hex> is an HMAC-SHA256, keyed with the secret, of <t>.<the raw body>. Compare in constant time and refuse a t more than five minutes old. A tool that cannot verify signatures (Zapier's Catch Hook) is protected only by the secrecy of its URL. BidCount-Delivery is the event id and is the same on every retry, so ignore one you have already handled.
// Node
const mac = crypto.createHmac("sha256", secret).update(t + "." + rawBody).digest("hex");
const ok = crypto.timingSafeEqual(Buffer.from(mac), Buffer.from(v1)) && Math.abs(Date.now() / 1000 - t) < 300;
# Python
mac = hmac.new(secret.encode(), f"{t}.".encode() + raw_body, hashlib.sha256).hexdigest()
ok = hmac.compare_digest(mac, v1) and abs(time.time() - int(t)) < 300
Answer 2xx within five seconds. A network failure, 408, 429 or 5xx is tried again (three attempts in all); other answers are not. After ten deliveries in a row fail, or on a 410, the webhook is switched off and says why in stopped; switch it back on with PATCH {"active": true}. Test sends never count toward that. Alerts no endpoint received stay waiting and are tried again at the next run; GET /v1/radar/alerts lists them.
Stable ids: /v1/opportunities/{opportunity_id}
A tender's id is the first id BidCount ever served for it and does not change, even if the same tender later appears on a second service or its surviving record changes. GET /v1/opportunities/{opportunity_id} (any valid key; also the MCP tool get_opportunity) takes any id a tender has had, including after it closed, and answers with the permanent id, state (open or closed), first_seen, last_seen, closed_at, a rev that rises when the title, buyer, value, closing day, code, sector, region or procedure changes, updated (the day of that change) and every id it has had in sources. Records start on 2026-10-16; the public /v1/tenders/{id} still answers only for tenders open today.
Plain-English questions: /ask
GET /ask?query=... (or POST with {"query": "..."}, 300 characters at most) answers from the same public data with a cited, dated sentence worded from a fixed template, so the figures are exact. Add mode=generate to have a language model word the answer instead. That is a paid-tier feature: a key on the pro tier, 20 a day by default. Any other key gets the template answer and llm_status: "not_allowed"; past the daily 20 you still get the template answer, with llm_status: "over_allowance". The model sees only the question and a few public records, its answer is checked against those records, and the template answer stands in if the check fails. Questions about a buyer, a short ranking, a search or the coming-soon list can be worded by the model, each with the exact total beside the first few rows; market-wide counts always stay on the template. The privacy notice names the provider.
Pro data: contracts, frameworks, incumbents, buyers
These are the details a signed-in visitor sees on the website: who holds a contract that is ending, who is on a framework, who a buyer awards to. Every answer is private to your key and never cached, and every field is listed in openapi.json.
| Path | What it is |
|---|---|
/v1/contracts, /v1/contracts/{id} | Awarded contracts that end in the next twelve months, with incumbents (who holds each), value, end date, whether it may run on, the term, and how many bids the last competition drew. Rows come from award notices and from councils' own contracts registers; source says which. Filters: q, holder, sector, region, buyer, ends_from, ends_to, value_min, value_max, source, sort |
/v1/frameworks, /v1/frameworks/{id} | Framework agreements in force, with the suppliers on each. Same filters as contracts without the value range and source |
/v1/incumbents, /v1/incumbents/{tender_id} | The supplier BidCount names as the probable holder of the contract an open tender replaces. A match on title and buyer, not a statement from the buyer. 404 when none is named |
/v1/suppliers/{company_number} | The public contracts a limited company has won, newest first, from award notices and councils' own registers. Found by Companies House number only: there is no search by name, and a sole trader (who has no number) is not in it. To find who holds what by name, use holder on /v1/contracts |
/v1/buyer-intel, /v1/buyer-intel/{id} | How a buyer awards: usual value and term, usual bids, who wins most, the share of its procurements that drew a single bid, were direct awards or went to small and medium firms, and its procurement mailbox. List filter: buyer_q |
curl "https://bidcount.co.uk/v1/contracts?sector=construction®ion=south-east&ends_to=2027-03-31&sort=-value&limit=3" \ -H "Authorization: Bearer YOUR_KEY"
A contract's end date is the one on its award notice. Contracts are often extended or re-tendered early or late, so use it to know when to look, not to promise a date. incumbents is empty when the source names no organisation. The names are the ones the website shows, where a supplier is named only when the name looks like an organisation, and a sentence from a notice in place of a name is dropped. Search by name (holder) reads those same names. The same data is on the MCP server as six tools (list_ending_contracts, list_framework_agreements, get_probable_incumbent, list_buyer_profiles, get_buyer_profile, get_company_contracts), with the same parameter names; the public tools still never return a supplier. Contracts, frameworks and buyers link to each other: a contract's links.buyer_intel opens its buyer's profile. A key whose account is not on Pro gets 402 on these paths.
What is not in the API
Each notice's full text, requirements and links are open on the website, but this API returns only the fields listed in openapi.json. Payments data is not offered here.
Coverage
BidCount reads some services and not others, and notice volumes on the main service fell sharply in March 2025. /v1/coverage states what is read today. Do not infer that a tender missing from the API does not exist.
Versioning
The version is in the path. This is a preview: until the label is dropped, shapes may change with 30 days' notice. Adding fields, endpoints, optional parameters or enum values is not a breaking change, so clients must ignore fields and values they do not know.
Licence and attribution
Contains public sector information licensed under the Open Government Licence v3.0. The ratings, benchmarks and other derived figures are BidCount analysis; please say so, and keep the caveats. Terms of use for the API are not yet published.