SEC API docs ▾

XBRL financial data API: revenue, earnings and cash flow without tag mapping

Uses Financial statements

XBRL is how companies tag the numbers in their 10-Ks and 10-Qs. The SEC's companyfacts API gives you every tag a company used, under the names that company chose: revenue alone can be Revenues, RevenueFromContractWithCustomerExcludingAssessedTax, SalesRevenueNet and more. The financials endpoint maps them to one set of fields, fills in fourth quarters from the annual numbers, and keeps one record per company and period.

One company's quarters

What were Apple's revenue and net income in each of the last eight quarters?

A quarterly series for a model or a chart, already split into quarters.

shell
curl -X POST https://www.quantisnow.com/api/v1/financials \
  -H "Authorization: Bearer $QUANTISNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "ticker:AAPL AND fiscalPeriod:(Q1 OR Q2 OR Q3 OR Q4)",
  "from": 0,
  "size": 5,
  "sort": [
    {
      "periodEnd": {
        "order": "desc"
      }
    }
  ]
}'

40 matches, first 5

  1. AAPL logo
    AAPLApple Inc. Q4 2026Revenue $114.5B · net income $30.7B · free cash flow $25.9B$114.5B
  2. AAPL logo
    AAPLApple Inc. Q3 2026Revenue $109.4B · net income $29.8B · free cash flow $31.9B$109.4B
  3. AAPL logo
    AAPLApple Inc. Q2 2026Revenue $111.2B · net income $29.6B · free cash flow $26.7B$111.2B
  4. AAPL logo
    AAPLApple Inc. Q1 2026Revenue $143.8B · net income $42.1B · free cash flow $51.6B$143.8B
  5. AAPL logo
    AAPLApple Inc. Q4 2025Revenue $102.5B · net income $27.5B · free cash flow $26.5B$102.5B
