Skip to Content

Yahoo Finance Data Parser & API

Yahoo Finance is the world’s most-visited financial data platform, covering global equities, ETFs, crypto, forex and indices, and StockAPIS extracts its data — real-time quotes, OHLCV history, fundamentals, valuation ratios and dividend metrics — through a single REST API. Yahoo retired its official public API in 2017, so all access today runs through undocumented endpoints and HTML; StockAPIS handles the parsing, anti-bot evasion and normalization so you query Yahoo Finance with the same schema you use for every other source.

TypeFinancial data platform
HQUnited States (Sunnyvale, CA)
OwnerYahoo Inc. (Apollo Global Management)
Asset classesEquities, ETFs, Crypto, Forex, Indices, Options, Mutual funds
CoverageGlobal equities, crypto, forex and indices
Scale#1 most-visited financial data site (300M+ monthly visits)
API accessUnofficial API only
Parse priority★★★★★
Official sitefinance.yahoo.com

Platform Overview

Market Position

  • The most-visited financial data website worldwide, with 300M+ monthly visits
  • Free, retail-facing coverage of global stocks, ETFs, crypto, forex, indices and options
  • The de facto reference for ticker quotes, fundamentals and historical price series
  • No official public API since 2017 — data is reachable only via unofficial endpoints, which StockAPIS parses and normalizes for you

Data Coverage

StockAPIS exposes the full Yahoo Finance data surface:

  • Real-time quotes — last price, day high/low, open, previous close, volume and intraday change
  • Historical OHLCV — adjusted candles across intervals (1m → 1mo) for backtesting and charting
  • Fundamentals — market cap, trailing and forward P/E, EPS, revenue and earnings
  • Dividends & ranges — dividend yield, payout dates, 52-week high/low and moving averages
  • Multi-asset — equities, ETFs, crypto pairs (BTC-USD), forex (EURUSD=X) and indices (^GSPC)
  • Company profile — sector, industry, exchange, currency and market state

Quick Start

import stockapis client = stockapis.Client(api_key="your-api-key") # Real-time quote with fundamentals from Yahoo Finance aapl = client.yahoo_finance.get_quote(symbol="AAPL") print(f"Apple: ${aapl['regularMarketPrice']} · P/E {aapl['trailingPE']}")
const { StockAPIS } = require("stockapis"); const client = new StockAPIS({ apiKey: "your-api-key" }); // Daily OHLCV history for the last month const history = await client.yahooFinance.getHistory({ symbol: "AAPL", range: "1mo", interval: "1d", }); console.log(history.candles[0]);

Sample API Response

{ "success": true, "data": { "symbol": "AAPL", "shortName": "Apple Inc.", "regularMarketPrice": 185.14, "regularMarketChange": 2.45, "regularMarketChangePercent": 1.34, "regularMarketVolume": 48591690, "regularMarketDayHigh": 187.05, "regularMarketDayLow": 184.93, "regularMarketOpen": 185.59, "regularMarketPreviousClose": 182.69, "marketCap": 2900000000000, "trailingPE": 30.5, "forwardPE": 28.2, "dividendYield": 0.55, "fiftyTwoWeekHigh": 198.23, "fiftyTwoWeekLow": 124.17, "exchange": "NMS", "currency": "USD", "marketState": "REGULAR" }, "metadata": { "source": "yahoo-finance", "timestamp": "2024-01-15T10:30:00.000Z" } }

Use Cases

  • Portfolio tracking — real-time marks and fundamentals to value holdings and compute P&L across asset classes
  • Quant research — adjusted OHLCV history for backtesting, factor models and signal development
  • Fundamental screening — filter universes by P/E, market cap, dividend yield and 52-week range
  • Multi-asset dashboards — blend equities, crypto, forex and indices on one normalized schema

Frequently Asked Questions

Does Yahoo Finance have an official API? No. Yahoo shut down its official public finance API in 2017. Data is now accessible only through undocumented endpoints and page scraping. StockAPIS maintains the parsers, anti-bot handling and a stable schema so you don’t have to chase those changes.

What data can I get from Yahoo Finance through StockAPIS? Real-time quotes, historical OHLCV, market cap, trailing and forward P/E, dividend yield, 52-week ranges and company profile data across equities, ETFs, crypto, forex and indices.

Can I pull historical price data? Yes — StockAPIS returns adjusted OHLCV candles across intervals from 1-minute to monthly, suitable for charting, backtesting and technical analysis.

Last updated on