Skip to content

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
Values as of a date
xbrl.asof takes up to 10 concepts and 20 fiscal periods and returns, for each, the latest value filed on or before asOf. Ask by CIK or by current ticker.
Every restatement
Later value changes come back in laterRevisions. xbrl.history lists every filing version of one concept for every period, including unchanged repeats.
Source filing for each number
Each value carries the form, filing date, accession number, fiscal year and period, and a link to the filing index on sec.gov. Same-day filings are ordered by SEC acceptance time.

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.

Request · POST /v1/xbrl/asof
{
  "cik": "0000789019",
  "concepts": [
    {
      "taxonomy": "us-gaap",
      "tag": "NetIncomeLoss"
    }
  ],
  "periods": [
    {
      "start": "2015-07-01",
      "end": "2015-09-30"
    }
  ],
  "asOf": "2016-04-20"
}
Response · 200
{
  "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.

$0.08/call

No key needed · 10 free calls per IP per day

Response

Run the request to see the live response here.

Reference

Operations

OperationPrice
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:

ApproachWhat you take on
Use a latest-value fundamentals feedBacktests see restated figures before they were published, and the results look better than any live strategy could.
Parse SEC EDGAR yourselfStay under SEC's request limits, group filings by period and unit, order same-day filings by acceptance time, and keep the history.
KanaguOne 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

$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.

10 free calls a day
Start without a key
Try every call above for free. When it works, sign in for a key with $1 of usage free every month.

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