Yahoo Finance Scraper — Stocks, Financials, OHLCV & Analysts avatar

Yahoo Finance Scraper — Stocks, Financials, OHLCV & Analysts

Pricing

from $2.00 / 1,000 yahoo finance ticker records

Go to Apify Store
Yahoo Finance Scraper — Stocks, Financials, OHLCV & Analysts

Yahoo Finance Scraper — Stocks, Financials, OHLCV & Analysts

Scrape Yahoo Finance global stock & ETF fundamentals, valuation multiples, income statement, balance sheet, cash flow, analyst price targets, upgrades/downgrades, earnings calendar, news, and historical OHLCV bars by ticker or search query. No API key required.

Pricing

from $2.00 / 1,000 yahoo finance ticker records

Rating

0.0

(0)

Developer

Berkan Kaplan

Berkan Kaplan

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Features

Limited permissions

Share

Pay-Per-Event  100 Market Columns  MCP & x402 Ready  Batch + Standby API

Yahoo Finance Scraper — Stocks, Financials, OHLCV & Analyst Data 📈

foXLabs Financial, Macro & Market Data Series: Crunchbase Company Intelligence · SEC EDGAR Financials · SEC Form D Offerings · Polymarket Prediction Markets · Kalshi Prediction Markets

Extract institutional-grade global stock, ETF, index, forex, and cryptocurrency data from Yahoo Finance — including live & extended-hours quotes, valuation multiples (P/E, Forward P/E, PEG, EV/EBITDA, P/B), annual Income Statement, Balance Sheet & Cash Flow histories, Wall Street analyst price targets & bank upgrades/downgrades, executive compensation (companyOfficers), earnings calendar, related financial news, and historical OHLCV + dividend/split bars — with zero API keys and automatic Yahoo session/crumb rotation out of the box.


🤖 Use with AI Agents (MCP, Claude, Cursor & x402)

  • Actor Slug: foxlabs/yahoo-finance-scraper
  • Hosted MCP URL: https://mcp.apify.com?tools=foxlabs/yahoo-finance-scraper
  • Local MCP Config (Claude Desktop, Cursor, Windsurf):
{
"mcpServers": {
"yahoo-finance-scraper": {
"command": "npx",
"args": ["-y", "@apify/actors-mcp-server", "--tools", "foxlabs/yahoo-finance-scraper"],
"env": { "APIFY_TOKEN": "YOUR_APIFY_TOKEN" }
}
}
}
  • Autonomous x402 & Pay-Per-Event Ready: $0.002 per ticker (all 95+ fundamental, valuation, statement, officer, analyst & news fields included!), $0.0002 per optional price-bar candle when includeHistoricalPrices: true, and $0.00 for diagnostic status rows.
  • Copy-paste Agent Prompt:
Use `foxlabs/yahoo-finance-scraper` to fetch live stock valuations, 3 financial statements, Wall Street price targets, and historical OHLCV bars.
Start with: {"tickers":["NVDA","AAPL","MSFT"],"includeFinancialStatements":true,"includeNews":true}

🔍 Why Financial Teams & AI Agents Pick This Yahoo Finance Scraper

  1. Automatic Crumb & Cookie Session Management: Most open-source yfinance scripts and HTML scrapers break constantly with 401 Invalid Crumb or 429 Too Many Requests. Our engine automatically negotiates pinned cookie + crumb sessions and rotates exits seamlessly on 256 MB RAM.
  2. 100 Structured Columns per Ticker ($0.002): Combines 12 Yahoo Finance quoteSummary modules (price, summaryDetail, financialData, defaultKeyStatistics, assetProfile, calendarEvents, earningsTrend, recommendationTrend, upgradeDowngradeHistory, incomeStatementHistory, balanceSheetHistory, cashflowStatementHistory) plus ticker news into one clean, flat-first JSON record.
  3. Global Multi-Asset Coverage: Supports US equities (NVDA, BRK-B), European & Asian exchanges (ASML.AS, SAP.DE, MC.PA, 7203.T, 0700.HK, RELIANCE.NS, THYAO.IS), ETFs (SPY, QQQ), indices (^GSPC, ^VIX), forex (EURUSD=X), commodities (GC=F, CL=F), and crypto (BTC-USD, ETH-USD).
  4. Keyword-to-Ticker Discovery (searchQueries): Don't know the exact exchange ticker? Pass company names or themes (searchQueries: ["Taiwan Semiconductor", "Novo Nordisk"]) to resolve official Yahoo symbols automatically.
  5. Strict Quantitative Null-Safety: Yahoo's nested { raw, fmt } wrappers and empty {} placeholders are normalized into clean IEEE numbers or null — never turning a missing dividendYield or negative-earnings trailingPE into a misleading 0.

