Yahoo Finance Scraper - Stocks, Crypto, Quotes & History avatar

Yahoo Finance Scraper - Stocks, Crypto, Quotes & History

Pricing

from $3.00 / 1,000 results

Go to Apify Store
Yahoo Finance Scraper - Stocks, Crypto, Quotes & History

Yahoo Finance Scraper - Stocks, Crypto, Quotes & History

Scrape Yahoo Finance reliably: real-time stock & crypto quotes, historical OHLCV, fundamentals, and symbol search. Solves the 429 rate-limiting that breaks free yfinance. No API key. Export JSON/CSV/Excel.

Pricing

from $3.00 / 1,000 results

Rating

0.0

(0)

Developer

Shahryar

Shahryar

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Categories

Share

Yahoo Finance Scraper – Stocks, Crypto, Quotes & History (No API Key)

Scrape Yahoo Finance market data reliably: real-time quotes for stocks, crypto, FX, ETFs and indices; historical OHLCV price history; fundamentals (company profile, financials, key statistics); and ticker search — all via Yahoo's public JSON endpoints. No API key, no login. Export to JSON, CSV, or Excel.

Built for stock & crypto market research, portfolio tracking, backtesting datasets, and financial dashboards.

Why this scraper

The free yfinance library and naive scripts keep breaking with HTTP 429 (Too Many Requests) and "Invalid Cookie / Invalid Crumb" errors, because Yahoo now gates its quote and fundamentals endpoints behind a session cookie + crumb handshake and rate-limits by IP. This Actor implements that handshake the way yfinance does it internally — fetch a session cookie, obtain a fresh crumb, reuse both — and adds automatic crumb refresh on 401, exponential back-off on 429, IP rotation via Apify Proxy, and request pacing. That is the edge: it keeps pulling data when free tools get blocked.

What it does

  • 📈 Real-time quotes – price, change, % change, market cap, volume, day high/low, 52-week range, P/E, dividend yield, and more. Batched (many symbols per request).
  • 🕯️ Historical OHLCV – open, high, low, close, adjusted close, and volume per bar, from 1-minute intraday up to monthly, over ranges up to max.
  • 🏢 Fundamentals – company profile (sector, industry, website, employees), key statistics, summary detail, and financial data via Yahoo's quoteSummary modules.
  • 🔎 Symbol search – look up tickers by company/asset name.
  • 🪙 Any asset class – stocks, crypto (BTC-USD), FX (EURUSD=X), indices (^GSPC), ETFs (SPY).
  • 🛡️ Reliable – cookie+crumb handshake, refresh on Invalid Crumb, 429 back-off, proxy rotation, graceful skipping of delisted/invalid tickers.

Example input

{
"dataType": "quote",
"symbols": ["AAPL", "MSFT", "BTC-USD", "EURUSD=X"],
"proxyConfiguration": { "useApifyProxy": true }
}

Historical:

{
"dataType": "historical",
"symbols": ["AAPL", "TSLA"],
"interval": "1d",
"range": "6mo",
"proxyConfiguration": { "useApifyProxy": true }
}

Fundamentals:

{
"dataType": "fundamentals",
"symbols": ["AAPL"],
"modules": ["assetProfile", "summaryDetail", "financialData", "defaultKeyStatistics"]
}

Search:

{
"dataType": "search",
"searchQuery": "apple"
}

Example output

Quote (type: "quote")

{
"type": "quote",
"symbol": "AAPL",
"name": "Apple Inc.",
"quoteType": "EQUITY",
"exchange": "NasdaqGS",
"currency": "USD",
"price": 283.78,
"change": 2.41,
"changePercent": 0.857,
"previousClose": 281.37,
"dayHigh": 285.95,
"dayLow": 274.21,
"volume": 261244321,
"marketCap": 4200000000000,
"fiftyTwoWeekHigh": 317.4,
"fiftyTwoWeekLow": 199.26,
"trailingPE": 31.2,
"marketState": "REGULAR",
"scrapedAt": "2026-06-26T15:00:00.000Z"
}

Historical bar (type: "bar")

{
"type": "bar",
"symbol": "AAPL",
"date": "2026-06-25T13:30:00.000Z",
"timestamp": 1782480600,
"open": 281.10,
"high": 285.95,
"low": 274.21,
"close": 283.78,
"adjClose": 283.78,
"volume": 261244321,
"currency": "USD"
}

Fundamentals (type: "fundamentals")

{
"type": "fundamentals",
"symbol": "AAPL",
"name": "Apple Inc.",
"sector": "Technology",
"industry": "Consumer Electronics",
"website": "https://www.apple.com",
"country": "United States",
"employees": 164000,
"marketCap": 4200000000000,
"currency": "USD",
"trailingPE": 31.2,
"dividendYield": 0.0045,
"revenue": 400000000000,
"recommendationKey": "buy",
"targetMeanPrice": 305.0,
"modules": ["assetProfile", "summaryDetail", "price", "defaultKeyStatistics", "financialData"],
"summaryDetail": { "trailingPE": 31.2, "marketCap": 4200000000000 },
"scrapedAt": "2026-06-26T15:00:00.000Z"
}

