Skip to main content

Overview

AhamFlow processes 118M+ XBRL facts from SEC EDGAR companyfacts bulk data. The structured financial statement endpoints transform raw XBRL concepts into clean, period-based financial statements.

Income Statement

curl -H "x-api-key: $KEY" \
  "https://api.ahamflow.dev/api/v1/edgar/financials/income-statement?ticker=AAPL&years=3"
Returns line items: Revenue, Cost of Revenue, Gross Profit, R&D, SG&A, Operating Income, Net Income, EPS (Basic & Diluted), Shares Outstanding.

Balance Sheet

curl -H "x-api-key: $KEY" \
  "https://api.ahamflow.dev/api/v1/edgar/financials/balance-sheet?ticker=AAPL&years=3"
Returns: Cash, Investments, Receivables, Inventory, Current Assets, PP&E, Goodwill, Total Assets, Payables, Debt, Liabilities, Equity.

Cash Flow Statement

curl -H "x-api-key: $KEY" \
  "https://api.ahamflow.dev/api/v1/edgar/financials/cash-flow?ticker=AAPL&years=3"
Returns: Operating Cash Flow, CapEx, Free Cash Flow, Investing/Financing activities, Dividends, Share Repurchases.

Financial Summary

Get all three statements combined in one call:
curl -H "x-api-key: $KEY" \
  "https://api.ahamflow.dev/api/v1/edgar/financials/summary?ticker=MSFT&years=2"

Quarterly vs Annual

Use the period parameter:
# Annual (default)
?period=10-K

# Quarterly
?period=10-Q
# or
?period=quarterly

Raw XBRL Facts

For granular access to any XBRL concept:
# Query a specific concept
curl -H "x-api-key: $KEY" \
  "https://api.ahamflow.dev/api/v1/edgar/facts?ticker=AAPL&concept=Revenues&unit=USD"
This returns raw XBRL facts with taxonomy, frame, filing date, and accession number.

Response Format

Each statement endpoint returns periods sorted newest-first:
{
  "ticker": "AAPL",
  "statement": "income_statement",
  "form_type": "10-K",
  "count": 3,
  "periods": [
    {
      "period": "2025-09-27",
      "fiscal_year": "2025",
      "fiscal_period": "FY",
      "filed_date": "2025-10-31",
      "line_items": {
        "Revenue": 416161000000,
        "Net Income": 112010000000,
        "EPS Diluted": 7.46
      }
    }
  ]
}