EDGAR XBRL company-facts (all tags)
GET /api/edgar-company-factsAll XBRL concepts reported by a company. Send GET /api/edgar-company-facts with no required fields (4 optional) and pay $0.005 per call over x402 or MPP (there is no free tier). It returns a JSON object with cik, entityName, mode and taxonomies.
Default returns a compact summary per tag (label, unit, latest value, latest end date) - typically a few hundred KB. Pass tags=Revenues,Assets,NetIncomeLoss to get full time-series for just those concepts. Source: data.sec.gov/api/xbrl/companyfacts. ?ticker=AAPL
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ticker | string | no | US stock ticker (alternative to cik) |
cik | string | no | SEC CIK number (alternative to ticker) |
taxonomy | string | no | Optional taxonomy filter, e.g. "us-gaap" or "dei" |
tags | string | no | Optional comma-separated tag list - when set, returns full time series for ONLY these tags (e.g. Revenues,Assets,NetIncomeLoss) |
Example request
curl -i "https://agent402.tools/api/edgar-company-facts?ticker=AAPL"
Without payment this returns HTTP 402 Payment Required with the exact price for edgar-company-facts; any x402 v2 or MPP client pays it and retries.
Example response
{
"cik": "0000320193",
"entityName": "Apple Inc.",
"mode": "summary",
"taxonomies": {
"us-gaap": {
"count": 312,
"sample": {
"Revenues": {
"label": "Revenues",
"unit": "USD",
"latestEnd": "2024-09-28",
"latestVal": 391035000000,
"observations": 48
}
}
}
}
}
| Field | Type | Always present | In the example |
|---|---|---|---|
cik | string | yes | 0000320193 |
entityName | string | yes | Apple Inc. |
mode | string | yes | summary |
taxonomies | object | yes | 1 field: us-gaap |
From an MCP client
catalog.call {
"slug": "edgar-company-facts",
"params": {
"ticker": "AAPL"
}
}
The hosted connector at https://agent402.tools/mcp needs a payment for edgar-company-facts; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.
Errors and behavior
- Every field is optional. An input the tool rejects returns an HTTP 4xx whose body carries
error,tool,expected,requiredandexample. - A paid call that ends in any status of 400 or above is not charged over x402, MPP or a prepaid credits key: settlement is cancelled when the tool fails. The exception is a Tempo push credential, a transfer the buyer sent before the call: it settles before the tool runs, so if the tool then fails the payment is recorded as a refund owed to the paying wallet.
- Wallet-only: this tool reaches the network or stored state, so it has no proof-of-work tier. A prepaid card-credits key issued earlier (
Authorization: Bearer a402_...) also pays it. - A
POSTwith a JSON body to /api/edgar-company-facts is served as this GET, with the body as the input. - An
Idempotency-Keyheader makes a retried paid call replay the first 200 instead of charging again (an answer larger than 1 MB is not replayed).
Paid call (JavaScript agent)
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client();
client.setSpendControls?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://agent402.tools/api/edgar-company-facts?ticker=AAPL");
Part of these workflows
EDGAR XBRL company-facts (all tags) is one step in these 2 skill packs, each sold as a single call:
- Financial research - Pull SEC filings, the latest close, historical prices, and macro context for a single ticker in one pass.
- SEC filings deep-dive - Pull the full EDGAR picture of a US public company in one workflow: recent filings, key financial time series, insider trades, and full-text search across the corpus.
Related tools
EDGAR XBRL company-concept (one tag, full history)
GET /api/edgar-company-conceptFull reported history of a single XBRL concept for one company (e.g. quarterly Revenues for Apple). Each datapoint cites…
EDGAR XBRL frame (cross-company snapshot)
GET /api/edgar-xbrl-frameAll US public companies that reported a given XBRL tag for a given period, in one call. Killer endpoint for cross-sectio…
Company financials summary
GET /api/company-financialsKey financial metrics (Revenue, Net Income, Operating Income, Total Assets, Liabilities, Equity, EPS, Operating Cash Flo…
EDGAR company lookup (ticker → CIK)
GET /api/edgar-company-lookupResolve a US stock ticker (e.g. AAPL) to its SEC CIK number, the primitive every other EDGAR call needs. Returns ticker,…
EDGAR Form 13F data set head (one table, bounded)
GET /api/edgar-13f-dataset-headA bounded head of ONE table in a Form 13F data set, read with two byte-range requests against sec.gov (the archive's cen…
EDGAR Form 13F data sets (index)
GET /api/edgar-13f-datasetsThe SEC's bulk Form 13F Data Sets: every quarterly (2013Q2-2023Q4) and rolling three-month (2024-) archive the SEC publi…