Finnhub API
Overview
Finnhub is a popular financial API offering real-time stock quotes, company fundamentals, news, forex rates, and cryptocurrency data through both REST and WebSocket connections. It has a generous free tier with a high rate limit, making it one of the best options for developers building stock market apps. The documentation is excellent and it supports many programming languages with official client libraries.
Beginner Tip
Finnhub's free tier allows 60 API calls per minute, which is plenty for getting started — use the /quote endpoint first to get a stock's current price and verify your key works. Sign up at finnhub.io to get your free API key instantly without needing a credit card.
Available Data
Example Response
{
"id": "bitcoin",
"symbol": "btc",
"current_price": 65432.1,
"market_cap": 1280000000000,
"price_change_24h": 1250.5,
"price_change_percentage_24h": 1.95,
"total_volume": 28500000000
} Field Reference
c Current price of the stock. h High price of the stock during the current trading day. l Low price of the stock during the current trading day. o Opening price of the stock at the start of the current trading day. pc Previous closing price — useful as a fallback when markets are closed. t Unix timestamp of the last price update. Implementation Example
// ⚠️ Note: This URL may be a documentation page. Check official docs for actual API endpoint.
const url = "https://finnhub.io/docs/api";
// 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
Alternatives to Finnhub
Technical alternatives for different use cases.
Extensive technical indicators and forex coverage
Technical analysis with 50+ indicator functions
Real-time WebSocket streaming
Comprehensive financial data from IEX exchange
Company fundamentals and financial statements
Global market coverage beyond US equities
Free WebSocket for real-time prices, plus company profiles
Batch historical data retrieval
Real-time price updates and company fundamentals
Real-time and historical market data with WebSocket
Institutional-grade market data with low latency
Free tier availability and pricing
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.