EDGAR XBRL frame (cross-company snapshot)

$0.005 per call · USDC via x402 · GET /api/edgar-xbrl-frame

All 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

Category: Live public data · Tags: edgar sec xbrl frames screen cross-section fundamentals financials

TRY IN PLAYGROUND →

Parameters

NameTypeRequiredDescription
taxonomystringnoXBRL taxonomy, default "us-gaap"
tagstringyesXBRL concept tag, e.g. "Revenues", "Assets"
unitstringyesUnit of measure, e.g. "USD", "shares", "USD/shares"
periodstringyesCY{YYYY} (annual), CY{YYYY}Q{1-4} (quarterly), or CY{YYYY}Q{1-4}I (instantaneous balance-sheet)
limitnumbernoMax 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
    }
  ]
}
FieldTypeAlways presentIn the example
taxonomystringyesus-gaap
tagstringyesRevenues
ccpstringyesCY2023Q1
uomstringyesUSD
labelstringyesRevenues
totalCompaniesnumberyes1872
returnednumberyes1
truncatedbooleanyestrue
dataarray of objectsyes1 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

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)

$0.005 · GET /api/edgar-company-concept

Full 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)

$0.005 · GET /api/edgar-company-facts

All XBRL concepts reported by a company. Default returns a compact summary per tag (label, unit, latest value, latest en…

Company financials summary

$0.02 · GET /api/company-financials

Key financial metrics (Revenue, Net Income, Operating Income, Total Assets, Liabilities, Equity, EPS, Operating Cash Flo…

EDGAR full-text search

$0.005 · GET /api/edgar-search

General-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)

$0.005 · GET /api/edgar-13f-dataset-head

A 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)

$0.003 · GET /api/edgar-13f-datasets

The SEC's bulk Form 13F Data Sets: every quarterly (2013Q2-2023Q4) and rolling three-month (2024-) archive the SEC publi…