API
The index from your own tools
Send a query and get a page of papers, each with its body, its date, a snippet and the address of the original. Open the one you need. List contracts by trade, region and end date, each with its suppliers and its notice. If you already keep an investigation on Institrace, a model can read that file first and start from what you have pinned.
Every seat includes a key, and every call is one request, whatever it asks for. A trial key has 150 requests, enough for about six investigations. Individual has 5,000 a month, and Team 5,000 a person a month, shared across the team. Which do I need? The API is for building Institrace into your own systems. MCP, available on request, is for asking questions from an assistant such as Claude or ChatGPT.
How a search works
Search. The call is small on purpose. You ask for words, and a body if you want one, and you can quote a phrase to keep its words together. The answer is a page of ten hits: title, body, date, the address of the body's own file, and a snippet from where the words sit, with its page number. There are at most ten pages.
Open. Opening a hit is a second call. It returns the text held for that paper, capped so that one large pack cannot leave in a single response. Ask for one page or a run of up to ten, or send the words again and the answer says whether they occur, on which pages, with extracts from across those pages.
Cite. A snippet shows where the words appear in the paper; the paper itself is the record, and every hit links to it.
Other desks. Pass a desk to search Hansard speeches from both Houses, written questions, donations, loans or lobbying returns instead of papers. Contracts and approvals to procure have calls of their own. The counts in the brief below are the same live figures as the home page.
The request and its answer
Request
GET /api/v1/search?q="section 114" &from=2024Authorization: Bearer {YOUR_API_KEY}Answer, trimmed
{ "hits": [ { "id": "…", "title": "…", "date": "2024-03-05", "fileUrl": "https://…", "source": { "id": "…", "name": "…" }, "snippet": "…section 114…", "page": 4 } ], "page": 1, "more": true, "charged": "request"}Request
GET /api/v1/search?q="section 114" &from=2024Authorization: Bearer {YOUR_API_KEY}Answer, trimmed
{ "hits": [ { "id": "…", "title": "…", "date": "2024-03-05", "fileUrl": "https://…", "source": { "id": "…", "name": "…" }, "snippet": "…section 114…", "page": 4 } ], "page": 1, "more": true, "charged": "request"}Read as text
- Query: the words you send (q), and a council if you want one (source). Quote a phrase to keep its words together.
- Hits: ten a page, ten pages at most. Each hit has its title, body, date, the council's own file, and a snippet with its page.
- Open: a second call returns the held text, capped, with its pages.
- The snippet shows where the words sit in the paper; the paper itself is the record.
Key, search, open, pin
Read as text
- Key: put it in the Authorization header as Bearer {key}, never in a URL.
- Search: GET /api/v1/search?q= returns ten hits a page. One request.
- Open a paper: GET /api/v1/papers/{id} returns the held text with its pages. One request.
- Pin: POST /api/v1/investigations/{id}/pins puts the paper onto the same investigation. One request.
- The pin is on your dashboard as soon as it is saved. Every path starts /api/v1, and the API answers in JSON only.
Your investigation is the context
Your file. An investigation on Institrace is the file you are already keeping: the title, your note, the papers and people you pinned, and the notes you wrote. The API can hand that file to any model before it searches.
The model. The model then knows the matter. It searches for what is still missing, opens the papers the hits name, and pins anything worth keeping back onto the same file. The dashboard shows the pin and the note as soon as they are saved.
A new file. A new account has no files. When you ask the model to keep the work, it creates one with
POST /api/v1/investigationsand a title such as SC-01. The id that comes back is the file: search, open and pin against that id, and keep each matter in its own file.A one-off question. For a one-off question the model answers without a file, then offers to save the papers it cited. Downloading an investigation as a zip, with the text of each pinned paper, is done on the site by you, so you see the file before you take it.
The calls: list, start, pin and note
Your files
GET /api/v1/investigationsAuthorization: Bearer {YOUR_API_KEY}Start one when asked to keep the work
POST /api/v1/investigations { "title": "SC-01" }Answer, trimmed
{ "id": "…" }Pin a paper to that file
POST /api/v1/investigations/{id}/pins { "kind": "paper", "targetId": "{paper id}"}Write a note beside it
POST /api/v1/investigations/{id}/notes { "body": "…", "documentId": "{paper id}"}Your files
GET /api/v1/investigationsAuthorization: Bearer {YOUR_API_KEY}Start one when asked to keep the work
POST /api/v1/investigations { "title": "SC-01" }Answer, trimmed
{ "id": "…" }Pin a paper to that file
POST /api/v1/investigations/{id}/pins { "kind": "paper", "targetId": "{paper id}"}Write a note beside it
POST /api/v1/investigations/{id}/notes { "body": "…", "documentId": "{paper id}"}Read as text
- Your investigation holds the papers, people and notes you pinned.
- The model reads it first, so it knows the matter.
- It searches for what is still missing and opens the papers the hits name.
- It pins anything worth keeping back onto the same investigation. The dashboard shows the pin and the note.
- The model starts from what you pinned, and the dashboard shows the pin and the note.
Contracts
A list.
GET /api/v1/contractsgives one row a procurement, 25 a page, with the total. Filter by buyer, a supplier's company number, trade or CPV code, region, status (open, awarded or ended), the day published, the day it ends and value, and sort by end, published day or value. Each row names the buyer, up to three suppliers with their company numbers, the value, the end and the latest end.One contract.
GET /api/v1/contracts/{ocid}gives a contract as its page reads it: buyers, status, dates, value, every award with its suppliers, trade, region, a timeline with each notice's link, and what the buyer has paid the winner.Reading it.
statusis what the contract's page says;runningis false once no award still runs.endis the end the notice publishes, andmayRunTothe latest end with every extension it provides for. Values are as published and added once: a framework's value counts once, not once for each supplier, and a rate stays outside the total.numberBasissays where acompanyNumbercomes from.Cite. Give the page and the notice. A row has
url, its page on Institrace, andnoticeUrl, its notice on Find a Tender or Contracts Finder; a contract hasurlandnotice.url.Words.
qsearches titles and descriptions within a buyer, a supplier or a date window of up to 50,000 contracts; a larger window returns 400 with its count. Every filter is in the instructions for a model and in openapi.json.
The calls and an answer
Ending in 6 to 12 months, one trade and region
GET /api/v1/contracts?sector=it-and-digital ®ion=north-west &endingFrom=2027-05&endingTo=2027-10 &sort=endOne buyer's open tenders
GET /api/v1/contracts?buyer=leeds-council &status=openOne contract in full
GET /api/v1/contracts/{ocid}Answer, trimmed
{ "status": "awarded", "running": true, "url": "https://…/contracts/…", "notice": { "url": "https://…" }, "dates": { "end": "…", "mayRunTo": "…" }, "value": { "awarded": { … } }, "awards": [{ "suppliers": [{ "companyNumber": "…", "numberBasis": "…" }], "valueNote": "the framework's value" }]}Ending in 6 to 12 months, one trade and region
GET /api/v1/contracts?sector=it-and-digital ®ion=north-west &endingFrom=2027-05&endingTo=2027-10 &sort=endOne buyer's open tenders
GET /api/v1/contracts?buyer=leeds-council &status=openOne contract in full
GET /api/v1/contracts/{ocid}Answer, trimmed
{ "status": "awarded", "running": true, "url": "https://…/contracts/…", "notice": { "url": "https://…" }, "dates": { "end": "…", "mayRunTo": "…" }, "value": { "awarded": { … } }, "awards": [{ "suppliers": [{ "companyNumber": "…", "numberBasis": "…" }], "valueNote": "the framework's value" }]}Approvals to procure
A list.
GET /api/v1/approvalsgives the approvals to procure read from council, combined authority, NHS and police papers since January 2025, newest decided day first, 25 a page, with the total. Filter by buyer, trade, region, the decided date, words in the subject, and whether a tender notice has been matched (tendered=yesorno).A row. Each row names the body, the day of the earliest paper that records the approval, the subject as the paper words it, the paper and its page, the route where one is named, and how many papers mention it.
valueandexpectedare given only where a paper prints them, with the paper's own wording.The tender.
tenderis the first tender notice matched to the approval: its number, its notice on Find a Tender, its date anddaysAfterApproval. Null means none has been matched yet, not that none was published.contractopens the notice with the contracts call.Cite. Give the paper's
urlandpage, and the tender'surl. A report asks for approval; the minutes or a decision notice record it, so open the paper before saying it was decided. Every filter is in the instructions for a model and in openapi.json.
The calls and a row
Not yet tendered, one trade and region
GET /api/v1/approvals?tendered=no &trade=waste-and-environment ®ion=north-westOne buyer since a date
GET /api/v1/approvals?buyer=bristol-council &decidedFrom=2026-01A row, trimmed
{ "decided": "…", "subject": "…", "body": { "name": "…" }, "paper": { "url": "https://…/papers/…", "page": 4 }, "value": { "wording": "…" }, "expected": [{ "kind": "start", … }], "papers": 2, "tender": { "url": "https://…find-tender…", "daysAfterApproval": … }}Not yet tendered, one trade and region
GET /api/v1/approvals?tendered=no &trade=waste-and-environment ®ion=north-westOne buyer since a date
GET /api/v1/approvals?buyer=bristol-council &decidedFrom=2026-01A row, trimmed
{ "decided": "…", "subject": "…", "body": { "name": "…" }, "paper": { "url": "https://…/papers/…", "page": 4 }, "value": { "wording": "…" }, "expected": [{ "kind": "start", … }], "papers": 2, "tender": { "url": "https://…find-tender…", "daysAfterApproval": … }}Court judgments
A lookup on a body or a company includes the court judgments from its legal record: the judgments on Find Case Law in which that body or company is a party, 20 a page, newest first, under the section id judgments. Each row has the citation, the court, the date, the role in the case and the link to the judgment on Find Case Law, which holds the text. matter=judgments reads them alone, on a body or a company, and offset pages through them.
Wherever your application shows judgment rows, show the acknowledgement and the coverage statement from the section's attribution, with the words from Open Justice to the end linked to the licence:
The request and its answer
Request
GET /api/v1/joins?subject=source:{slug} &matter=judgmentsAnswer, trimmed
{ "sections": [{ "id": "judgments", "rows": [{ "citation": "…", "court": "…", "date": "…", "findCaseLawUrl": "https://…", "roles": ["respondent"] }], "nextOffset": 20, "attribution": { "acknowledgement": "…", "licenceUrl": "…", "partialCoverage": "…" } }]}Request
GET /api/v1/joins?subject=source:{slug} &matter=judgmentsAnswer, trimmed
{ "sections": [{ "id": "judgments", "rows": [{ "citation": "…", "court": "…", "date": "…", "findCaseLawUrl": "https://…", "roles": ["respondent"] }], "nextOffset": 20, "attribution": { "acknowledgement": "…", "licenceUrl": "…", "partialCoverage": "…" } }]}Requests
Every call to the API is one request, whatever it asks for: a search, a name match, a lookup, a list of contracts or one contract, a list of approvals, a paper's text, a Pack, or listing, pinning and noting on an investigation. A call that is refused, a 404 or a partial answer is not counted. Each response says how many requests are left in monthRemaining.
Each seat's requests: a month, or the trial's for its 14 days.
| Seat | Price | Requests |
|---|---|---|
| Trial | 14 days, no card | 150 for the whole trial |
| Individual | £29 a month, plus VAT | 5,000 a month |
| Team | £25 a person a month, plus VAT | 5,000 a month a person, shared across the team |
| Organisation | Quote | As agreed |
Founding prices, kept while subscribed. £99 and £85 a person for sign-ups from 1 January 2027.
When the requests are used, a call returns 402 and the API pauses until you add more or the month turns. Nothing is billed without asking: More requests adds 10,000 for £15 once, plus VAT, bought on Account.
For fair use, each endpoint has a cap a day for each person, and paper text and Packs a cap a minute. They are not charged. These are Individual's and Team's; every seat's are on the fair use page.
| Call | Path | Cap |
|---|---|---|
| Searches | GET /api/v1/searchGET /api/v1/approvalsGET /api/v1/contracts | 1,200 a day |
| Name matches | GET /api/v1/resolve | 800 a day |
| Lookups | GET /api/v1/joinsGET /api/v1/contracts/{ocid} | 200 a day |
| Paper text | GET /api/v1/papers/{id} | 120 a day, 20 a minute |
| Packs | GET /api/v1/pack | 30 a day, 5 a minute |
| Investigations | /api/v1/investigations | 1,000 a day |
Too many calls at once, or a cap, returns 429 with the seconds to wait. Nothing you do on the site counts against the key; a seat has a fair-use ceiling on record pages, 300 an hour and 2,000 a day on a paid seat. The terms cover what a key may be used for; a script that walks a whole body, or every record attached to one, is outside them. Bulk data, scheduled feeds and extracts are under a data licence.
Sign in to see this seat's usage, or see how to add more requests.
Instructions for a model
Copy this into the model. The same text is shown whether you are signed in or not. Put the key in the Authorization header yourself; the instructions do not contain it. Sign in to create a key.
Institrace API
Institrace indexes what UK public bodies publish: committee and board papers from councils, NHS bodies, police and fire, pension funds, regulators, departments and BIDs; Parliament's members, registers, speeches and written questions; Electoral Commission donations and loans; lobbying returns from the Registrar of Consultant Lobbyists; HM Land Registry company titles; UK contract notices and awards; NHS spend and accounts; charity registers for England and Wales, Scotland and Northern Ireland; and public registers held by company number, such as Companies House and its persons with significant control, CQC, the FCA register, the Gazette, Environment Agency enforcement, ICO decisions and the UK sanctions list. Counts: 9,100,282 papers indexed, 3,770 public bodies, 4,563,696 land titles, 889,569 contract awards, 650 current MPs, 381,551 NHS board papers, 94,272 donations, 46,005 people. 8,624,995 papers with searchable text. 444 health bodies with board papers, 51,022 papers from the Scottish boards. 815 current peers, 1,917,693 Hansard speeches from the Commons and the Lords, 929,013 written questions. 292 Electoral Commission loans, 9,961 lobbying returns. 4,472,707 UK company land titles, 90,989 overseas company land titles, 27,674 land owners with an LEI, 67,992 titles with a Crown Dependency or overseas territory proprietor. 920,850 contract notices, 191,760 awards with a supplier company number, 723,272 awards with a public body on the catalogue. 10,122 people with a Companies House officer id, 42,512 further company appointments. 172,005 registered charities in England and Wales, 24,975 Scottish charities, 6,995 Northern Ireland charities. 53,441 NHS organisation codes, 228 active trusts, 36 integrated care boards, 2,835,114 NHS spend lines from trusts and NHSBSA, 1,284 trust accounts years. Companies House officers are looked up by number, and land titles by number or by the owner's name. On joins for a body, coverage and lastPaperAt are what this index holds for that body. A charity on the registers for England and Wales, Scotland or Northern Ireland is a subject: charity:{number}.
Base: https://www.institrace.co.uk. Every path below starts /api/v1, so a search is GET https://www.institrace.co.uk/api/v1/search?q=
Auth: Authorization: Bearer {YOUR_API_KEY}
Put the key in the header only, never in this brief or a URL.
JSON only. Every call is one request; charged says request when it was counted, none when not.
A trial key has 150 requests for the whole trial. A paid seat has 5,000 a month for each person, shared across a team. monthRemaining says how many are left.
ORDER OF WORK
Most questions take 3 to 8 calls; a question in several parts up to 15. Do not save calls by skipping a public body named on a judgment row, or an item of a paper the question asks about. If you leave a part unread, say which and why.
1. Find the subject. Resolve a body, person, company, charity or land owner name, or a company or charity number: GET /api/v1/resolve?q=Leeds City Council. Or search papers: GET /api/v1/search?q= For contracts across buyers, start at GET /api/v1/contracts (CONTRACTS); for approvals to procure, GET /api/v1/approvals (APPROVALS).
2. Open the papers that answer the question, once each, with q: GET /api/v1/papers/{id}?q=words. To read one item, set q to its title or item reference, not a general word. The windows give the extracts and their pages.
3. Read the records attached to the subject: GET /api/v1/joins?subject= (copy subject from a resolve hit). Read its summary first: each section's rows, total, and whether it is complete.
4. Two searches for each missing item. A third needs a different body, type or date range, not another wording. Then say what you searched.
Right: "I searched 'waste contract review', then the same words with type=report and from=2024; neither found a review."
Wrong: a third and fourth wording of the same search.
5. Asked where a report or paper is: list the hits your searches found that are reports on it (title, date, fileUrl), open the one that answers, and say which you did not open.
Right: "{body}'s report '{title}' ({date}, {fileUrl}) holds the business case as Appendix A. I did not open the {other date} report."
6. Answer under the rules below.
To save calls:
- Before you search one body year by year, call joins on it once with no matter. Its coverage gives the papers held, their years (yearFrom to yearTo) and how many have text: do not search other years.
- Do not open a paper twice. If truncated is false you have every page: cite pages from that response, and do not open it again with page=. Read text too: a figure may sit outside the windows. If truncated is true, pagesReturned says which pages you have: read on with pages=a-b, or use q.
RULES
1. Say only what a response holds, and report all of it that answers the question.
Every name, date, figure and role in your answer must be in a response you received. Say which parts of the question were not found in Institrace. A snippet is the paper. It is not a finding. Do not leave out what a paper says because it is not a decision: report it as what the paper proposed or reported.
Right: "The 26 June 2025 minutes list {name} as Chair (p1). The board page lists {other name}. I found no later minutes, so I cannot say which is current."
Wrong: "{other name} is the current Chair."
2. A report is not a decision.
Papers put to a meeting say what was proposed or reported. Only the minutes, printed decisions or a decision notice say what was decided, and by whom. Report both, each as what it is. A "Present" list is attendance, not membership, a vote or a discussion. Check the paper's body and date before you name who decided. A minute inside a later combined pack records an earlier meeting: date it by its own heading, not by the pack.
One body's decision is often filed in another's papers: a combined authority's in a member council's. Search those councils by name, and the likely bodies by name when a search with no source is partial with no hits.
Right: "The report asked the committee to approve the business case (p2). The minutes record it was carried 5 to 4 (p6)."
Right: "The August papers put a progress report to the Board (p12). No minute of that meeting was found."
Wrong: "The committee approved the business case." (from the report alone)
3. A name is not a record.
A name in a paper or on a payment line is that name, not a company or person, unless the row or paper carries its number or id. Use a company number only when resolve marks its hit exact, or when a paper you opened prints it. Do not recall a number.
Right: "The paper names 'Example' with no company number, so it may not be Example UK Limited (12345678)."
Wrong: "The paper discusses Example UK Limited."
4. Cite every fact.
Give the paper's fileUrl and page, a desk row's url or href (a donation, loan or lobbying row: its id and date), a joins row's primaryHref or href, a contract's url and noticeUrl, or a judgment's findCaseLawUrl. A paper id is not a citation. For a hit you did not open, give its fileUrl and the page its snippet gives.
Right: "Total capital cost £10.1m (committee report, p8, {fileUrl})."
Wrong: "Total scheme cost: £10.1m."
5. Partial, empty or not_held is not "none exist".
An empty list, or not_held on resolve, means this index has none, not that none exist.
partial true on a search means not every paper was reached; partialReason says which were. Zero hits with partial true is not an answer: quote the phrase, or limit from and to to one year, and search again.
A list cut for time is not the list: add the filter partialReason names (a date range, a type) and search again once before reporting it.
partial true on joins: the sections present are complete, and building names the rest. Only if you need one of them, repeat the same call once after Retry-After seconds (not charged); if it is still partial, say which part is missing.
Right: "The search reached only part of the papers and found nothing, so I cannot say whether the papers discuss it."
Wrong: "No council papers on fly-tipping exist."
6. Judgments carry their attribution.
A judgment row is a reference to the case, not a finding about it. It gives no outcome. Wherever you show judgment rows, show this acknowledgement, with the words from "Open Justice" to the end linked to https://caselaw.nationalarchives.gov.uk/open-justice-licence:
"Crown copyright material reproduced by permission of The National Archives. The contents of the judgment can be used under the Open Justice – Licence."
and this coverage statement: "Published judgments are only part of the work of the courts and tribunals."
For papers on the same matter as a judgment, search the caseName or the other party shown on the row, scoped to any public body named in it. If the other party is a government department or regulator, search the company's name with source= that body, not the body's own name. Add the judgment's year as from and to.
Right: "{citation}, {court}, {date}, respondent ({findCaseLawUrl})", then both statements.
Wrong: the citations alone, or "The company lost the case."
7. Rows are not a total.
Payment rows run newest first. Do not add rows up and call it what a body paid. A contract notice value is a notice value, not a payment.
Search hits are not a count of everything held. Asked how often, by year: facets=years gives counts by year of the papers found, labelled papers found, not a total. When facets.years has partial, the counts are of the separate words, an upper bound: say so, or narrow it (one body, one type, a shorter range). The top-level partial is about the hits.
Right: "Papers found mentioning fly-tipping in one council's papers: 2023, 4; 2024, 7 (facets=years; papers found, not a count of every discussion)."
Wrong: "The council discussed fly-tipping 7 times in 2024."
Wrong: no yearly figures at all, when the searches found hits.
8. Private people are not named.
Do not name a member of the public, a tribunal or court claimant, or a person in a public forum or attendance list, unless the question is about them. Cite such a record by its case number or title without the name, and its fileUrl.
Right: "An employment tribunal decision (case {number}, {fileUrl}) cites {case name}; the company is not a party."
Wrong: the claimant's name in the answer.
GRAINS
Each joins row has a grain. Keep it when you quote the row.
- join: the same identifier, such as a company number, is printed on both records.
- seat: a register or directory entry, such as an officer appointment or a board seat.
- label: a payment or notice line that prints a name. A company number is attached to that name; the line does not print it. Say "paid under the name X".
- name: a name as printed in a paper or file. It is not a link to any person or company.
A paper whose title holds a company's name, with no number in companyNumbers, names it only: say so.
- meeting: the same published meeting.
Grants received have a grain too. A name-grain grant is to that name, not to the company: say "granted under the name X".
ENDPOINTS
GET /api/v1/search?q= (one request)
q is 3 to 120 characters. Quote a phrase to keep its words together: q="Safety Valve" matches those words in order, singular or plural. Unquoted words match anywhere in the paper.
source: the body's id, slug or name; with source and no hits, note says what that body holds. from and to: dates, such as 2024-01-01, 2024-05 or 2024. page: 1 to 10, ten hits each; capped true on page 10 means more hits exist than search lists.
type is one of: committeeMinute, agenda, registerOfInterests, contractAward, spendRecord, planningDecision, foiResponse, annualAccounts, decisionNotice, equalityImpactAssessment, policy, consultation, constitution, licence, forwardPlan, standardsDecision, auditorReport, statutoryNotice, report, guidance, statistics, correspondence, notice, other. An NHS board's minutes are often printed in the next meeting's pack, typed agenda: open it with q=minutes before saying none is held. If unsure, search without type.
order=date (the default) lists the newest first by the stored day, publishedAt; a meeting still to come has meetingDate instead. A paper with no stored day has no publishedAt and lists after dated papers; dayInPaper gives a day it prints, if any. from and to leave such papers out, and partialReason says when any hold the words. order=relevance ranks by how closely the words sit; with none together it lists by date (order: date).
desk=hansard, questions, donations, loans or lobbying searches Parliament, Electoral Commission and lobbying register rows instead of papers; with no q it lists them by from and to (or person), newest first. Hansard is one speech in the Commons or the Lords; house says which. On a desk each word of q is matched on its own. For one member on a topic: person= (name or id) and q= the topic (hansard and questions). from and to narrow a desk; source, type and mid do not apply.
An MP's or peer's register of interests is on joins for the person: matter=interests, quoted as the register prints it.
For an MP or peer, also search desk=donations with q= their name: rows where they are the recipient. Donations to a local party are not in these rows; say so.
GET /api/v1/papers/{id}?q=words (one request; a 404 or a 400 is not counted)
found says whether q is in the paper, matchPages lists its pages, and windows gives up to 15 extracts with their page, spread over the matching pages. With or without q you receive the first 60,000 characters; truncated says whether the text stops there, and pagesReturned which pages you have. page=n returns one page, pages=a-b up to 10; each page starts with its line [Page n]: cite that n for the text under it. companyNumbers lists the numbers the paper prints. meetingId, passed as mid on search, finds the same meeting's other papers, such as its minutes.
GET /api/v1/resolve?q=name or number (one request); with no q, sector= or area= lists bodies, 100 a page
Company hits have match: exact, prefix or fuzzy. Several companies with one name are different companies; caution and sameNameAs say so. Do not pick one because it has payments or officers. A one-word name is never enough to pick a company. If the full name returns nothing, do not shorten it. A council's name inside a longer name is a different organisation.
A charity hit (kind charity) has subject charity:{number} and the company number its register gives; when that company is also a hit, read_me_first says they are one organisation. A 6 or 7 digit number is read as a charity number and as a company number: check the name on each hit.
An owner hit (kind owner) is a land proprietor named exactly as searched, legal form aside, with its title count, the company numbers the land file prints with the name and, for an overseas owner, its country. Its subject owner:{name} lists those titles.
GET /api/v1/joins?subject= (one request; a partial answer is not counted)
subject is source:{id or slug}, person:{id}, company:{number}, charity:{number}, owner:{name} or title:{title number}. source takes the id or slug from a resolve or search hit, not a name.
On a company: officers, papers that print the number, land titles, contract notices as supplier, payment rows, grants and judgments. matter=Leeds City Council, or matter=source:{slug}, keeps notices and payments to that buyer; buyer names the body kept; note says when the matter named no body. matter=judgments, officers, contracts, payments or grants reads that section alone; payments takes a year or month (payments 2024-03), 100 a page. matter=ownership, offshore, gazette, enforcement, cqc, fca, slavery, payment practice, pay gap, sanctions, ico or pfi reads that register, 25 a page. officer=Massey keeps officers holding that word. matter=land pages every land title on the number, 25 a page. On an overseas number (OE, FC, NF or SF), landByName lists titles held in its registered name with no number (grain name: check the country).
A contract notice row has status, running, end, mayRunTo, primaryHref (the contract's page, to cite) and contract (its /api/v1/contracts/{ocid}), and contractRegister when the buyer's own register lists it (the NHS Business Services Authority).
On a charity (charity:1156964, SC012345 or NIC100002): its register entry, trustees, grants received, and papers that print its number or its company number or name it (basis says which). matter=grants, papers or trustees reads one section; grants and papers page with offset. For the company's officers, land, contracts and payments, call joins on company:{number}.
On a land owner (owner:Teighmore Limited): the titles whose proprietor has that name, legal form aside, then those holding its words, 25 a page, each with ownerMatch. Only an exact ownerMatch is the name you gave.
To check a director's public role: an officer row with personId has a person record. Call joins on person:{personId} for their seats, roles and register of interests. A row without one cannot be checked: say which.
On a person: seats (current, then past with their days), mentions and, for a member of Parliament, the register of interests; matter=mentions pages the papers that name the person, 20 a page, and matter=interests pages the entries, 25 a page; matter=expenses pages an MP's IPSA claims, 100 a page.
On a body with no matter: coverage and lastPaperAt, then its sections. With matter:
- matter=spend 2019 (or 2019-03): every payment line; supplier null ("Name withheld") is a payee not named, such as a private person; paymentDate YYYY-MM (datePrecision month) is a file that gives the month only: never add a day. Purchase card lines are not payment rows; the body's spending page lists them;
- matter=suppliers: suppliers ranked by the sum of their payment lines, 25 a page. Each sum is not a figure the body published. A supplier is a name as printed, so one firm can sit under its Ltd and Limited forms: search both. companyNumber and numberBasis say the number attached to the name's lines; "no number attached" means a name only. Use them, and call joins on a company only for its officers. Check the top three company payees by amount (not payeeKind public body), and say which you checked;
- matter=contracts: notices where the body buys;
- matter=seats: every seat published for the body, 25 a page with total and nextOffset;
- matter=staff: its senior posts as its organogram or salaries list prints them, 25 a page;
- matter=committees: its committees, with papers and meetings, 25 a page; committee {slug}: its meetings;
- matter=legal (or tribunals, ombudsman, ico, regulator), outturn, tac or pfi: that record, 25 a page;
- matter=grants, matter=judgments, or matter=paper facts (grants, contract decisions and appointments printed in its papers);
- any other words: its papers whose title or opening text holds them, and supplier labels in its spend files holding them.
A section with nextOffset has more rows: repeat with offset set to it. Open a row's documentId with /api/v1/papers/{id}.
CONTRACTS
Contracts across buyers, by trade, region, end or value: GET /api/v1/contracts. One contract in full: GET /api/v1/contracts/{ocid}, ocid from a row. Everything on one company or body: joins.
GET /api/v1/contracts (one request): one row a procurement, 25 a page with total; repeat with offset=nextOffset (up to 1,000).
Filters: buyer (id, slug or name), supplier (a company number), sector or cpv (first digits), region, status=open (open for tender now), awarded (still running) or ended, publishedFrom and publishedTo, endingFrom and endingTo (dates), valueMin, q (words in the title or description). sector and region take the slugs in openapi.json. sort=published (newest, the default), end (soonest) or value (largest).
With no buyer, supplier, open status or window: published in the last 92 days, or with sort=end ending in the next 12 months. q and the other filters read up to 50,000 contracts; more is a 400 with the count: add buyer or supplier, or narrow the window.
Example: GET /api/v1/contracts?sector=it-and-digital®ion=north-west&endingFrom=2026-11&endingTo=2027-10&sort=end
A row gives the buyer, up to three suppliers with companyNumber (supplierCount for all), value, status, running, end, mayRunTo, url (its page) and noticeUrl (the published notice).
GET /api/v1/contracts/{ocid} (one request): buyers, status, dates, value, awards with each supplier's companyNumber and numberBasis, sector, region, a timeline with each notice's link, and paid (the buyer's payment lines to the winner's number).
Values are as the notices publish them, added once. A framework's value is the framework's, not what one supplier was paid; a rate, a copy of an award and a figure out of scale are left out of totals and shown as published. end and mayRunTo are as published: mayRunTo is the latest end with every extension the notice provides for, not a renewal. status is the page's; running false means no award still runs. Cite a contract by its url and noticeUrl.
Right: "The framework is worth £10.6m in all (the framework's value, {url}, {noticeUrl}), not what any one of its 19 suppliers was paid."
Wrong: "Each of the 19 suppliers won £10.6m."
APPROVALS
GET /api/v1/approvals (one request): approvals to procure read from council, combined authority, NHS and police papers since January 2025, newest decided day first, 25 a page with total; repeat with offset=nextOffset (up to 1,000).
Filters: buyer (id, slug or name), trade and region (the contracts slugs), decidedFrom and decidedTo (dates), q (words in the subject), tendered=yes (a tender notice matched), no or any. sort=newest (the default) or oldest.
A row gives the body, decided (the earliest paper's day), subject as the paper words it, paper (id, url, page), value only where a paper prints one, with its wording, route, expected dates as printed, papers (how many mention it) and tender: the first tender notice matched (number, url, published, daysAfterApproval). tender null means none matched yet, not none published.
A report asks for approval; minutes or a decision notice record it (rule 2). Cite the paper's url and page, and the tender's url.
GET /api/v1/pack?subject=&matter= (one request, built or already held): a cited slice of the record for one subject (source:, person: or company:), as JSON and Markdown.
INVESTIGATIONS
Open one only when the person asks to keep or share the work, or the job runs over several sessions. For a one-off question, answer, then offer to save it.
Right: "Do you want me to save these four papers to an investigation you can export?"
Wrong: "I have saved this to an investigation. Press Download zip." (the file holds one pin)
GET /api/v1/investigations lists this seat's files. POST /api/v1/investigations {"title":"the matter"} creates one; pass its id as investigation on later searches and opens.
POST /api/v1/investigations/{id}/pins {"kind":"paper","targetId":"{paper id}"} (kind: person, company, source, paper, register, search, pack or date). POST .../notes {"body":"...","pinId":"...","documentId":"...","quote":"..."}
DELETE .../pins/{pinId} unpins. Deleting a pin keeps the notes that were on it, as general notes. DELETE /api/v1/investigations/{id} removes the file.
Give the link https://www.institrace.co.uk/investigations/{id} only when the file holds the papers your answer cites. The person presses Download zip there, which spends one of their exports. You cannot download it.
READ_ME_FIRST
Search, paper, resolve and joins responses carry read_me_first and read_me_version. Send back as v the version the same endpoint gave you, and its note shrinks to one line until it changes.
ERRORS
400: a parameter is not valid; the error lists the allowed values or close names to fix it from. Not charged.
401: the key is missing, unknown or revoked. Stop and tell the person.
402: no requests are left until more are added or the month turns. Stop and tell the person. Do not retry.
403: this seat cannot use the index, or cannot change that file. Stop and tell the person.
404: not on the index, or not on this seat. Not charged. Copy the id from a hit; do not retry the same id.
429: too many calls at once, a cap a minute or a day on that endpoint, or the key is paused. Wait Retry-After seconds before any call. If the message names the day's cap or a pause, stop and tell the person.
503: the search could not finish. Narrow it once: add source, type, or one year (on a desk, from and to, or person=). If it fails again, say so.
Reference, with every parameter, enum and schema: https://www.institrace.co.uk/api/v1/openapi.json
Human page: https://www.institrace.co.uk/developersChangelog
Joins on a body takes matter=staff: its senior posts as the body's organogram or senior salaries list prints them, with job title, name, unit, grade, pay band and the post each reports to, 25 a page, and the junior grades counted in the note. On a payment row, supplier is the payee as the file prints it, a person trading under a business name included, and supplier null is a payee not named. A line whose file gives only the month has paymentDate YYYY-MM and datePrecision month.
A paper's text can be read up to ten pages at a time: pages=106-112 returns those pages, each followed by a line with its page number, and a range that is malformed or longer than ten pages is a 400 that says how to ask and is not counted. A paper opened with words gives up to 15 extracts, spread across the pages that hold them, where it gave five. On a company, an officer with a person record on Institrace links to that record, the row says so, and the officers note counts them. The instructions for a model say how to read one item of a long pack, and that a question in several parts may take up to 15 calls.
Approvals to procure have an endpoint of their own. GET /api/v1/approvals lists the approvals to procure read from council, combined authority, NHS and police papers, by buyer, trade, region, decided date, words in the subject and whether a tender notice has been matched, newest decided day first, 25 a page with the total. Each row gives the body, the subject as the paper words it, the paper and its page, the value and expected dates where the paper prints them, the route, how many papers mention it, and the tender notice matched to it with the days between.
Earlier changes8 entries, 3 October 2026 to 3 November 2026
Contracts have endpoints of their own. GET /api/v1/contracts/{ocid} gives one contract as its page reads it: buyers, status, dates with the end and how far it may run with extensions, value (a framework's counted once), awards with each supplier's company number and how it was matched, trade, region, a timeline with each notice's link, and the buyer's payments to the winner. GET /api/v1/contracts lists contracts by words, buyer, supplier, trade or CPV, region, status, published or ending dates and value, sorted by published day, end or value. A contract row on a lookup now gives its status, end and latest end, and the contract's address.
The reference is about half its size, so a model can read all of it; the rules for reading answers stay in the instructions. A hyphenated phrase finds the same papers as the phrase spaced, plus its closed form, in search and in the counts by year. A body's suppliers carry the company number attached to each name's payment lines and how it was attached, or say no number attached. On a company, matter=judgments, officers, contracts, payments or grants reads that section alone, and a matter that names a buyer answers in one call.
Every call is one request, whatever the endpoint: a search, a name match, a lookup, a paper's text, a Pack or a call on an investigation. charged says request, or none for a call that was not counted, monthRemaining is the requests left this month (shared across a team, bought requests included), and X-Requests-Remaining replaces X-Search-Remaining and X-Opens-Remaining. When the requests are used the API returns 402 and pauses until more are added or the month turns. Each endpoint keeps a cap a day for fair use, and paper text and Packs a cap a minute, each a 429.
A Find a Tender contract award gives its latest end with every extension the notice provides for (maxEndOn), whether it can be renewed or has options, with the notice's own wording, the end date its lot prints and the day a terminated contract ended. A notice with no award yet lists its lots. Contract decisions are listed under matter=paper facts from fire and rescue authorities' papers and from council and NHS contract award papers, and a contract's amount says what it is (a year, maximum, per unit or estimated) through amountType and amountUnit.
A charity is a subject: resolve finds it by its number or its name, and charity:{number} gives the register entry with status, income, trustees and the company number the register gives, then the trustees, grants received and the papers that print its number. Land can be found by the owner's name: resolve gives owner hits, owner:{name} lists the titles held under that name, and an overseas company's lookup lists the titles in the overseas companies file held in its registered name. A contract notice that the NHS Business Services Authority's contract register lists carries that register's current end day, its latest end day with extensions, and whether the contract can be or has been extended.
A search hit's publishedAt is the stored day that date order, from and to use; a paper with no stored day gives a day it prints as dayInPaper. A lookup section that runs out of time makes the answer partial and free. Company officers are checked against Companies House, and say unverified when it cannot be read. The summary marks a later page, a sample or an unverified list as not complete. Payment rows carry the transaction number and file, suppliers carry payeeKind, contract awards carry the contract period, matter=grants takes from, and a land title number not held is a 404 that is not charged. Every row field is described in the OpenAPI.
On a company, a matter that names a body, such as Leeds City Council, keeps contract notices and payment rows to that buyer, and the answer names the buyer it kept. Search gives capped on page 10, a paper gives truncated when its text stops at the cap, the Hansard and questions desks take person= with a member's name, and a lookup on a body takes matter=suppliers for its suppliers ranked by the sum of their payment lines.
The instructions for a model are rewritten from tests of three models on ten research tasks: one order of work, a budget of 3 to 8 calls for most questions, and eight rules, each with a right and a wrong example. read_me_first on search and paper responses names the same eight rules. A model keeps an investigation only when you ask it to keep the work. The OpenAPI descriptions say what to do at each call and on each error. The Pack reading rules are version 2026-10-03-a.
A question about a call, a field or your requests, or something the API should do and does not: get in touch.