Yahoo Finance Scraper - Quotes, History & Fundamentals

Scrape Yahoo Finance for any symbol - stocks, ETFs, crypto, forex, indices. Live quotes, OHLCV price history, and fundamentals (P/E, margins, ROE, revenue, analyst targets). No API key. Export JSON, CSV or Excel for backtesting, dashboards and screening. Data for information only, not advice.

Yahoo Finance Scraper — Quotes, History & Fundamentals

Pull market data for any Yahoo Finance symbol — stocks, ETFs, crypto, forex and indices — in one run: live quotes, OHLCV price history, and fundamentals (P/E, margins, ROE, revenue, analyst targets, dividends). Uses Yahoo Finance's own endpoints (the Actor handles the required session crumb automatically). No API key.

⚠️ Data is provided for informational purposes only and is not investment advice.

What it does

  • Live quote — price, change %, open, day high/low, previous close, volume, market cap, 52-week range, moving averages.
  • Price history (OHLCV) — open/high/low/close/adj-close/volume bars for a chosen range and interval (intraday to monthly).
  • Fundamentals — P/E, forward P/E, P/B, PEG, beta, profit/operating/gross margins, ROE/ROA, revenue & growth, cash/debt, free cash flow, analyst target price & recommendation, dividend rate/yield/payout, sector & industry.
  • Any asset class: AAPL, SPY, BTC-USD, EURUSD=X, ^GSPC.
  • Export to JSON, CSV, or Excel, or pull via the Apify API.

Input

Field Description
symbols Yahoo symbols (stocks, ETFs, BTC-USD, EURUSD=X, ^GSPC).
getQuote Fetch the live quote per symbol.
getHistory Fetch OHLCV history per symbol.
historyRange 1d…max.
historyInterval 1m…1mo (intraday only for short ranges).
getFundamentals Fetch fundamentals per symbol.
proxyConfiguration Optional proxy (usually not needed).

Example

{
  "symbols": ["AAPL", "MSFT", "BTC-USD"],
  "getQuote": true,
  "getHistory": true,
  "historyRange": "6mo",
  "historyInterval": "1d",
  "getFundamentals": true
}

Output

One item per quote, OHLCV bar, or fundamentals record:

{ "resultType": "quote", "symbol": "AAPL", "name": "Apple Inc.", "price": 332.27,
  "changePercent": 0.84, "marketCap": 5100000000000, "currency": "USD" }
{ "resultType": "ohlcv", "symbol": "AAPL", "date": "2026-09-10T...", "open": 330.1,
  "high": 334.0, "low": 329.5, "close": 332.3, "adjClose": 332.3, "volume": 51230000 }

Use cases

  • Backtesting / quant — clean OHLCV for any ticker & timeframe.
  • Dashboards & watchlists — live quotes across stocks, crypto and forex.
  • Fundamental screening — compare P/E, margins, growth and analyst targets.
  • Alerts & AI/RAG — feed quotes and fundamentals to an LLM or a fintech app.

FAQ

Do I need an API key? No. The Actor fetches Yahoo's session cookie + crumb automatically.

Which symbols work? Anything on Yahoo Finance — equities, ETFs, mutual funds, crypto (-USD), forex (=X), indices (^).

Not affiliated with Yahoo. Respect Yahoo's terms; data is for information only, not financial advice.

🤖 Use with Claude or ChatGPT (MCP)

Run this actor from Claude, ChatGPT, Cursor or any MCP client via the Apify MCP server. In Claude Desktop: Settings → Connectors → Add custom connector → https://mcp.apify.com. Or expose just this tool:

{ "mcpServers": { "apify": { "url": "https://mcp.apify.com?tools=get_anything/yahoo-finance-scraper" } } }

Full guide: Connect Apify actors to Claude & ChatGPT.

⭐ Found this useful?

If this Actor saved you time, please leave a rating on its Apify page — reviews genuinely help others discover it and help me keep improving it.

Related scrapers