The JSON it returned
200 OK · 40 matches · first 5
{
  "total": {
    "value": 40,
    "relation": "eq"
  },
  "data": [
    {
      "id": "0000320193:2026:Q4",
      "cik": "0000320193",
      "ticker": "AAPL",
      "companyName": "Apple Inc.",
      "fiscalYear": 2026,
      "fiscalPeriod": "Q4",
      "periodStart": "2026-06-28",
      "periodEnd": "2026-09-26",
      "filedOn": "2026-11-03",
      "form": "10-K",
      "accessionNo": "0000320193-26-000026",
      "sector": "Technology",
      "currency": "USD",
      "derived": true,
      "incomeStatement": {
        "revenue": 114477000000,
        "costOfRevenue": 59657000000,
        "grossProfit": 54820000000,
        "researchDevelopment": 11730000000,
        "sellingGeneralAdmin": 7459000000,
        "operatingIncome": 35631000000,
        "interestExpense": null,
        "pretaxIncome": 36135000000,
        "incomeTax": 5424000000,
        "netIncome": 30711000000,
        "epsBasic": 2.11,
        "epsDiluted": 2.11,
        "sharesDiluted": null
      },
      "balanceSheet": {
        "cash": 36305000000,
        "shortTermInvestments": 20417000000,
        "receivables": 43817000000,
        "inventory": 14541000000,
        "currentAssets": 173857000000,
        "goodwill": null,
        "totalAssets": 404548000000,
        "currentLiabilities": 169915000000,
        "shortTermDebt": 9906000000,
        "longTermDebt": 68208000000,
        "totalDebt": 78114000000,
        "totalLiabilities": 292455000000,
        "equity": 112093000000
      },
      "cashFlow": {
        "operatingCashFlow": 28101000000,
        "investingCashFlow": 1531000000,
        "financingCashFlow": -32871000000,
        "capex": 2242000000,
        "freeCashFlow": 25859000000,
        "dividendsPaid": 3943000000,
        "shareRepurchases": 24296000000,
        "stockCompensation": 3266000000,
        "depreciation": 3450000000
      }
    },
    {
      "id": "0000320193:2026:Q3",
      "cik": "0000320193",
      "ticker": "AAPL",
      "companyName": "Apple Inc.",
      "fiscalYear": 2026,
      "fiscalPeriod": "Q3",
      "periodStart": "2026-03-29",
      "periodEnd": "2026-06-27",
      "filedOn": "2026-07-31",
      "form": "10-Q",
      "accessionNo": "0000320193-26-000020",
      "sector": "Technology",
      "currency": "USD",
      "derived": false,
      "incomeStatement": {
        "revenue": 109417000000,
        "costOfRevenue": 54647000000,
        "grossProfit": 54770000000,
        "researchDevelopment": 11729000000,
        "sellingGeneralAdmin": 7346000000,
        "operatingIncome": 35695000000,
        "interestExpense": null,
        "pretaxIncome": 36267000000,
        "incomeTax": 6478000000,
        "netIncome": 29789000000,
        "epsBasic": 2.03,
        "epsDiluted": 2.02,
        "sharesDiluted": 14714676000
      },
      "balanceSheet": {
        "cash": 39544000000,
        "shortTermInvestments": 22855000000,
        "receivables": 31398000000,
        "inventory": 11092000000,
        "currentAssets": 149818000000,
        "goodwill": null,
        "totalAssets": 383266000000,
        "currentLiabilities": 149326000000,
        "shortTermDebt": 11007000000,
        "longTermDebt": 71340000000,
        "totalDebt": 82347000000,
        "totalLiabilities": 275746000000,
        "equity": 107520000000
      },
      "cashFlow": {
        "operatingCashFlow": 34369000000,
        "investingCashFlow": -7757000000,
        "financingCashFlow": -32640000000,
        "capex": 2455000000,
        "freeCashFlow": 31914000000,
        "dividendsPaid": 4035000000,
        "shareRepurchases": 25105000000,
        "stockCompensation": 3401000000,
        "depreciation": 3320000000
      }
    },
    {
      "id": "0000320193:2026:Q2",
      "cik": "0000320193",
      "ticker": "AAPL",
      "companyName": "Apple Inc.",
      "fiscalYear": 2026,
      "fiscalPeriod": "Q2",
      "periodStart": "2025-12-28",
      "periodEnd": "2026-03-28",
      "filedOn": "2026-05-01",
      "form": "10-Q",
      "accessionNo": "0000320193-26-000013",
      "sector": "Technology",
      "currency": "USD",
      "derived": false,
      "incomeStatement": {
        "revenue": 111184000000,
        "costOfRevenue": 56403000000,
        "grossProfit": 54781000000,
        "researchDevelopment": 11419000000,
        "sellingGeneralAdmin": 7477000000,
        "operatingIncome": 35885000000,
        "interestExpense": null,
        "pretaxIncome": 35833000000,
        "incomeTax": 6255000000,
        "netIncome": 29578000000,
        "epsBasic": 2.02,
        "epsDiluted": 2.01,
        "sharesDiluted": 14725873000
      },
      "balanceSheet": {
        "cash": 45572000000,
        "shortTermInvestments": 22935000000,
        "receivables": 30339000000,
        "inventory": 6747000000,
        "currentAssets": 144114000000,
        "goodwill": null,
        "totalAssets": 371082000000,
        "currentLiabilities": 134641000000,
        "shortTermDebt": 8310000000,
        "longTermDebt": 74404000000,
        "totalDebt": 82714000000,
        "totalLiabilities": 264591000000,
        "equity": 106491000000
      },
      "cashFlow": {
        "operatingCashFlow": 28702000000,
        "investingCashFlow": -6168000000,
        "financingCashFlow": -22279000000,
        "capex": 1971000000,
        "freeCashFlow": 26731000000,
        "dividendsPaid": 3822000000,
        "shareRepurchases": 12288000000,
        "stockCompensation": 3528000000,
        "depreciation": 3439000000
      }
    },
    {
      "id": "0000320193:2026:Q1",
      "cik": "0000320193",
      "ticker": "AAPL",
      "companyName": "Apple Inc.",
      "fiscalYear": 2026,
      "fiscalPeriod": "Q1",
      "periodStart": "2025-09-28",
      "periodEnd": "2025-12-27",
      "filedOn": "2026-01-30",
      "form": "10-Q",
      "accessionNo": "0000320193-26-000006",
      "sector": "Technology",
      "currency": "USD",
      "derived": false,
      "incomeStatement": {
        "revenue": 143756000000,
        "costOfRevenue": 74525000000,
        "grossProfit": 69231000000,
        "researchDevelopment": 10887000000,
        "sellingGeneralAdmin": 7492000000,
        "operatingIncome": 50852000000,
        "interestExpense": null,
        "pretaxIncome": 51002000000,
        "incomeTax": 8905000000,
        "netIncome": 42097000000,
        "epsBasic": 2.85,
        "epsDiluted": 2.84,
        "sharesDiluted": 14810356000
      },
      "balanceSheet": {
        "cash": 45317000000,
        "shortTermInvestments": 21590000000,
        "receivables": 39921000000,
        "inventory": 5875000000,
        "currentAssets": 158104000000,
        "goodwill": null,
        "totalAssets": 379297000000,
        "currentLiabilities": 162367000000,
        "shortTermDebt": 11827000000,
        "longTermDebt": 76685000000,
        "totalDebt": 88512000000,
        "totalLiabilities": 291107000000,
        "equity": 88190000000
      },
      "cashFlow": {
        "operatingCashFlow": 53925000000,
        "investingCashFlow": -4886000000,
        "financingCashFlow": -39656000000,
        "capex": 2373000000,
        "freeCashFlow": 51552000000,
        "dividendsPaid": 3921000000,
        "shareRepurchases": 24701000000,
        "stockCompensation": 3594000000,
        "depreciation": 3214000000
      }
    },
    {
      "id": "0000320193:2025:Q4",
      "cik": "0000320193",
      "ticker": "AAPL",
      "companyName": "Apple Inc.",
      "fiscalYear": 2025,
      "fiscalPeriod": "Q4",
      "periodStart": "2025-06-29",
      "periodEnd": "2025-09-27",
      "filedOn": "2026-11-03",
      "form": "10-K",
      "accessionNo": "0000320193-26-000026",
      "sector": "Technology",
      "currency": "USD",
      "derived": true,
      "incomeStatement": {
        "revenue": 102466000000,
        "costOfRevenue": 54125000000,
        "grossProfit": 48341000000,
        "researchDevelopment": 8866000000,
        "sellingGeneralAdmin": 7048000000,
        "operatingIncome": 32427000000,
        "interestExpense": null,
        "pretaxIncome": 32804000000,
        "incomeTax": 5338000000,
        "netIncome": 27466000000,
        "epsBasic": 1.86,
        "epsDiluted": 1.84,
        "sharesDiluted": null
      },
      "balanceSheet": {
        "cash": 35934000000,
        "shortTermInvestments": 18763000000,
        "receivables": 39777000000,
        "inventory": 5718000000,
        "currentAssets": 147957000000,
        "goodwill": null,
        "totalAssets": 359241000000,
        "currentLiabilities": 165631000000,
        "shortTermDebt": 12350000000,
        "longTermDebt": 78328000000,
        "totalDebt": 90678000000,
        "totalLiabilities": 285508000000,
        "equity": 73733000000
      },
      "cashFlow": {
        "operatingCashFlow": 29728000000,
        "investingCashFlow": -2587000000,
        "financingCashFlow": -27476000000,
        "capex": 3242000000,
        "freeCashFlow": 26486000000,
        "dividendsPaid": 3862000000,
        "shareRepurchases": 20132000000,
        "stockCompensation": 3183000000,
        "depreciation": 3127000000
      }
    }
  ]
}
Edit this query in the playground

