Company financials summary
GET /api/company-financialsKey financial metrics (Revenue, Net Income, Operating Income, Total Assets, Liabilities, Equity, EPS, Operating Cash Flow) for a US public company in one call. Send GET /api/company-financials with no required fields (2 optional) and pay $0.02 per call over x402 or MPP (there is no free tier). It returns a JSON object with ticker, cik, entityName, metrics and source.
Returns the latest annual and quarterly values from SEC XBRL filings. No XBRL knowledge needed - just pass a ticker. ?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) |
Example request
curl -i "https://agent402.tools/api/company-financials?ticker=AAPL"
Without payment this returns HTTP 402 Payment Required with the exact price for company-financials; any x402 v2 or MPP client pays it and retries.
Example response
{
"ticker": "AAPL",
"cik": "0000320193",
"entityName": "Apple Inc.",
"metrics": [
{
"label": "Revenue",
"tag": "Revenues",
"latestAnnual": {
"value": 391035000000,
"period": "2024-09-28",
"form": "10-K"
},
"latestQuarterly": {
"value": 94930000000,
"period": "2025-03-29",
"form": "10-Q"
}
},
{
"label": "Net Income",
"tag": "NetIncomeLoss",
"latestAnnual": {
"value": 93736000000,
"period": "2024-09-28",
"form": "10-K"
},
"latestQuarterly": {
"value": 24780000000,
"period": "2025-03-29",
"form": "10-Q"
}
}
],
"source": "SEC EDGAR XBRL (public domain)"
}
| Field | Type | Always present | In the example |
|---|---|---|---|
ticker | string | yes | AAPL |
cik | string | yes | 0000320193 |
entityName | string | yes | Apple Inc. |
metrics | array of objects | yes | 2 items in the example |
source | string | yes | SEC EDGAR XBRL (public domain) |
From an MCP client
catalog.call {
"slug": "company-financials",
"params": {
"ticker": "AAPL"
}
}
The hosted connector at https://agent402.tools/mcp needs a payment for company-financials; 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: settlement is cancelled when the tool fails.
- Wallet-only: this tool reaches the network or stored state, so it has no proof-of-work tier. A prepaid card-credits key (
Authorization: Bearer a402_...) also pays it. - A
POSTwith a JSON body to /api/company-financials 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.
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/company-financials?ticker=AAPL");
Part of these workflows
Company financials summary is one step in these 3 skill packs, each sold as a single call:
- Earnings deep-dive - Everything you need before a company reports: the upcoming earnings date, the latest financials, recent SEC filings, the latest close, and fresh analyst news - in one pass.
- Financial analysis - Quick company snapshot: latest close, 9 key financial metrics (revenue through cash flow), and upcoming earnings - one call, one payment.
- Company dossier - Comprehensive company research report in one call: latest close, financials, SEC filings, insider trades, and recent news - all in parallel.
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…
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…
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…
EDGAR 13F-HR holdings (institutional positions)
GET /api/edgar-13f-holdingsTop holdings from an institutional investment manager's most recent 13F-HR filing (managers >$100M AUM file quarterly). …