Skip to main content
GET
https://stocks-dev.up.railway.app
/
api
/
v1
/
fmp
/
stock
/
{symbol}
/
financials
curl -X GET "https://stocks-dev.up.railway.app/api/v1/fmp/stock/AAPL/financials?statement_type=income&period=annual" \
  -H "X-API-Key: your_api_key"
{
  "symbol": "AAPL",
  "statement_type": "income",
  "period": "annual",
  "data": [
    {
      "date": "2023-09-30",
      "symbol": "AAPL",
      "revenue": 383285000000,
      "costOfRevenue": 214137000000,
      "grossProfit": 169148000000,
      "operatingExpenses": 55013000000,
      "operatingIncome": 114301000000,
      "netIncome": 96995000000,
      "eps": 6.13,
      "epsdiluted": 6.13,
      "weightedAverageShsOut": 15812547000,
      "weightedAverageShsOutDil": 15812547000
    },
    {
      "date": "2022-09-24",
      "symbol": "AAPL",
      "revenue": 394328000000,
      "costOfRevenue": 223546000000,
      "grossProfit": 170782000000,
      "operatingExpenses": 51345000000,
      "operatingIncome": 119437000000,
      "netIncome": 99803000000,
      "eps": 6.15,
      "epsdiluted": 6.15,
      "weightedAverageShsOut": 16215963000,
      "weightedAverageShsOutDil": 16215963000
    }
  ]
}
Get comprehensive financial statements from Financial Modeling Prep, including income statements, balance sheets, and cash flow statements with detailed line items.

Parameters

symbol
string
required
Stock symbol (e.g., AAPL, MSFT, GOOGL)
statement_type
string
default:"income"
Type of financial statement:
  • income: Income statement
  • balance: Balance sheet
  • cash: Cash flow statement
period
string
default:"annual"
Reporting period:
  • annual: Annual reports
  • quarter: Quarterly reports

Response

symbol
string
The stock symbol
statement_type
string
Type of statement returned
period
string
Reporting period (annual/quarter)
data
array
Array of financial statement data by period
curl -X GET "https://stocks-dev.up.railway.app/api/v1/fmp/stock/AAPL/financials?statement_type=income&period=annual" \
  -H "X-API-Key: your_api_key"
{
  "symbol": "AAPL",
  "statement_type": "income",
  "period": "annual",
  "data": [
    {
      "date": "2023-09-30",
      "symbol": "AAPL",
      "revenue": 383285000000,
      "costOfRevenue": 214137000000,
      "grossProfit": 169148000000,
      "operatingExpenses": 55013000000,
      "operatingIncome": 114301000000,
      "netIncome": 96995000000,
      "eps": 6.13,
      "epsdiluted": 6.13,
      "weightedAverageShsOut": 15812547000,
      "weightedAverageShsOutDil": 15812547000
    },
    {
      "date": "2022-09-24",
      "symbol": "AAPL",
      "revenue": 394328000000,
      "costOfRevenue": 223546000000,
      "grossProfit": 170782000000,
      "operatingExpenses": 51345000000,
      "operatingIncome": 119437000000,
      "netIncome": 99803000000,
      "eps": 6.15,
      "epsdiluted": 6.15,
      "weightedAverageShsOut": 16215963000,
      "weightedAverageShsOutDil": 16215963000
    }
  ]
}

Statement Types

Income Statement

  • Revenue and cost breakdown
  • Operating expenses and income
  • Net income and EPS
  • Tax information

Balance Sheet

  • Assets (current and non-current)
  • Liabilities (current and long-term)
  • Shareholder equity
  • Working capital metrics

Cash Flow Statement

  • Operating cash flow
  • Investing activities
  • Financing activities
  • Free cash flow

Use Cases

  • Financial Analysis: Evaluate company performance
  • Valuation Models: Build DCF and other models
  • Trend Analysis: Track financial metrics over time
  • Comparative Analysis: Compare companies within sectors

Data Source

This endpoint uses Financial Modeling Prep (FMP) professional data with comprehensive coverage of US and international markets.

Notes

  • Annual data typically covers the last 5-10 years
  • Quarterly data provides the most recent 8-12 quarters
  • All monetary values are in the company’s reporting currency
  • Data is updated after earnings releases