derived: true means the quarter wasn't reported on its own and was worked out from the annual figure minus the first three quarters, which is how Q4 is always reported.

A screen across companies

Which non-financial companies with over $10 billion in revenue had negative free cash flow last fiscal year?

A screen across every filer in one call, which needs the same field names for every company to work.

shell
curl -X POST https://www.quantisnow.com/api/v1/financials \
  -H "Authorization: Bearer $QUANTISNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "fiscalPeriod:FY AND fiscalYear:2025 AND incomeStatement.revenue:>10000000000 AND cashFlow.freeCashFlow:<0 AND currency:USD AND NOT sector:Finance",
  "from": 0,
  "size": 5,
  "sort": [
    {
      "incomeStatement.revenue": {
        "order": "desc"
      }
    }
  ]
}'

40 matches, first 5

  1. BA logo
    BABoeing Company FY 2025Revenue $89.5B · net income $2.23B · free cash flow -$1.88B$89.5B
  2. BN logo
    BNBrookfield Corporation FY 2025Revenue $75.1B · net income $1.31B · free cash flow -$3.79B$75.1B
  3. BG logo
    BGBunge Limited FY 2025Revenue $70.3B · net income $816.0M · free cash flow -$879.0M$70.3B
  4. ORCL logo
    ORCLOracle Corporation FY 2025Revenue $57.4B · net income $12.4B · free cash flow -$394.0M$57.4B
  5. AAL logo
    AALAmerican Airlines Group Inc. FY 2025Revenue $54.6B · net income $111.0M · free cash flow -$680.0M$54.6B