📊 Extracted Data Fields

rowType: "ticker" (100 Columns)

CategoryExtracted Fields
Identity & Market Statesymbol, shortName, longName, quoteType (EQUITY, ETF, CRYPTOCURRENCY, INDEX), exchange, exchangeName, currency, marketState
Live & Extended QuotesregularMarketPrice, regularMarketChange, regularMarketChangePercent, regularMarketOpen, regularMarketDayHigh, regularMarketDayLow, previousClose, preMarketPrice, preMarketChangePercent, postMarketPrice, postMarketChangePercent, regularMarketVolume, averageDailyVolume10Day, averageDailyVolume3Month
Valuation MultiplesmarketCap, enterpriseValue, trailingPE, forwardPE, pegRatio, priceToSalesTrailing12Months, priceToBook, enterpriseToRevenue, enterpriseToEbitda, beta, fiftyTwoWeekHigh, fiftyTwoWeekLow, fiftyDayAverage, twoHundredDayAverage
Share Float, Short & DividendssharesOutstanding, floatShares, heldPercentInsiders, heldPercentInstitutions, shortRatio, shortPercentOfFloat, dividendRate, dividendYield, exDividendDate, payoutRatio
Profitability & Balance Sheet KPIstotalRevenue, revenuePerShare, revenueGrowth, grossProfits, ebitda, freeCashflow, operatingCashflow, earningsGrowth, trailingEps, forwardEps, grossMargins, ebitdaMargins, operatingMargins, profitMargins, returnOnAssets, returnOnEquity, totalCash, totalCashPerShare, totalDebt, debtToEquity, currentRatio, quickRatio
Analyst Targets & Bank RatingsrecommendationKey (strong_buy, buy, hold), recommendationMean, numberOfAnalystOpinions, targetMeanPrice, targetMedianPrice, targetHighPrice, targetLowPrice, analystRatingsBreakdown (strongBuy, buy, hold, sell, strongSell), recentUpgradesDowngrades[] (firm, action, fromGrade, toGrade, currentPriceTarget), nextEarningsDate, currentQuarterEpsEstimate, currentQuarterRevenueEstimate
Company Profile & Governancesector, industry, fullTimeEmployees, websiteUrl, phone, headquartersAddress, city, state, country, businessSummary, overallGovernanceRisk, companyOfficers[] (name, title, age, totalPay)
Financial Statements & NewsincomeStatementsAnnual[], balanceSheetsAnnual[], cashflowStatementsAnnual[], latestNews[] (title, publisher, link, publishedAt, relatedTickers)

rowType: "price-bar" (17 Columns — emitted when includeHistoricalPrices: true)

symbol, interval, date, timestampIso, currency, open, high, low, close, adjClose, volume, dividendAmount, splitRatio, url, scrapedAt.


💰 Transparent Pay-Per-Event Pricing

Event NamePriceTrigger
ticker (Primary)$0.0020 / ticker ($2.00 / 1,000)One unique Yahoo Finance symbol with all 100 quote, valuation, statement, officer, analyst, and news fields.
price-bar (Optional)$0.0002 / bar ($0.20 / 1,000)One historical OHLCV candle row — only emitted when includeHistoricalPrices: true is enabled.
Diagnostic Status RowsFREE ($0.00)rowType: "status" (empty_input, invalid_ticker_or_url, ticker_not_found, no_search_results) are never billed.

