Financial Modeling Prep API

⭐ Beginner's Pick Finance / API Key Intermediate HTTPS
Varies by plan (check documentation)

Overview

Financial Modeling Prep (FMP) provides a comprehensive API for real-time and historical stock market data, including income statements, balance sheets, stock prices, earnings, and more for thousands of companies. It is popular among developers and analysts who need financial statement data without scraping. The free tier offers enough data to build personal finance tools and learn financial data analysis.

💡

Beginner Tip

The /profile endpoint is a great first call — it returns a company's key stats, sector, description, and current price in a single request. Store your API key in an environment variable rather than hardcoding it so you can safely share your code.

Available Data

stock price and symbol
open/close/high/low values
trading volume
market cap
historical price data

Example Response

JSON Response
{
  "status": "success",
  "data": {
    "result": "Data from Financial Modeling Prep",
    "description": "Realtime and historical stock data",
    "timestamp": "2025-01-15T10:00:00Z"
  }
}

Field Reference

symbol The stock ticker symbol (e.g., "AAPL" for Apple Inc.).
companyName The full legal name of the company.
price The current market price per share.
mktCap The total market capitalization in USD (share price times total shares outstanding).
sector The industry sector the company belongs to, such as "Technology" or "Healthcare".
description A brief summary of the company's business and operations.

Implementation Example

// ⚠️ Note: This URL may be a documentation page. Check official docs for actual API endpoint.
const url = "https://site.financialmodelingprep.com/developer/docs";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

401 Unauthorized or empty response The API key is missing from the request or is invalid.
Always append ?apikey=YOUR_API_KEY to every request URL and double-check the key in your FMP account dashboard.
Empty array [] response The ticker symbol does not exist or is not covered by FMP.
Verify the ticker on the FMP website or use the /search endpoint to find valid symbols before requesting detailed data.
403 Forbidden on financial statements Financial statement endpoints like /income-statement require a paid plan.
Check which endpoints are available on your plan tier — the free plan covers basic price data but detailed financials require a paid subscription.

Matrix Score Breakdown

🌐 Reachability 0/30
⚡ Speed 5/20
🔒 Security 15/15
🛠 Developer XP 12/20
✓ Reliability 0/15

Partially tested on Apr 5, 2026

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS UNKNOWN
Category Finance
Difficulty Intermediate
Verified: 2026-04-04

Similar APIs

View All →