The JSON it returned
200 OK · 40 matches · first 5
{
  "total": {
    "value": 40,
    "relation": "eq"
  },
  "data": [
    {
      "id": "0000012927:2025:FY",
      "cik": "0000012927",
      "ticker": "BA",
      "companyName": "Boeing Company",
      "fiscalYear": 2025,
      "fiscalPeriod": "FY",
      "periodStart": "2025-01-01",
      "periodEnd": "2025-12-31",
      "filedOn": "2026-01-30",
      "form": "10-K",
      "accessionNo": "0001628280-26-004357",
      "sector": "Industrials",
      "currency": "USD",
      "derived": false,
      "incomeStatement": {
        "revenue": 89463000000,
        "costOfRevenue": 85174000000,
        "grossProfit": 4289000000,
        "researchDevelopment": 3615000000,
        "sellingGeneralAdmin": 6090000000,
        "operatingIncome": 4281000000,
        "interestExpense": null,
        "pretaxIncome": 2635000000,
        "incomeTax": 397000000,
        "netIncome": 2235000000,
        "epsBasic": 2.49,
        "epsDiluted": 2.48,
        "sharesDiluted": 762300000
      },
      "balanceSheet": {
        "cash": 10921000000,
        "shortTermInvestments": 18479000000,
        "receivables": 2921000000,
        "inventory": null,
        "currentAssets": 128459000000,
        "goodwill": 17275000000,
        "totalAssets": 168235000000,
        "currentLiabilities": 108115000000,
        "shortTermDebt": 8461000000,
        "longTermDebt": 45637000000,
        "totalDebt": 54098000000,
        "totalLiabilities": 162778000000,
        "equity": 5454000000
      },
      "cashFlow": {
        "operatingCashFlow": 1065000000,
        "investingCashFlow": 499000000,
        "financingCashFlow": -3763000000,
        "capex": 2942000000,
        "freeCashFlow": -1877000000,
        "dividendsPaid": 331000000,
        "shareRepurchases": null,
        "stockCompensation": 426000000,
        "depreciation": 1953000000
      }
    },
    {
      "id": "0001001085:2025:FY",
      "cik": "0001001085",
      "ticker": "BN",
      "companyName": "Brookfield Corporation",
      "fiscalYear": 2025,
      "fiscalPeriod": "FY",
      "periodStart": "2025-01-01",
      "periodEnd": "2025-12-31",
      "filedOn": "2026-03-18",
      "form": "40-F",
      "accessionNo": "0001001085-26-000006",
      "sector": "Real Estate",
      "currency": "USD",
      "derived": false,
      "incomeStatement": {
        "revenue": 75100000000,
        "costOfRevenue": 28351000000,
        "grossProfit": 46749000000,
        "researchDevelopment": null,
        "sellingGeneralAdmin": 5131000000,
        "operatingIncome": null,
        "interestExpense": null,
        "pretaxIncome": null,
        "incomeTax": 1135000000,
        "netIncome": 1307000000,
        "epsBasic": 0.51,
        "epsDiluted": 0.49,
        "sharesDiluted": 2367800000
      },
      "balanceSheet": {
        "cash": 16242000000,
        "shortTermInvestments": null,
        "receivables": 22772000000,
        "inventory": 5923000000,
        "currentAssets": null,
        "goodwill": 43355000000,
        "totalAssets": 518971000000,
        "currentLiabilities": null,
        "shortTermDebt": null,
        "longTermDebt": 13800000000,
        "totalDebt": 13800000000,
        "totalLiabilities": 352777000000,
        "equity": 166194000000
      },
      "cashFlow": {
        "operatingCashFlow": 10958000000,
        "investingCashFlow": -31777000000,
        "financingCashFlow": 21687000000,
        "capex": 14752000000,
        "freeCashFlow": -3794000000,
        "dividendsPaid": null,
        "shareRepurchases": null,
        "stockCompensation": null,
        "depreciation": 10379000000
      }
    },
    {
      "id": "0001996862:2025:FY",
      "cik": "0001996862",
      "ticker": "BG",
      "companyName": "Bunge Limited",
      "fiscalYear": 2025,
      "fiscalPeriod": "FY",
      "periodStart": "2025-01-01",
      "periodEnd": "2025-12-31",
      "filedOn": "2026-02-19",
      "form": "10-K",
      "accessionNo": "0001628280-26-009842",
      "sector": "Consumer Staples",
      "currency": "USD",
      "derived": false,
      "incomeStatement": {
        "revenue": 70329000000,
        "costOfRevenue": 66920000000,
        "grossProfit": 3409000000,
        "researchDevelopment": 28000000,
        "sellingGeneralAdmin": 2113000000,
        "operatingIncome": null,
        "interestExpense": 628000000,
        "pretaxIncome": 1134000000,
        "incomeTax": 288000000,
        "netIncome": 816000000,
        "epsBasic": 4.95,
        "epsDiluted": 4.91,
        "sharesDiluted": 166466940
      },
      "balanceSheet": {
        "cash": 1135000000,
        "shortTermInvestments": 861000000,
        "receivables": 3870000000,
        "inventory": 13198000000,
        "currentAssets": 24391000000,
        "goodwill": 3141000000,
        "totalAssets": 44528000000,
        "currentLiabilities": 15127000000,
        "shortTermDebt": 5220000000,
        "longTermDebt": 8831000000,
        "totalDebt": 14051000000,
        "totalLiabilities": 27159000000,
        "equity": 15904000000
      },
      "cashFlow": {
        "operatingCashFlow": 844000000,
        "investingCashFlow": -5227000000,
        "financingCashFlow": 2229000000,
        "capex": 1723000000,
        "freeCashFlow": -879000000,
        "dividendsPaid": 459000000,
        "shareRepurchases": 551000000,
        "stockCompensation": null,
        "depreciation": 703000000
      }
    },
    {
      "id": "0001341439:2025:FY",
      "cik": "0001341439",
      "ticker": "ORCL",
      "companyName": "Oracle Corporation",
      "fiscalYear": 2025,
      "fiscalPeriod": "FY",
      "periodStart": "2024-06-01",
      "periodEnd": "2025-05-31",
      "filedOn": "2026-06-22",
      "form": "10-K",
      "accessionNo": "0001193125-26-277521",
      "sector": "Technology",
      "currency": "USD",
      "derived": false,
      "incomeStatement": {
        "revenue": 57399000000,
        "costOfRevenue": null,
        "grossProfit": null,
        "researchDevelopment": 9860000000,
        "sellingGeneralAdmin": 1602000000,
        "operatingIncome": 17678000000,
        "interestExpense": 3578000000,
        "pretaxIncome": null,
        "incomeTax": 1717000000,
        "netIncome": 12443000000,
        "epsBasic": 4.46,
        "epsDiluted": 4.34,
        "sharesDiluted": 2866000000
      },
      "balanceSheet": {
        "cash": 10786000000,
        "shortTermInvestments": null,
        "receivables": 8558000000,
        "inventory": 303000000,
        "currentAssets": 24579000000,
        "goodwill": 62207000000,
        "totalAssets": 168361000000,
        "currentLiabilities": 32643000000,
        "shortTermDebt": 7271000000,
        "longTermDebt": null,
        "totalDebt": 92568000000,
        "totalLiabilities": 147392000000,
        "equity": 20451000000
      },
      "cashFlow": {
        "operatingCashFlow": 20821000000,
        "investingCashFlow": -21711000000,
        "financingCashFlow": 1098000000,
        "capex": 21215000000,
        "freeCashFlow": -394000000,
        "dividendsPaid": 4743000000,
        "shareRepurchases": 600000000,
        "stockCompensation": 4674000000,
        "depreciation": null
      }
    },
    {
      "id": "0000006201:2025:FY",
      "cik": "0000006201",
      "ticker": "AAL",
      "companyName": "American Airlines Group Inc.",
      "fiscalYear": 2025,
      "fiscalPeriod": "FY",
      "periodStart": "2025-01-01",
      "periodEnd": "2025-12-31",
      "filedOn": "2026-02-18",
      "form": "10-K",
      "accessionNo": "0000006201-26-000014",
      "sector": "Consumer Discretionary",
      "currency": "USD",
      "derived": false,
      "incomeStatement": {
        "revenue": 54633000000,
        "costOfRevenue": null,
        "grossProfit": null,
        "researchDevelopment": null,
        "sellingGeneralAdmin": null,
        "operatingIncome": 1467000000,
        "interestExpense": 1716000000,
        "pretaxIncome": 190000000,
        "incomeTax": 79000000,
        "netIncome": 111000000,
        "epsBasic": 0.17,
        "epsDiluted": 0.17,
        "sharesDiluted": 661052000
      },
      "balanceSheet": {
        "cash": 1056000000,
        "shortTermInvestments": null,
        "receivables": 2075000000,
        "inventory": null,
        "currentAssets": 12205000000,
        "goodwill": 4091000000,
        "totalAssets": 61774000000,
        "currentLiabilities": 24492000000,
        "shortTermDebt": 3641000000,
        "longTermDebt": 25254000000,
        "totalDebt": 28895000000,
        "totalLiabilities": null,
        "equity": -3727000000
      },
      "cashFlow": {
        "operatingCashFlow": 3099000000,
        "investingCashFlow": -1894000000,
        "financingCashFlow": -1051000000,
        "capex": 3779000000,
        "freeCashFlow": -680000000,
        "dividendsPaid": null,
        "shareRepurchases": null,
        "stockCompensation": 57000000,
        "depreciation": 2200000000
      }
    }
  ]
}
Edit this query in the playground

