Yahoo Finance Scraper - Stock Quotes, Fundamentals & History avatar

Yahoo Finance Scraper - Stock Quotes, Fundamentals & History

Pricing

from $0.70 / 1,000 ticker quotes

Go to Apify Store
Yahoo Finance Scraper - Stock Quotes, Fundamentals & History

Yahoo Finance Scraper - Stock Quotes, Fundamentals & History

Yahoo Finance scraper, $1 per 1,000 tickers: price, change, volume, market cap, P/E, EPS, dividends, margins, analyst targets, sector, profile and optional price history for stocks, ETFs, indices and crypto. No API key.

Pricing

from $0.70 / 1,000 ticker quotes

Rating

0.0

(0)

Developer

Sumitr Mardy

Sumitr Mardy

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

21 hours ago

Last modified

Categories

Features

Limited permissions

Share

Get Yahoo Finance data for any list of tickers: price, change, volume, market cap, P/E, EPS, dividends, margins, cash flow, analyst price targets and recommendation, sector, industry, employees and company profile, plus optional price history (daily, weekly or monthly OHLC with adjusted close and volume) for any date range.

Works for stocks on every exchange Yahoo covers (AAPL, VOD.L, SAP.DE, 7203.T, 0700.HK, RELIANCE.NS…), ETFs (SPY), indices (^GSPC), crypto (BTC-USD), currencies (EURUSD=X) and futures (GC=F).

$1 per 1,000 tickers, and $1 per 1,000 for price history, whatever its length: ten years of daily bars costs the same as one month. Unknown tickers are free. No API key, no login.

What you get

One row per ticker, the same keys on every row:

GroupFields
Identitysymbol, name, type (EQUITY, ETF, INDEX, CRYPTOCURRENCY, CURRENCY, FUTURE), exchange, currency, marketState, marketTime
Tradingprice, change, changePercent, previousClose, open, dayLow, dayHigh, volume, averageVolume, fiftyTwoWeekLow, fiftyTwoWeekHigh, fiftyDayAverage, twoHundredDayAverage
ValuationmarketCap, enterpriseValue, peRatio, forwardPE, eps, forwardEps, pegRatio, priceToBook, priceToSales, beta
Dividends & sharesdividendRate, dividendYield, exDividendDate, payoutRatio, sharesOutstanding, floatShares, shortPercentOfFloat, heldPercentInsiders, heldPercentInstitutions
Financialsrevenue, revenueGrowth, grossMargins, operatingMargins, profitMargins, ebitda, freeCashflow, totalCash, totalDebt, debtToEquity, returnOnEquity
AnalyststargetMeanPrice, targetHighPrice, targetLowPrice, recommendation, analystCount, nextEarningsDate
Profilesector, industry, employees, website, country, city, description
Funds & cryptofundFamily, fundCategory, expenseRatio, totalAssets, circulatingSupply
Historyhistory: [{date, open, high, low, close, adjClose, volume}], oldest first; historyFetched
Runurl, status (ok, not_found, failed, invalid_input), scrapedAt

Numbers are null when Yahoo has no value for that instrument (an index has no P/E). Ratios, yields, margins and changePercent are fractions: 0.0031 means 0.31%.

Measured on a 43-ticker run: stocks fill nearly every field; ETFs, crypto, indices, currencies and futures fill the trading fields and leave company-only fields (P/E, margins, profile) empty.

How to use it

  • Ticker symbols: one per line, as Yahoo writes them (search the ticker on finance.yahoo.com if unsure). A Yahoo quote URL works too. Duplicates are skipped.
  • Include price history: on to add the history array.
  • History from / to: date range (default: the last 12 months).
  • History interval: daily, weekly or monthly bars.

Pricing

Pay per event, cheaper on higher Apify plans:

EventPriceWhen
quote$0.001every ticker returned
price-history$0.001per ticker, only when the history was read, any number of bars

Unknown tickers, failures and invalid inputs are free. Apify adds its standard tiny start event per run. The run stops cleanly at your Max cost per run.

Speed

Measured on Apify at 256 MB: 3 tickers in 4 seconds; 40 tickers with two years of daily history in 66 seconds.

Honest limits

  • Prices are what Yahoo Finance shows on its public pages: real time for some markets, delayed (usually 15–20 minutes) for others. marketTime tells you when the price was set.
  • No intraday (minute) bars, options chains, full financial statements or news in this version.
  • Use the data in line with Yahoo's terms. Not investment advice.

Use it from AI agents (MCP)

Hosted, with OAuth sign-in:

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

With an API token instead of OAuth:

{
"mcpServers": {
"yahoo-finance": {
"url": "https://mcp.apify.com/?tools=sumitr_mardy/yahoo-finance-scraper",
"headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" }
}
}
}

Local stdio:

{
"mcpServers": {
"yahoo-finance": {
"command": "npx",
"args": ["-y", "@apify/actors-mcp-server", "--actors", "sumitr_mardy/yahoo-finance-scraper"],
"env": { "APIFY_TOKEN": "YOUR_APIFY_TOKEN" }
}
}
}

Agent tip: ask for quotes only (includeHistory: false) unless the question needs past prices; use monthly bars for long ranges.

Run it from code

Python:

from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("sumitr_mardy/yahoo-finance-scraper").call(run_input={
"symbols": ["AAPL", "MSFT", "NVDA"],
"includeHistory": True,
"historyStart": "2024-01-01",
"historyInterval": "1wk",
})
for q in client.dataset(run["defaultDatasetId"]).iterate_items():
print(q["symbol"], q["price"], q["peRatio"], len(q["history"]))

cURL (waits for the run and returns the rows):

curl -X POST "https://api.apify.com/v2/acts/sumitr_mardy~yahoo-finance-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"symbols":["SPY","^GSPC","BTC-USD"]}'

FAQ

How far back does history go? As far as Yahoo has it: decades for large stocks (monthly bars from 2010 tested for AAPL).

Can I track a watchlist every day? Schedule the actor and connect the dataset to Google Sheets or a webhook.

Why is a field null? Yahoo does not publish it for that instrument, for example P/E for an index or employees for crypto.