Cost Examples

  • S&P 500 full fundamental & analyst snapshot (500 tickers, includeHistoricalPrices: false): 500 × $0.002 = $1.00 total.
  • 10 stocks + 1 year (252 daily OHLCV bars each): (10 × $0.002) + (2,520 × $0.0002) = $0.524 total.

🛠️ Input Parameters Reference

ParameterTypeDefaultDescription
tickersstring[]["NVDA", "AAPL", "MSFT"]Global Yahoo Finance ticker symbols (NVDA, SAP.DE, 7203.T, BTC-USD).
searchQueriesstring[][]Company names or keywords resolved to tickers via Yahoo Search.
urlsstring[][]Direct https://finance.yahoo.com/quote/<SYMBOL>/ URLs.
maxTickersPerSearchinteger5Max symbols discovered per searchQueries entry (1–25).
includeFinancialStatementsbooleantrueEmbed annual Income Statement, Balance Sheet & Cash Flow arrays ($0 extra charge).
includeNewsbooleantrueEmbed latest ticker headlines ($0 extra charge).
includeHistoricalPricesbooleanfalseEmit standalone price-bar OHLCV + dividend/split rows.
historyRangestring"1mo""5d", "1mo", "3mo", "6mo", "ytd", "1y", "2y", "5y", "10y", "max".
historyIntervalstring"1d""1d", "1wk", "1mo", "1h".
maxPriceBarsPerTickerinteger252Cap on price-bar rows emitted per ticker (1–5000).
maxTotalTickersinteger200Global run cap on ticker rows (1–50000).
proxyConfigurationobject{"useApifyProxy": true}Standard Apify Proxy configuration.

📥 Input Examples

1. Semiconductor Sector Valuation & Analyst Consensus Comp Sheet

{
"tickers": ["NVDA", "AMD", "AVGO", "TSM", "ASML", "INTC", "QCOM"],
"includeFinancialStatements": true,
"includeNews": true,
"includeHistoricalPrices": false
}

2. Fundamental Snapshot + 1-Year Daily OHLCV Backtest Series

{
"tickers": ["AAPL", "MSFT", "SPY"],
"includeHistoricalPrices": true,
"historyRange": "1y",
"historyInterval": "1d",
"maxPriceBarsPerTicker": 252
}

📤 Sample Output Record (ticker)

{
"rowType": "ticker",
"rowKey": "yf:ticker:NVDA",
"symbol": "NVDA",
"shortName": "NVIDIA Corporation",
"quoteType": "EQUITY",
"exchange": "NMS",
"currency": "USD",
"regularMarketPrice": 162.85,
"regularMarketChangePercent": -0.0201,
"postMarketPrice": 161.01,
"marketCap": 3932339044352,
"enterpriseValue": 3901076013056,
"trailingPE": 20.59,
"forwardPE": 10.27,
"pegRatio": 0.2,
"priceToBook": 17.17,
"enterpriseToEbitda": 19.38,
"beta": 2.247,
"fiftyTwoWeekHigh": 243.37,
"fiftyTwoWeekLow": 148.8,
"recommendationKey": "strong_buy",
"sector": "Technology",
"industry": "Semiconductors",
"url": "https://finance.yahoo.com/quote/NVDA/",
"scrapedAt": "2026-11-15T00:42:00.000Z"
}

💻 Code Integration Examples

Python (apify-client v3+)

from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("foxlabs/yahoo-finance-scraper").call(run_input={"tickers": ["NVDA", "AAPL", "MSFT"], "includeFinancialStatements": True})
for item in client.dataset(run.default_dataset_id).iterate_items():
if item.get("rowType") == "ticker":
print(item["symbol"], item["regularMarketPrice"], item["forwardPE"], item["targetMeanPrice"])

