Finnhub API
Real-time stock, forex and crypto data plus fundamentals and company news.
What it does
Finnhub gives real-time US stock quotes, company profiles and financials, news and press releases, earnings calendars, insider transactions, forex and crypto data, and alternative datasets. The free tier is aimed at US equities.
Base URL
Authentication
Register for a free key and pass it as &token=YOUR_KEY or the X-Finnhub-Token header.
Code examples
curl -s "https://finnhub.io/api/v1/quote?symbol=AAPL&token=$FINNHUB_KEY"
import requests
r = requests.get("https://finnhub.io/api/v1/stock/profile2",
params={"symbol": "NVDA", "token": KEY}, timeout=10)
p = r.json()
print(p["name"], p["finnhubIndustry"], p["marketCapitalization"])Rate limits & quotas
Free tier: 60 API calls/minute (and a burst cap of ~30/second). Over it returns HTTP 429. Several endpoints — candlestick history (/stock/candle), non-US fundamentals, some alternative data — are paid only on current plans; the free tier centres on real-time quotes, profiles and news for US names.
Key response fields
| c / d / dp | Current price, change, percent change (/quote) |
| h / l / o / pc | Day high/low/open and previous close |
| name / finnhubIndustry / marketCapitalization | From /stock/profile2 |
| (news)[].headline / url / datetime | From /company-news |
Common errors
| 401 | Missing or invalid token. |
| 403 | Endpoint requires a paid plan (e.g. /stock/candle). |
| 429 | Over 60 calls/minute — throttle. |
| (empty {} or zeros) | Unknown symbol, or a market that is not covered on free. |
When to use it (and alternatives)
Best free choice for real-time US quotes and company news at a high call rate. For historical candles on the free tier use Twelve Data or Polygon.io instead; for FX only, Frankfurter.
FAQ
Can I get historical price candles for free?
Not any more — /stock/candle moved to paid plans. On the free tier, use another provider for OHLC history and Finnhub for live quotes and news.
Does the free tier cover non-US stocks?
Quotes for some international symbols work, but company financials and many endpoints are US-only on free. Check each endpoint’s coverage note.
How is the rate limit enforced?
60 calls per minute, sliding window, per API key. A short burst above ~30/second also trips it. Space calls out or queue them.
New to APIs?
Short guides for working with this API — and any other.