SEC fundamentals as they were known on any date
Ask for a company's XBRL values as of a filing date. Get the figure the market could see that day, every later restatement, and the SEC filing behind each number.
$0.08/call · 10 free calls a day, no signup · REST and MCP
curl https://api.kanagu.dev/v1/xbrl/asof \
-H "Content-Type: application/json" \
-d '{"ticker":"MSFT","concepts":[{"taxonomy":"us-gaap","tag":"NetIncomeLoss"}],"periods":[{"start":"2015-07-01","end":"2015-09-30"}],"asOf":"2016-04-20"}'const res = await fetch("https://api.kanagu.dev/v1/xbrl/asof", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.KANAGU_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"ticker": "MSFT",
"concepts": [
{
"taxonomy": "us-gaap",
"tag": "NetIncomeLoss"
}
],
"periods": [
{
"start": "2015-07-01",
"end": "2015-09-30"
}
],
"asOf": "2016-04-20"
}),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "xbrl.asof",
"arguments": {
"ticker": "MSFT",
"concepts": [
{
"taxonomy": "us-gaap",
"tag": "NetIncomeLoss"
}
],
"periods": [
{
"start": "2015-07-01",
"end": "2015-09-30"
}
],
"asOf": "2016-04-20"
}
}
}Why
What it solves
Companies revise reported figures in later filings, and many fundamentals datasets keep only the latest value for each period. A backtest that reads it trades on numbers nobody had at the time, which is look-ahead bias. SEC EDGAR has every filing version, but grouping them by period and unit and ordering same-day filings is work. Kanagu returns the value as of your date, with the revisions that came after.
Built for
- Quant researchers who backtest on company fundamentals
- Financial data tools that must show when each figure was first reported
- AI agents that research companies from primary SEC filings
Example
What goes in, what comes out
In: A CIK or ticker, XBRL concepts, fiscal periods and an as-of filing date. Out: The value known on that date, later revisions, and the form, accession and filing URL of each.
{
"cik": "0000789019",
"concepts": [
{
"taxonomy": "us-gaap",
"tag": "NetIncomeLoss"
}
],
"periods": [
{
"start": "2015-07-01",
"end": "2015-09-30"
}
],
"asOf": "2016-04-20"
}{
"cik": "0000789019",
"source": "https://www.sec.gov/search-filings/edgar-application-programming-interfaces",
"asOf": "2016-04-20",
"results": [
{
"taxonomy": "us-gaap",
"tag": "NetIncomeLoss",
"period": {
"start": "2015-07-01",
"end": "2015-09-30"
},
"status": "found",
"series": [
{
"unit": "USD",
"latest": {
"status": "reported",
"filed": "2015-10-22",
"fact": {
"value": 4620000000,
"fiscalYear": 2016,
"fiscalPeriod": "Q1",
"form": "10-Q",
"filed": "2015-10-22",
"accession": "0001193125-15-350718",
"filingUrl": "https://www.sec.gov/Archives/edgar/data/789019/000119312515350718/0001193125-15-350718-index.htm"
}
},
"laterRevisions": [
{
"status": "reported",
"filed": "2016-04-21",
"fact": {
"value": 4902000000,
"fiscalYear": 2016,
"fiscalPeriod": "Q3",
"form": "10-Q",
"filed": "2016-04-21",
"accession": "0001193125-16-550254",
"filingUrl": "https://www.sec.gov/Archives/edgar/data/789019/000119312516550254/0001193125-16-550254-index.htm"
}
}
]
}
]
}
]
}Microsoft's net income for the quarter ended 30 September 2015. On 20 April 2016 the latest filing said $4.62B; the 10-Q filed the next day revised it to $4.902B. Shortened: each fact also repeats the CIK, concept, period and unit.
Try it
Run it on the live API
The sample asks for Microsoft's net income by ticker. Move asOf past 2016-04-21 and the revised figure becomes latest.
Reference
Operations
| Operation | Price |
|---|---|
| xbrl.asof Get SEC EDGAR XBRL values as of an inclusive filing date, with later value changes and source filings. Covers entity-wide facts from standard taxonomies. | $0.08/call |
| xbrl.history Trace every SEC EDGAR filing version of one XBRL concept by exact fiscal dates and unit, including unchanged repeats and source filings. | $0.08/call |
curl https://api.kanagu.dev/v1/xbrl/asof \
-H "Authorization: Bearer $KANAGU_KEY" \
-H "Content-Type: application/json" \
-d '{"ticker":"MSFT","concepts":[{"taxonomy":"us-gaap","tag":"NetIncomeLoss"}],"periods":[{"start":"2015-07-01","end":"2015-09-30"}],"asOf":"2016-04-20"}'const res = await fetch("https://api.kanagu.dev/v1/xbrl/asof", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.KANAGU_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"ticker": "MSFT",
"concepts": [
{
"taxonomy": "us-gaap",
"tag": "NetIncomeLoss"
}
],
"periods": [
{
"start": "2015-07-01",
"end": "2015-09-30"
}
],
"asOf": "2016-04-20"
}),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();claude mcp add --transport http kanagu https://api.kanagu.dev/mcp \
--header "Authorization: Bearer $KANAGU_KEY"{
"mcpServers": {
"kanagu": {
"url": "https://api.kanagu.dev/mcp",
"headers": {
"Authorization": "Bearer ${env:KANAGU_KEY}"
}
}
}
}{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "xbrl.asof",
"arguments": {
"ticker": "MSFT",
"concepts": [
{
"taxonomy": "us-gaap",
"tag": "NetIncomeLoss"
}
],
"periods": [
{
"start": "2015-07-01",
"end": "2015-09-30"
}
],
"asOf": "2016-04-20"
}
}
}Every field, error and schema is in the xbrl.asof reference.
Coverage
Limits and coverage
- Source
- SEC EDGAR XBRL companyconcept data from data.sec.gov, read at request time and cached for up to five minutes
- Taxonomies
- Standard SEC taxonomies, including us-gaap, ifrs-full and dei
- Filings
- Every XBRL filing SEC EDGAR has for the company, from 2009 onward
- Companies
- Any SEC filer with XBRL data, by CIK. Tickers resolve through the current SEC mapping.
- Not covered
- Segment and other dimensional facts, company extension tags, and filings without XBRL
- Data
- Inputs are processed in memory. For keyed calls the JSON result is kept for 30 days so a retry with the same Idempotency-Key returns it, then deleted. Trial calls store only a daily counter.
Compare
Compared with the usual approaches
Ways teams usually get historical fundamentals:
| Approach | What you take on |
|---|---|
| Use a latest-value fundamentals feed | Backtests see restated figures before they were published, and the results look better than any live strategy could. |
| Parse SEC EDGAR yourself | Stay under SEC's request limits, group filings by period and unit, order same-day filings by acceptance time, and keep the history. |
| Kanagu | One call returns the value as of your date, the later revisions, and the filing behind each, at $0.08. |
Pricing
$0.08/call, billed only on success
- xbrl.asof$0.08 / call
- xbrl.history$0.08 / call
$1 of usage free every month after sign-in. Then pay as you go with no monthly fee, or the $9/month Bundle with $9 of usage included, shared across every Kanagu product. Compare plans
Sign in, create a key and use $1 of calls free each month, no card needed. Subscribe from your dashboard when you need more. Polar is the merchant of record and handles payment, tax and invoices.
FAQ
SEC fundamentals questions
- What does asOf mean?
- An inclusive SEC filing date. Every submission filed on that date counts as known. If two filings on the same day disagree, they are ordered by SEC acceptance time.
- How do I specify a period?
- Use the exact start and end dates the company reports, in its own fiscal calendar. Microsoft's fiscal year ends 30 June, so its first quarter of fiscal 2016 is 2015-07-01 to 2015-09-30. Omit start for balance sheet values.
- Can I look up delisted companies?
- Yes, by CIK. Tickers resolve only through SEC's current mapping, so use the CIK for old or reused tickers.
- What is needs_review?
- A filing day whose facts disagree and cannot be ordered, for example when SEC has no acceptance time. You get every candidate fact instead of a guess.
- What does a call cost?
- $0.08 per call. One xbrl.asof call covers up to 10 concepts and 20 periods.
More APIs with the same key
- E-invoicingGenerate, validate and parse XRechnung and ZUGFeRD invoices.
- France e-reportingDGFiP Flux 10 e-reporting XML for B2C sales, cross-border B2B and service receipts, checked against v3.2.
- Bank statementsTurn Chase, Wells Fargo and Barclays PDF statements into reconciled transactions.
- OTA payoutsMatch Airbnb, Booking.com and Vrbo payouts to the deposits on your bank statement.
- Rent rollsReconcile a multifamily rent roll against its T12: occupancy, loss to lease, vacancy and rent collected.
- Pay applicationsCheck AIA G702 and G703 pay applications line by line, against the last certified one and approved change orders.
- VAT validationCheck EU and UK VAT numbers against VIES and HMRC, with audit evidence.
- Packaging EPRPackaging weights by US state EPR category and Germany LUCID reports, traced to each SKU.
- CPSC eFilingCheck CPC and GCC certificates against each CBP entry line and get the PGA fields to file.
- PFAS reportingDecide Minnesota and Maine PFAS-in-products reporting and get the PRISM rows, MDA statements and deadlines.
- Demurrage auditAudit FMC demurrage and detention invoices against 46 CFR 541, recalculate each day and draft the dispute.
- UK CARFHMRC cryptoasset reports as OECD CARF XML, checked against HMRC's file rules and TIN check digits.
- EU PPWREU packaging regulation checks for heavy metals, PFAS, recycled content and empty space, with a draft declaration.
- Business daysBusiness-day math and SLA deadlines with public holidays in 207 countries.
- CSV validationCheck uploaded CSV files against a column schema before you import them.
- Email parsingParse raw .eml messages into headers, bodies, attachments and thread IDs.
- Screenshot diffCapture two web pages and get the changed pixels and regions.