Search result (type: "searchResult")

{
"type": "searchResult",
"symbol": "AAPL",
"name": "Apple Inc.",
"exchange": "NASDAQ",
"assetType": "Equity",
"sector": "Technology",
"industry": "Consumer Electronics",
"query": "apple",
"scrapedAt": "2026-06-26T15:00:00.000Z"
}

Output fields

Every item carries a type discriminator so you can split the dataset by output kind.

Quote (type: "quote")

FieldDescription
symbolTicker symbol
nameCompany / asset name
quoteTypeEQUITY, CRYPTOCURRENCY, CURRENCY, INDEX, ETF, …
exchangeExchange name
currencyQuote currency
priceCurrent/last regular-market price
changeAbsolute price change
changePercentPercent price change
previousClosePrevious close
openRegular-market open
dayHigh / dayLowIntraday high / low
volumeRegular-market volume
marketCapMarket capitalization
fiftyTwoWeekHigh / fiftyTwoWeekLow52-week high / low
trailingPE / forwardPEPrice/earnings ratios
epsTrailingTwelveMonthsTrailing EPS
dividendYieldDividend yield
bid / askBid / ask
preMarketPrice / postMarketPriceExtended-hours prices (when available)
marketStatePRE, REGULAR, POST, CLOSED
regularMarketTimeQuote timestamp (ISO 8601)
scrapedAtScrape timestamp (ISO 8601)

Historical bar (type: "bar")

FieldDescription
symbolTicker symbol
dateBar timestamp (ISO 8601)
timestampUnix epoch seconds
open / high / low / closeOHLC prices
adjCloseSplit/dividend-adjusted close
volumeBar volume
currencyQuote currency

Fundamentals (type: "fundamentals")

FieldDescription
symbolTicker symbol
nameCompany name
sector / industryClassification
website / country / employeesProfile basics
marketCap / currencyValuation
trailingPE / forwardPE / betaKey statistics
dividendYield / profitMarginsRatios
revenue / revenueGrowthFinancials
recommendationKey / targetMeanPriceAnalyst signals
modulesModules requested (array)
<moduleName>Each requested module, flattened (e.g. summaryDetail, financialData)
scrapedAtScrape timestamp (ISO 8601)

Search result (type: "searchResult")

FieldDescription
symbolTicker symbol
nameCompany / asset name
exchangeExchange (display)
assetTypeEquity, Cryptocurrency, ETF, …
sector / industryClassification (when available)
scoreYahoo relevance score
queryThe search query used

Input reference

FieldTypeDescription
dataTypestringquote, historical, fundamentals, or search (default quote).
symbolsarrayTickers to fetch (quote / historical / fundamentals).
searchQuerystringName to look up (only for search).
intervalstringBar size for historical (1m3mo, default 1d).
rangestringHistory range for historical (1dmax, default 1mo).
modulesarrayquoteSummary modules for fundamentals.
requestDelayMsintegerDelay between requests in ms (default 600).
proxyConfigurationobjectApify Proxy settings (residential recommended at volume).

Common use cases

  • Portfolio & watchlist tracking – batch quotes for a list of holdings.
  • Backtesting & quant research – pull historical OHLCV for many symbols.
  • Fundamental screening – sector, P/E, margins, revenue, analyst targets.
  • Crypto & FX monitoringBTC-USD, ETH-USD, EURUSD=X, etc.
  • Dashboards & alerts – schedule runs and feed a spreadsheet or BI tool.

Notes & limits

  • Rate limiting: Yahoo throttles by IP (HTTP 429). This Actor paces requests, backs off, rotates proxy IPs, and refreshes the crumb on 401. For large symbol lists, use residential proxies and/or increase requestDelayMs.
  • Intraday history: intervals below 1d (e.g. 1m, 5m) are only available for short ranges (typically ≤ 60 days) per Yahoo's own limits.
  • Crumb flow changes: Yahoo occasionally changes the cookie/crumb handshake (cookie host, EU consent gate, crumb location). The Actor has a fallback consent flow, but if quotes/fundamentals suddenly fail with 401, the handshake is the first thing to revisit.
  • Unofficial source: these are Yahoo's public web endpoints, not a supported/commercial API. Data is provided as-is; respect Yahoo's terms and use responsibly.
  • Delisted / invalid tickers are skipped and logged rather than crashing the run.

FAQ

Do I need a Yahoo / API key? No. The Actor uses Yahoo's public JSON endpoints and handles the cookie+crumb session for you.

Why does free yfinance keep getting 429 / Invalid Crumb? Yahoo rate-limits by IP and rotates the crumb. This Actor refreshes the crumb on 401, backs off on 429, and rotates IPs via Apify Proxy.

Which symbols are supported? Anything Yahoo Finance lists: stocks (AAPL), crypto (BTC-USD), FX (EURUSD=X), indices (^GSPC), ETFs (SPY).

Can I get many symbols at once? Yes — quote batches up to ~50 symbols per request. Historical and fundamentals are one request per symbol.

Is the data real-time? Quotes are Yahoo's regular-market values, which for many exchanges are delayed (commonly ~15 min). Crypto and FX are effectively live.