Stock Analysis API: Get financial statements
Looks up a company by name or ticker on Stock Analysis and returns its annual or quarterly income statement, balance sheet, or cash flow statement for the free periods.
Unofficial. Not affiliated with or endorsed by Stock Analysis.
Inputs
Values from the run on Oct 23, 2026, shown under Output.
- Period optional
period Fiscal period to read, for example quarterly.
quarterly
One of
annual,quarterly. Defaultannual.- Company, required
company Company name or stock ticker, for example Microsoft or MSFT.
AAPL
- Statement optional
statement Financial statement to read, for example balance_sheet.
income_statement
One of
income_statement,balance_sheet,cash_flow. Defaultincome_statement.
Input as JSON
{ "period": "quarterly", "company": "AAPL", "statement": "income_statement"}Output
{ "rows": [ { "revenue": 109417000000, "page_url": "https://stockanalysis.com/stocks/aapl/financials/income-statement/?p=quarterly" , "net_income": 29789000000, "diluted_eps": 2.02, "gross_profit": 54770000000, "period_label": "Q3 2026", "net_margin_pct": 27.22, "period_end_date": "2026-06-27", "gross_margin_pct": 50.06, "operating_income": 35695000000, "revenue_growth_pct": 16.36, "operating_margin_pct": 32.62 }, { "revenue": 111184000000, "page_url": "https://stockanalysis.com/stocks/aapl/financials/income-statement/?p=quarterly" , "net_income": 29578000000, "diluted_eps": 2.01, "gross_profit": 54781000000, "period_label": "Q2 2026", "net_margin_pct": 26.6, "period_end_date": "2026-03-28", "gross_margin_pct": 49.27, "operating_income": 35885000000, "revenue_growth_pct": 16.59, "operating_margin_pct": 32.27 }, { "revenue": 143756000000, "page_url": "https://stockanalysis.com/stocks/aapl/financials/income-statement/?p=quarterly" , "net_income": 42097000000, "diluted_eps": 2.84, "gross_profit": 69231000000, "period_label": "Q1 2026", "net_margin_pct": 29.28, "period_end_date": "2025-12-27", "gross_margin_pct": 48.16, "operating_income": 50852000000, "revenue_growth_pct": 15.65, "operating_margin_pct": 35.37 } ], "ticker": "AAPL", "company": "Apple Inc.", "currency": "USD"}Code
curl https://api.fous.com/v1/runs \ -H "Authorization: Bearer $FOUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"method":"stockanalysis.com/get_financial_statements","input":{"period":"quarterly","company":"AAPL","statement":"income_statement"}}' # Save as fous.py, then run: python3 fous.pyimport json, os, timefrom urllib.error import HTTPErrorfrom urllib.request import Request, urlopenAPI = "https://api.fous.com/v1/runs" KEY = os.environ["FOUS_API_KEY"]HEADERS = { "Authorization": f"Bearer {KEY}", "Content-Type": "application/json" ,}def call(url, body=None): data = json.dumps(body).encode() if body else None request = Request(url, data, HEADERS) try: with urlopen(request, timeout=120) as r: return r.status, json.load(r) except HTTPError as error: message = json.load(error)["error"]["message"] raise RuntimeError(message) from errorstatus, run = call(API, { "method": "stockanalysis.com/get_financial_statements" , "input": { "period": "quarterly", "company": "AAPL", "statement": "income_statement" }})# 202: still going after 30 s. Ask again until it ends.while status == 202: time.sleep(2) status, run = call(f"{API}/{run['id']}")print(json.dumps(run["data"], indent=2))// Save as fous.mjs, then run: node fous.mjsconst api = "https://api.fous.com/v1/runs" ;const headers = { Authorization: `Bearer ${process.env.FOUS_API_KEY}`, "Content-Type": "application/json" ,};let response = await fetch(api, { method: "POST", headers, body: JSON.stringify({ "method": "stockanalysis.com/get_financial_statements" , "input": { "period": "quarterly", "company": "AAPL", "statement": "income_statement" } }), signal: AbortSignal.timeout(120_000),});let run = await response.json();// 202: still going after 30 s. Ask again until it ends.while (response.status === 202) { await new Promise((done) => setTimeout(done, 2_000)); response = await fetch(`${api}/${run.id}`, { headers }); run = await response.json();}if (!response.ok) throw new Error(run.error.message);console.log(run.data);# Connect your agent to Fous once, over MCP (Streamable HTTP):# https://api.fous.com/mcp# Set FOUS_API_KEY first: create a key at https://app.fous.com/keys.# Claude Codeclaude mcp add \ --scope user \ --transport http fous https://api.fous.com/mcp \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Codexcodex mcp add fous \ --url https://api.fous.com/mcp \ --bearer-token-env-var FOUS_API_KEY# Cursor, VS Code, Windsurf, Cline and morenpx -y add-mcp https://api.fous.com/mcp -g -n fous \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Then ask your agent:# "Use Fous to run stockanalysis.com/get_financial_statements# with {"period":"quarterly","company":"AAPL","statement":"income_statement"}"Over HTTP, the answer’s data holds the output. A run still going after 30 seconds answers 202 with its id: ask GET /v1/runs/{id} until it ends.
Schema
Input schema
{ "type": "object", "required": [ "company" ], "properties": { "period": { "enum": [ "annual", "quarterly" ], "type": "string", "default": "annual", "description": "Fiscal period to read, for example quarterly." }, "company": { "type": "string", "minLength": 1, "description": "Company name or stock ticker, for example Microsoft or MSFT." }, "statement": { "enum": [ "income_statement", "balance_sheet", "cash_flow" ], "type": "string", "default": "income_statement", "description": "Financial statement to read, for example balance_sheet." } }}Output schema
{ "type": "object", "required": [ "company", "ticker", "currency", "rows" ], "properties": { "rows": { "type": "array", "items": { "type": "object", "required": [ "period_label", "period_end_date", "page_url" ], "properties": { "cash": { "type": [ "number", "null" ], "description": "Full amount in the stated currency, or null when not shown." }, "revenue": { "type": [ "number", "null" ], "description": "Full amount in the stated currency, or null when not shown." }, "page_url": { "type": "string", "description": "Link to the public statement page." }, "net_income": { "type": [ "number", "null" ], "description": "Full amount in the stated currency, or null when not shown." }, "total_debt": { "type": [ "number", "null" ], "description": "Full amount in the stated currency, or null when not shown." }, "diluted_eps": { "type": [ "number", "null" ], "description": "Diluted earnings per share in the stated currency." }, "gross_profit": { "type": [ "number", "null" ], "description": "Full amount in the stated currency, or null when not shown." }, "period_label": { "type": "string", "description": "Fiscal year or quarter, such as FY 2025 or Q2 2026." }, "total_assets": { "type": [ "number", "null" ], "description": "Full amount in the stated currency, or null when not shown." }, "dividends_paid": { "type": [ "number", "null" ], "description": "Full amount in the stated currency, or null when not shown." }, "free_cash_flow": { "type": [ "number", "null" ], "description": "Full amount in the stated currency, or null when not shown." }, "net_margin_pct": { "type": [ "number", "null" ], "description": "Percentage points, or null when not shown." }, "period_end_date": { "type": "string", "format": "date", "description": "Last day of the fiscal period." }, "gross_margin_pct": { "type": [ "number", "null" ], "description": "Percentage points, or null when not shown." }, "operating_income": { "type": [ "number", "null" ], "description": "Full amount in the stated currency, or null when not shown." }, "total_liabilities": { "type": [ "number", "null" ], "description": "Full amount in the stated currency, or null when not shown." }, "revenue_growth_pct": { "type": [ "number", "null" ], "description": "Percentage points, or null when not shown." }, "operating_cash_flow": { "type": [ "number", "null" ], "description": "Full amount in the stated currency, or null when not shown." }, "shareholders_equity": { "type": [ "number", "null" ], "description": "Full amount in the stated currency, or null when not shown." }, "capital_expenditures": { "type": [ "number", "null" ], "description": "Full amount in the stated currency, or null when not shown." }, "operating_margin_pct": { "type": [ "number", "null" ], "description": "Percentage points, or null when not shown." } }, "additionalProperties": false }, "description": "Available free fiscal periods, newest first. Each row contains the requested statement's fields." }, "ticker": { "type": "string", "description": "Stock ticker." }, "company": { "type": "string", "description": "Company name." }, "currency": { "type": "string", "description": "Three-letter currency code for statement values." } }}- Price
- 1 credit per completed run (1¢ with pay as you go); failed runs are free.
- Method
stockanalysis.com/get_financial_statements- Returns
- period end dates, revenue, profit, margins, balance sheet or cash flow values
Use it from your agent
Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method stockanalysis.com/get_financial_statements with the inputs above.
Ask your agent
- Show me Apple's quarterly income statement with revenue and net profit margins
- Pull the annual balance sheet for Tesla
- What are Nvidia's latest quarterly cash flow numbers on stockanalysis.com?
- Get Amazon's annual income statement for the last few fiscal years
- Can you look up the balance sheet for JPM quarterly, including total assets and liabilities?
See more
All Stock Analysis methodsLooks up a stock by company name or ticker on Stock Analysis and returns its valuation ratios and company statistics, with the date the figures were last updated.
stockanalysis.com/get_key_statisticsLists US IPOs from a chosen year, newest first. Each IPO comes with its IPO price, current price and return since IPO. Coverage begins in 2019.
stockanalysis.com/list_recent_iposGets an ETF's free holdings list from Stock Analysis by ticker or exact fund name: each holding's weight and shares, plus the fund's expense ratio, total number of holdings, holdings date and exact assets under management when shown.
stockanalysis.com/get_etf_holdingsGets a company's quarterly or annual income statement, balance sheet or cash flow lines from its Google Finance quote page, with exact reported amounts and year-over-year changes.
google.com/get_company_financialsLooks up a public company by name or ticker on SEC EDGAR and returns its reported annual or quarterly financial figures from XBRL company facts. Quarterly flows are derived from year-to-date totals when no quarterly figure is filed. Unavailable figures are null.
sec.gov/get_company_financialsGet a delayed US-listed stock snapshot from its ticker or company name. Analyst labels summarize Finviz's 1-5 mean score; dividend yield uses the estimated dividend when available. Missing metrics return null.
finviz.com/get_stock_snapshotFinds a public company by name or ticker in SEC EDGAR and lists its filings, newest first, optionally narrowed by filing type and filing date.
sec.gov/get_company_filingsShows analyst recommendations, price targets, earnings estimates and recent rating changes for a public company on Yahoo Finance.
finance.yahoo.com/get_analyst_ratings