Financial Modeling Prep API
Financial statements, stock prices, ratios and market data with a free plan.
What it does
Financial Modeling Prep (FMP) focuses on company fundamentals: income statements, balance sheets, cash-flow statements, ratios, DCF values, and analyst estimates, alongside quotes, historical prices, market indices, ETFs and economic data.
Base URL
Authentication
Sign up for a free key and pass it as ?apikey=YOUR_KEY. FMP is migrating some endpoints under a /stable path — check the docs for the current route.
Code examples
curl -s "https://financialmodelingprep.com/api/v3/quote/AAPL?apikey=$FMP_KEY"
import requests
r = requests.get(
"https://financialmodelingprep.com/api/v3/income-statement/MSFT",
params={"period": "annual", "limit": 3, "apikey": KEY}, timeout=15)
for stmt in r.json():
print(stmt["calendarYear"], stmt["revenue"], stmt["netIncome"])Rate limits & quotas
Free plan: about 250 requests/day, restricted to a subset of endpoints, US stocks only, and roughly 5 years of history. Over the limit returns HTTP 429 or a JSON {"Error Message": …}. Paid plans widen coverage and history and raise the cap sharply.
Key response fields
| [0].price / changesPercentage | Latest quote (/quote/{symbol}) |
| [].revenue / netIncome / eps | Income-statement line items |
| [].date / calendarYear / period | Reporting period |
| historical[] | Daily OHLC from /historical-price-full/{symbol} |
| Error Message | Present on auth/limit/coverage failures |
Common errors
| 401 / "Invalid API KEY" | Key missing or wrong. |
| 403 / "Exclusive Endpoint" | That endpoint needs a paid plan. |
| 429 | Daily request cap reached. |
| [] empty | Symbol not covered on the free (US-only) tier. |
When to use it (and alternatives)
The pick when you specifically need financial statements and ratios in a clean shape. For quotes and candles, Twelve Data and Finnhub have more generous free limits.
FAQ
How much history do I get for free?
Roughly five years of statements and daily prices for US-listed companies. Longer history, international companies and intraday data are paid.
Why are some endpoints returning 403?
FMP marks many endpoints ‘exclusive’ to paid tiers. The error body says so. Stick to /quote, /profile, the three financial statements and /historical-price-full on free.
v3 or /stable?
FMP is consolidating endpoints under /stable. New integrations should follow the current docs; /api/v3 paths still work for now.
New to APIs?
Short guides for working with this API — and any other.