Financial Modeling Prep API
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
Example 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
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Similar APIs
View All →Aletheia
Aletheia provides financial data including insider trading filings, earnings call transcripts, and financial statements for US-listed companies.
Alpaca
Alpaca provides real-time and historical market data for US equities and ETFs, along with commission-free trading capabilities.
Alpha Vantage
⭐ Beginner's PickAlpha Vantage delivers free real-time and historical stock, forex, and cryptocurrency data through a simple REST API.
Bank Data API
Bank Data API lets you instantly validate IBAN and SWIFT/BIC numbers to make sure bank account details are correct before processing a payment.
Billplz
Billplz is a payment platform API focused on the Malaysian market that lets you create bills and collect payments online.