API Directory › 💵 Finance & Stocks › Finnhub
API KeyHTTPSCORS

Finnhub API

Real-time stock, forex and crypto data plus fundamentals and company news.

Auth
API Key
HTTPS
Yes
CORS
Yes
Open Finnhub docs ↗

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

https://finnhub.io/api/v1

Authentication

Register for a free key and pass it as &token=YOUR_KEY or the X-Finnhub-Token header.

Code examples

curl
curl -s "https://finnhub.io/api/v1/quote?symbol=AAPL&token=$FINNHUB_KEY"
Python
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 / dpCurrent price, change, percent change (/quote)
h / l / o / pcDay high/low/open and previous close
name / finnhubIndustry / marketCapitalizationFrom /stock/profile2
(news)[].headline / url / datetimeFrom /company-news

Common errors

401Missing or invalid token.
403Endpoint requires a paid plan (e.g. /stock/candle).
429Over 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.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

Currency ConverterROI Calculator

Related Finance & Stocks APIs

← Back

More Finance & Stocks APIs · All 196 APIs