A company's financial years
GET/company/:id/financials
Every financial year the database holds for the company, latest first. Each year carries period
(FY2024), currency, isrevenueapprox (revenue approximated from the debtors), numemployees, and inc, bst, cfl keyed by financial tag.
Flags, independent of each other:
metadata=true: each figure (numemployeestoo) becomes{ val, term, loc, notes, order }: the line's text, where it sits in the filing (a selector for iXBRL, coordinates for a PDF), its note reference and its position. Read from the database and the S3 financials file, merged by period: the number is always the database's, so it agrees with a call without the flag. A field the filing did not give is left out.documents=true: each year addsdocperiod(the filing's own period; a filing holds at least two years),doctype(pdf,ixbrl,xbrl) anddocument, a URL to the filing signed for an hour.
Examples
/company/UK00358948/financials→[{ "period": "FY2024", "currency": "GBP", "isrevenueapprox": false, "inc": { "increv": 5000000 } }, …]/company/UK00358948/financials?metadata=true&documents=true→[\{ "period": "FY2024", "currency": "GBP", "isrevenueapprox": false, "docperiod": "FY2024", "doctype": "ixbrl", "document": "https://…", "inc": \{ "increv": \{ "val": 5000000, "term": "Turnover", "loc": "#c12", "order": 1 \} \} \}, …]
limit=N keeps the N most recent years, e.g. /company/UK00358948/financials?limit=3 for the last three. A
company without financials answers [].
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 429
- 500
An array of financial years, latest first: bare numbers, or figure objects under metadata=true.
An invalid parameter, named in error.
No Authorization header.
An API key that is not valid or has been revoked.
No company with that id.
Over the usage plan: 2 requests a second per key, bursts of 10.
{ "error": "Internal error" }; the cause is in the Lambda log.