StockFlux API
A powerful and production-ready Stock Market Data API that gives you instant access to real-time and historical financial data for stocks, cryptocurrencies, and forex pairs. Built for developers, traders, data scientists, and fintech startups who need reliable financial data without complexity. WHAT YOU GET: ✅ Real-time stock quotes with price, volume, market cap ✅ Historical OHLCV data with…
StockFlux API endpoints
| Method | Endpoint | Description |
|---|---|---|
| Health | ||
| GET |
Health Check /health |
Health check endpoint. Returns the current UTC timestamp and status to verify the API is running. Example: /health |
| Stock Data | ||
| GET |
Search Stocks /stock/search |
Search for stocks by ticker or company name. Args: q: Search query (e.g., 'Apple', 'AAPL', 'Tesla') Returns matching stocks with basic quote data. Example: /stock/search?q=AAPL |
| GET |
Get Stock Quote /stock/{ticker}/quote |
Get real-time stock quote for a given ticker. Args: ticker: Stock ticker symbol (e.g., AAPL, MSFT, TSLA) Returns price, open, high, low, volume, market_cap, pe_ratio, 52-week… |
| GET |
Get Stock History /stock/{ticker}/history |
Get historical OHLCV data for a stock. Args: ticker: Stock ticker symbol (e.g., AAPL, MSFT, TSLA) period: Time period for historical data (default: 1mo) interval: Data interval… |
| GET |
Get Stock Info /stock/{ticker}/info |
Get company information and metadata for a stock. Args: ticker: Stock ticker symbol (e.g., AAPL, MSFT, TSLA) Example: /stock/AAPL/info |
| GET |
Get Stock Earnings /stock/{ticker}/earnings |
Get earnings data for a stock. Args: ticker: Stock ticker symbol (e.g., AAPL, MSFT, TSLA) Returns annual and quarterly EPS, revenue, and upcoming earnings date. Example:… |
| GET |
Get Stock Financials /stock/{ticker}/financials |
Get financial statements for a stock. Args: ticker: Stock ticker symbol (e.g., AAPL, MSFT, TSLA) Returns latest annual income statement, balance sheet, and cash flow data.… |
| GET |
Get Stock Dividends /stock/{ticker}/dividends |
Get dividend history for a stock. Args: ticker: Stock ticker symbol (e.g., AAPL, MSFT, TSLA) limit: Number of dividend records to return (default: 20, max: 100) Returns dividend… |
| GET |
Get Stock Recommendations /stock/{ticker}/recommendations |
Get latest analyst recommendations for a stock. Args: ticker: Stock ticker symbol (e.g., AAPL, MSFT, TSLA) Example: /stock/AAPL/recommendations |
| GET |
Get Analyst Targets /stock/{ticker}/analysts |
Get analyst price targets and ratings summary for a stock. Args: ticker: Stock ticker symbol (e.g., AAPL, MSFT, TSLA) Returns mean/low/high price targets and buy/hold/sell… |
| GET |
Compare Stocks /stocks/compare |
Compare multiple stocks side by side. Args: tickers: Comma-separated ticker symbols (max 5, e.g., AAPL,MSFT,TSLA) Example: /stocks/compare?tickers=AAPL,MSFT,TSLA |
| GET |
Get Technical Indicators /stock/{ticker}/indicators |
Get technical indicators for a stock. Args: ticker: Stock ticker symbol (e.g., AAPL, MSFT, TSLA) period: Time period for calculation (default: 6mo) Returns SMA (20, 50, 200), EMA… |
| GET |
Get Stock News /stock/{ticker}/news |
Get latest news articles for a stock. Args: ticker: Stock ticker symbol (e.g., AAPL, MSFT, TSLA) limit: Number of news articles to return (default: 10, max: 50) Returns title,… |
| Market Data | ||
| GET |
Get Market Summary /market/summary |
Get overall market summary for major indices. Returns current price and daily change for S&P 500, NASDAQ, Dow Jones, Russell 2000, and VIX. Example: /market/summary |
| GET |
Get Market Movers /market/movers |
Get top market movers - gainers and losers of the day. Tracks a curated list of large-cap stocks and returns top 5 gainers and losers by % change. Example: /market/movers |
| GET |
Get Sector Performance /market/sectors |
Get performance of major market sectors. Returns daily % change for 11 GICS sectors using sector ETFs. Example: /market/sectors |
| Crypto & Forex | ||
| GET |
Get Forex Quote /forex/{pair}/quote |
Get real-time forex exchange rate. Args: pair: Currency pair (e.g., EURUSD, GBPUSD, USDJPY, INRUSD) Returns current rate, day high/low, and open. Example: /forex/EURUSD/quote |
| GET |
Get Crypto Quote /crypto/{symbol}/quote |
Get real-time cryptocurrency quote. Args: symbol: Crypto symbol (e.g., BTC, ETH, SOL, BNB) Returns price, volume, market cap, and 24h change. Example: /crypto/BTC/quote |
| Other endpoints | ||
| GET |
root__get / |
|
StockFlux API pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | 5 / minute |
|
| PRO | $9 / month | 30 / minute |
|
| ULTRA | $29 / month | 120 / minute |
|