Search companies with filters
GET/search
Filtered company search over the database. Every financial filter, sort and figure is on the latest
financial year only; more years are /company/{id}/financials.
Filters are <field>[<op>]=<value> query parameters. List operators (in, all) and between take
comma-separated values or a repeated parameter. Fields are the platform's datapoint column names:
- text:
profile.id,profile.name,profile.county,profile.indus,profile.siccode,profile.industrytags. Operatorseq,startsWith,contains(case-insensitive, at least 3 characters, unindexed: put it behind a narrow filter),in,all. On a list field (e.g.industrytags) every operator butallmatches any one entry. Underall,inandeq, a company with no industry tags of its own matches on its SIC code's. - date (ISO
YYYY-MM-DD):profile.crdate,profile.lmudate,profile.lastreported,expiry.from,expiry.to. Operatorseq,before(inclusive),after(inclusive),between. - number: any financial tag as
inc.<tag>,bst.<tag>,cfl.<tag>(e.g.inc.increv,bst.eqte),misc.numemployees,hasjustraised.totalpricepaid,highgrowth.growthrate,expiry.amount. Operatorseq,gte,lte,between. Amounts in pounds widen by ±0.5 to agree with a figure shown rounded; ratios (fat,netprofrat,impnetprofrat,revgrowth,stdebtrat) do not. - flag:
hasjustraised,abouttoraise,highgrowthandmisc.revapp(the latest revenue is approximated from the debtors;misc.revapp[eq]=falsekeeps reported revenues only). Operatoreqwithtrueorfalse.
Without a flag or id filter, only companies with a revenue
(inc.increv ≥ 0) are searched. profile.id[in] fetches known companies, with or without revenue.
Examples
- Revenue above £3m, equity above £200k, in two SIC codes, with their statements:
/search?inc.increv[gte]=3000000&bst.eqte[gte]=200000&profile.siccode[in]=62012,62020&include=inc,bst - Restructuring Discovery's first page, earliest expiry first:
/search?expiry[eq]=true&expiry.amount[gte]=0&include=profile,inc,bst,expiry&sortBy=expiry.from&order=asc&limit=31&count=true - Known companies' latest years:
/search?profile.id[in]=UK00358948,UK01234567&include=inc,bst,cfl
Response: { results: [row, …], totalNumResults?: number }. A row is the profile, plus financials (the
latest year, bare numbers, only the statements asked for) and bd (only the feeds asked for whose flag is raised).
totalNumResults saturates at 500 (a floor, not a total) and is absent when the count timed out (20 s) or was
not asked for (count=true).
Request
Responses
- 200
- 400
- 401
- 403
- 429
- 500
- 504
The page of rows, and the count when asked for.
An invalid parameter, named in error.
No Authorization header.
An API key that is not valid or has been revoked.
Over the usage plan: 2 requests a second per key, bursts of 10.
{ "error": "Internal error" }; the cause is in the Lambda log.
The search took longer than 20 s: narrow the filters.