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. Send GET /api/edgar-xbrl-frame with the required fields tag, unit and period and pay $0.005 per call over x402 or MPP (there is no free tier). It returns a JSON object with taxonomy, tag, ccp, uom, label and 4 more.
Killer endpoint for cross-sectional screens: 'every issuer's Revenues for CY2023Q1' or 'every issuer's Assets as of CY2023Q4I (instantaneous)'. Period format: CY{YYYY} (annual), CY{YYYY}Q{1-4} (quarterly), or CY{YYYY}Q{1-4}I (instantaneous balance-sheet items). Source: data.sec.gov/api/xbrl/frames. ?taxonomy=us-gaap&tag=Revenues&unit=USD&period=CY2023Q1
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
taxonomy | string | no | XBRL taxonomy, default "us-gaap" |
tag | string | yes | XBRL concept tag, e.g. "Revenues", "Assets" |
unit | string | yes | Unit of measure, e.g. "USD", "shares", "USD/shares" |
period | string | yes | CY{YYYY} (annual), CY{YYYY}Q{1-4} (quarterly), or CY{YYYY}Q{1-4}I (instantaneous balance-sheet) |
limit | number | no | Max companies to return, 1-2000 (default 200) |
Example request
curl -i "https://agent402.tools/api/edgar-xbrl-frame?taxonomy=us-gaap&tag=Revenues&unit=USD&period=CY2023Q1"
Without payment this returns HTTP 402 Payment Required with the exact price for edgar-xbrl-frame; any x402 v2 or MPP client pays it and retries.
Example response
{
"taxonomy": "us-gaap",
"tag": "Revenues",
"ccp": "CY2023Q1",
"uom": "USD",
"label": "Revenues",
"totalCompanies": 1872,
"returned": 1,
"truncated": true,
"data": [
{
"accn": "0000320193-23-000064",
"cik": 320193,
"entityName": "Apple Inc.",
"loc": "US-CA",
"end": "2023-04-01",
"val": 94836000000
}
]
}
| Field | Type | Always present | In the example |
|---|---|---|---|
taxonomy | string | yes | us-gaap |
tag | string | yes | Revenues |
ccp | string | yes | CY2023Q1 |
uom | string | yes | USD |
label | string | yes | Revenues |
totalCompanies | number | yes | 1872 |
returned | number | yes | 1 |
truncated | boolean | yes | true |
data | array of objects | yes | 1 item in the example |
From an MCP client
catalog.call {
"slug": "edgar-xbrl-frame",
"params": {
"taxonomy": "us-gaap",
"tag": "Revenues",
"unit": "USD",
"period": "CY2023Q1"
}
}
The hosted connector at https://agent402.tools/mcp needs a payment for edgar-xbrl-frame; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.
Errors and behavior
tag,unitandperiodare required. An input the tool rejects returns an HTTP 4xx whose body carrieserror,tool,expected,requiredandexample, so the caller can correct it.- 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-xbrl-frame 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-xbrl-frame?taxonomy=us-gaap&tag=Revenues&unit=USD&period=CY2023Q1");
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 company-facts (all tags)
GET /api/edgar-company-factsAll XBRL concepts reported by a company. Default returns a compact summary per tag (label, unit, latest value, latest en…
Company financials summary
GET /api/company-financialsKey financial metrics (Revenue, Net Income, Operating Income, Total Assets, Liabilities, Equity, EPS, Operating Cash Flo…
EDGAR full-text search
GET /api/edgar-searchGeneral-purpose full-text search across every SEC filing since 2001. Find any phrase in any filing - material-weakness l…
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…