Revenue growth in Python

python
import os, requests

BASE = "https://www.quantisnow.com/api/v1"
KEY = os.environ["QUANTISNOW_API_KEY"]

def search(endpoint, query, size=50, sort=None, start=0):
    body = {"query": query, "size": size, "from": start}
    if sort:
        body["sort"] = sort
    res = requests.post(f"{BASE}/{endpoint}", json=body,
                        headers={"Authorization": f"Bearer {KEY}"}, timeout=30)
    res.raise_for_status()
    return res.json()
import pandas as pd

page = search("financials", "ticker:MSFT AND fiscalPeriod:(Q1 OR Q2 OR Q3 OR Q4)",
              sort="periodEnd:desc", size=12)
df = pd.json_normalize(page["data"]).set_index("periodEnd").sort_index()
rev = df["incomeStatement.revenue"]
print((rev / rev.shift(4) - 1).dropna().round(3))  # year-over-year growth by quarter

In JavaScript

javascript
const BASE = "https://www.quantisnow.com/api/v1";

async function search(endpoint, query, { size = 50, sort, from = 0 } = {}) {
  const res = await fetch(BASE + "/" + endpoint, {
    method: "POST",
    headers: {
      Authorization: "Bearer " + process.env.QUANTISNOW_API_KEY,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ query, size, from, sort }),
  });
  if (!res.ok) throw new Error((await res.json()).error.message);
  return res.json();
}

// Annual operating margin for a list of companies
for (const t of ["AAPL", "MSFT", "GOOGL"]) {
  const { data } = await search("financials", "ticker:" + t + " AND fiscalPeriod:FY", { sort: "fiscalYear:desc", size: 1 });
  const s = data[0].incomeStatement;
  console.log(t, data[0].fiscalYear, (s.operatingIncome / s.revenue).toFixed(3));
}

For a full walk through loading statements into a DataFrame, see SEC financial statements in pandas.

Related guides

Run your own queries with a key

Sign up, press one button on the keys page and the key is on your screen, with 20 free calls to try it.

Quantisnow is not affiliated with or endorsed by the U.S. Securities and Exchange Commission. EDGAR is the SEC's filing system; the filings themselves are public records.