Node.js / TypeScript (apify-client)

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('foxlabs/yahoo-finance-scraper').call({"tickers":["NVDA","AAPL","MSFT"],"includeFinancialStatements":true});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Real-Time Standby HTTP (curl)

curl -X POST "https://foxlabs--yahoo-finance-scraper.apify.actor/scrape?token=YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"tickers":["NVDA","BTC-USD"],"includeFinancialStatements":false}'

🔗 Composable Financial Intelligence Stack

Pair foxlabs/yahoo-finance-scraper with:

  • foxlabs/sec-edgar-financials — Standardized 10-K, 10-Q, XBRL fundamentals, and SEC filing metadata directly from EDGAR.
  • foxlabs/sec-form-d-offerings — Private placement fundraising rounds, investor counts, and offering sizes filed with the SEC.
  • foxlabs/polymarket-prediction-markets — Real-money market-implied probabilities for macro indicators, rate decisions, and corporate events.

❓ Frequently Asked Questions

Why do DIY Yahoo Finance scripts fail with 401 Invalid Crumb?

Yahoo Finance requires a matched A3 consent cookie and cryptographic crumb token bound to the same egress IP session before serving v10/quoteSummary fundamentals. Our actor negotiates, caches, and rotates these session pairs automatically behind the scenes.

Does this actor support non-US stock exchanges?

Yes. Pass standard Yahoo exchange suffixes — such as .L (London), .DE (XETRA), .PA (Euronext Paris), .AS (Amsterdam), .SW (SIX Swiss), .TO (Toronto), .AX (ASX), .T (Tokyo), .HK (Hong Kong), .NS (NSE India), .SA (B3 Brazil), or .IS (Borsa Istanbul).

Can I scrape ETFs, Mutual Funds, Indices, Forex, and Crypto?

Yes! All asset classes on Yahoo Finance work seamlessly (SPY, VTI, ^GSPC, ^NDX, EURUSD=X, GC=F, BTC-USD). Equity-only fields (such as companyOfficers or incomeStatementsAnnual) cleanly return null on non-equity instruments instead of failing.

Are Income Statement, Balance Sheet, and Cash Flow included in the $0.002 ticker price?

Yes. Enabling includeFinancialStatements: true (the default) and includeNews: true embeds all three annual financial statement histories and latest headlines directly inside the ticker object at $0.00 extra fee.

How is adjClose different from close in price-bar rows?

close is the raw unadjusted closing trade price on that historical date, whereas adjClose retroactively adjusts for stock splits and cash dividends — essential for accurate total-return backtesting. Dividend payouts (dividendAmount) and split ratios (splitRatio) are also attached directly to the corresponding date bar.

What if I pass a delisted or misspelled ticker symbol?

Invalid or delisted symbols never crash your batch run and never incur an event charge; they emit a free rowType: "status" (status: "ticker_not_found") row so your pipeline knows exactly which symbol was skipped.

How are pre-market and after-hours prices handled?

preMarketPrice, preMarketChangePercent, postMarketPrice, and postMarketChangePercent are populated automatically whenever extended-hours trading data is active on the exchange (marketState: "PRE", "POST", or "CLOSED"), and null during regular session hours if not applicable.

Can AI portfolio agents query this actor in real time?

Yes — use Apify Standby HTTP (POST /scrape) or connect directly via the hosted Apify MCP endpoint (https://mcp.apify.com?tools=foxlabs/yahoo-finance-scraper) for low-latency live market lookups.

How much RAM should I configure?

Leave memory at 256 MB. Because all data is retrieved as compact JSON over pooled undici connections without headless browsers, 100 tickers complete in seconds using ~60 MB of RAM.


📋 Changelog

0.1.0 (2026-11-15)

  • Initial release of foxlabs/yahoo-finance-scraper with automatic cookie/crumb session management, 100-column quoteSummary extraction (quotes, multiples, 3 financial statements, analyst targets, bank upgrades/downgrades, officers, news), keyword-to-ticker search, historical OHLCV + dividend/split bars, and Batch + Standby HTTP support.