EN
Finance · x402

sec-financials

US public company financial facts from SEC EDGAR XBRL (by ticker or CIK): revenue, net income, operating income, gross profit, diluted EPS, assets, liabilities, equity, cash, operating cash flow, long-term debt, shares outstanding — last 1-5 fiscal years plus latest quarter, with form, filing date and accession; plus recent 10-K/10-Q/8-K filings. Any raw us-gaap tag also accepted.

0.005 USDC / call · {atomic} atomic · 5000 atomic

Endpoint

GET|POST https://forge-tools.dentreprise.workers.dev/api/sec-financials

Parameters

NameRequiredTypeDescription
tickerOptionalstringTicker, e.g. AAPL
cikOptionalstringSEC CIK (alternative)
yearsOptionalstring1-5, default 3
metricsOptionalstringComma list: revenue,net_income,… or us-gaap:Tag

Example request (unpaid — expect 402)

curl -sS -D - "https://forge-tools.dentreprise.workers.dev/api/sec-financials?ticker=AAPL&years=3"

Example 402 challenge

The same object is also sent as a base64 PAYMENT-REQUIRED header. Amounts are atomic USDC units (6 decimals).

{
  "x402Version": 2,
  "error": "Payment required",
  "resource": {
    "url": "https://forge-tools.dentreprise.workers.dev/api/sec-financials",
    "description": "US public company financial facts from SEC EDGAR XBRL (by ticker or CIK): revenue, net income, operating income, gross profit, diluted EPS, assets, liabilities, equity, cash, operating cash flow, long-term debt, shares outstanding — last 1-5 fiscal years plus latest quarter, with form, filing date and accession; plus recent 10-K/10-Q/8-K filings. Any raw us-gaap tag also accepted.",
    "mimeType": "application/json"
  },
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "amount": "5000",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "payTo": "0x7B8bf45ac6AcbA6D4CFB626b57D3f5fF3C9C89F7",
      "maxTimeoutSeconds": 120,
      "extra": {
        "name": "USD Coin",
        "version": "2"
      }
    }
  ]
}

Retry with payment

curl -sS "https://forge-tools.dentreprise.workers.dev/api/sec-financials?ticker=AAPL&years=3" \
  -H "PAYMENT-SIGNATURE: $PAYMENT"

Example response

{
  "cik": "0000320193",
  "name": "Apple Inc.",
  "metrics": {
    "revenue": {
      "unit": "USD",
      "annual": [
        {
          "period_end": "2026-09-26",
          "value": 0
        }
      ]
    }
  }
}

Related endpoints