Yahoo Finance Scraper: Stock Prices, Options & Price Alerts avatar

Yahoo Finance Scraper: Stock Prices, Options & Price Alerts

Pricing

from $0.50 / 1,000 quotes

Go to Apify Store
Yahoo Finance Scraper: Stock Prices, Options & Price Alerts

Yahoo Finance Scraper: Stock Prices, Options & Price Alerts

Yahoo Finance stock data API: live quotes, price history, dividends, financial statements, options chains, news and company details for stocks, ETFs, crypto, indexes and B3 tickers. Built-in price alerts and change tracking for scheduled runs.

Pricing

from $0.50 / 1,000 quotes

Rating

0.0

(0)

Developer

roomy_tweet

roomy_tweet

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

16 days ago

Last modified

Features

Limited permissions

Share

Get Yahoo Finance data for any list of stocks, ETFs, indexes, currencies, crypto and futures in one run: live quotes, price history, dividends and splits, financial statements, options chains, news and company details. You can also monitor your watchlist on a schedule, with built-in price alerts (AAPL > 350), change since the last run, new 52-week highs and lows, and upcoming earnings and ex-dividend dates.

No Yahoo account and no API key are needed.

What you can do with it

  • Stock price API: current price, change, volume, market cap, P/E, EPS, dividend yield, 52-week range and earnings date for hundreds of symbols in seconds.
  • Historical prices: daily, weekly, monthly or intraday bars (open, high, low, close, adjusted close, volume) for any range or date window.
  • Dividends and splits: the full payment history, one row per dividend.
  • Financial statements: revenue, gross profit, operating income, net income, EBITDA, EPS, assets, liabilities, equity, debt, cash, operating cash flow, capex and free cash flow. Annual and quarterly.
  • Options chains: every contract with strike, bid/ask, volume, open interest, implied volatility and days to expiration. Optionally only strikes near the price.
  • Company details and analysts: sector, industry, employees, description, executives, margins, growth, analyst price targets, rating and next earnings date.
  • News: recent Yahoo Finance articles per symbol.
  • Screeners: add Yahoo's day gainers, day losers, most active, most shorted and other ready-made lists.
  • Bundle mode for backtests: one row per symbol with years of bars, dividends, statements, options and news inside it, charged once per symbol.
  • Watchlist monitoring and alerts: schedule the Actor hourly or daily, save only what changed, and get notified by email, Slack or webhook through Apify integrations.

Symbols you can use

WhatExamples
US and global stocksAAPL, MSFT, BRK-B, 7203.T, SAP.DE, SHOP.TO
Brazilian B3 stocks, units and FIIsPETR4, VALE3, ITUB4, HGLG11 (.SA is added for you)
ETFs and fundsSPY, QQQ, BOVA11
Indexes^GSPC, ^IXIC, ^BVSP, ^FTSE
CurrenciesEURUSD=X, BRL=X
CryptoBTC-USD, ETH-USD
FuturesGC=F (gold), CL=F (oil)
Company namesNu Holdings, Petrobras (the best match from Yahoo search; the run report shows which ticker was picked)

Price alerts

Write conditions on the same line as the symbol:

AAPL > 350
PETR4 < 30
BTC-USD > 100000 < 60000

You can also turn on these alerts for every symbol:

AlertFires when
Move since last runThe price moved at least X% up or down since the previous run.
Above / below a priceThe condition becomes true. On the first run it fires if the condition is already true; after that only when the price crosses the level.
New 52-week high or lowOnce for each new high or low.
Earnings soonThe next earnings date is within N days. Once per date.
Ex-dividend soonThe ex-dividend date is within N days. Once per date.

Each quote row gets alert (true/false), alerts (the texts) and, when tracking is on, previousRunPrice, changeSinceLastRun and changeSinceLastRunPercent. With Save only quotes with an alert, quiet runs save nothing and cost almost nothing.

The memory lives in a named key-value store in your account (yahoo-finance-monitor by default). Use one name per watchlist.

Example: daily watchlist with alerts

{
"symbols": ["AAPL > 350", "NVDA", "PETR4 < 30", "BTC-USD > 100000"],
"alertMovePercent": 5,
"alert52WeekHighLow": true,
"alertEarningsWithinDays": 3,
"onlyAlerts": true
}

Schedule it in Apify Console, then add an email or Slack integration on "Run succeeded" to get the alert rows.

Input examples

Quotes with company details:

{ "symbols": ["AAPL", "MSFT", "VALE3", "^BVSP"], "includeDetails": true }

Five years of daily prices and dividends:

{ "symbols": ["KO", "ITUB4"], "includeHistory": true, "historyRange": "5y", "historyInterval": "1d", "includeDividends": true, "dividendsRange": "5y" }

Options near the money for the next two expirations:

{ "symbols": ["TSLA"], "includeOptions": true, "optionsExpirations": 2, "optionsStrikeRangePercent": 10 }

Today's top gainers with news:

{ "screeners": ["day_gainers"], "screenerCount": 20, "includeNews": true, "newsPerSymbol": 3 }

Two output layouts

LayoutWhat you getChargedBest for
Rows (default)A flat table: one row per quote, bar, dividend, period, contract or articlePer rowSpreadsheets, BI tools, filtering
BundleOne row per symbol, with history, dividends, splits, financials, options and news as arrays insideOnce per symbolBacktests, long histories, apps that read JSON

Ten years of daily prices for 50 symbols is about 126,000 rows in rows mode, but only 50 rows in bundle mode. Alerts and onlyAlerts work the same in both.

Bundle example: five years of history, dividends and statements:

{ "symbols": ["AAPL", "MSFT", "PETR4"], "outputMode": "bundle", "includeDetails": true, "includeHistory": true, "historyRange": "5y", "includeDividends": true, "dividendsRange": "5y", "includeFinancials": true, "financialsFrequency": "both" }

A bundle row is the quote row plus the arrays:

{
"recordType": "quote", "bundle": true, "symbol": "AAPL", "price": 342.37, "currency": "USD",
"historyInterval": "1d",
"history": [{ "date": "2026-11-06", "open": 338.3, "high": 345.79, "low": 338.3, "close": 342.37, "adjClose": 342.37, "volume": 44703806 }],
"dividends": [{ "date": "2026-08-10", "amount": 0.27 }],
"splits": [],
"financials": [{ "frequency": "annual", "periodEnd": "2026-09-30", "currency": "USD", "totalRevenue": 478834000000, "netIncome": 132175000000 }]
}

A bundle that would pass 8 MB (for example every expiration of a big options chain) is cut from the end. In that case the row gets bundleTrimmed: true and the run report gets a warning.

Output

Everything goes to one dataset. The recordType column tells the rows apart, and the dataset has ready views: Quotes, Company details, Price history, Dividends and splits, Financial statements, Options and News.

Quote:

{
"recordType": "quote",
"symbol": "PETR4.SA",
"input": "PETR4 < 40",
"resolvedFrom": "B3 ticker: added .SA",
"name": "Petróleo Brasileiro S.A. - Petrobras",
"quoteType": "EQUITY",
"exchangeName": "São Paulo",
"currency": "BRL",
"price": 45.36,
"changePercent": -1.284,
"marketCap": 619775721472,
"trailingPE": 4.3324,
"dividendYieldPercent": 8.08,
"fiftyTwoWeekHigh": 59.79,
"sector": "Energy",
"analystTargetMean": 60.96,
"analystRecommendation": "strong_buy",
"previousRunPrice": 46.1,
"changeSinceLastRunPercent": -1.6052,
"alert": false,
"alerts": [],
"marketTime": "2026-11-06T21:40:13.000Z",
"url": "https://finance.yahoo.com/quote/PETR4.SA"
}

Price bar:

{ "recordType": "price", "symbol": "AAPL", "interval": "1d", "currency": "USD", "date": "2026-11-06", "open": 338.3, "high": 345.79, "low": 338.3, "close": 342.37, "adjClose": 342.37, "volume": 44703806 }

Option contract:

{ "recordType": "option", "symbol": "AAPL", "contractSymbol": "AAPL261116C00342500", "type": "call", "expiration": "2026-11-16", "daysToExpiration": 8, "strike": 342.5, "currency": "USD", "lastPrice": 6.65, "bid": 5.6, "ask": 6.4, "volume": 142, "openInterest": 157, "impliedVolatilityPercent": 30.1399, "inTheMoney": false, "underlyingPrice": 342.37 }

Financial statement, dividend, split and news rows follow the same flat style.

Run report: the REPORT record in the run's key-value store lists every input line with its status and the symbol it became. It also shows alerts, extras counts, request counts and a quality check.

Statuses:

StatusMeaning
OKQuote saved.
NOT_FOUNDYahoo has no such symbol. Not charged.
NO_ALERTonlyAlerts is on and nothing fired. Not charged.
DUPLICATEAnother line already gave this symbol.
FAILEDThe lookup for this symbol failed.
RATE_LIMITEDYahoo answered HTTP 429 and the run stopped.
SKIPPEDThe spending limit came first.

Pricing

Pay per event. In rows mode you pay for the rows saved, by type (quote, company details, history row, financial period, option contract, news article). In bundle mode you pay one bundle event per symbol, whatever it holds. Symbols that are not found and quotes skipped by Save only quotes with an alert are not charged. See the Pricing tab for the current prices. The run stops cleanly at your maximum cost per run.

FAQ

Are prices real-time? They are what Yahoo Finance shows. Most exchanges are delayed 15 to 20 minutes, crypto is near real-time. marketTime tells you when each price is from.

Why did a company name pick the wrong ticker? Names go through Yahoo search, which prefers the most-traded listing. "Petrobras" gives PBR (New York), not PETR4.SA. Type the ticker when you want a specific exchange. Some brand names, like "Nubank", are not in Yahoo search. Use the company name ("Nu Holdings") or the ticker (NU).

Why are some fields empty? Yahoo does not publish every field for every asset. Indexes have no P/E, crypto has no dividends, and B3 stocks show no day range on weekends.

How far back does history go? Daily bars go back decades for most stocks. Yahoo keeps 1-minute bars for about 8 days, other minute bars for 60 days and hourly bars for about 2 years.

Does it need a proxy? Usually not. If Yahoo rate-limits the direct connection, the Actor switches to Apify Proxy by itself. You can also set a proxy in the input.

Is scraping Yahoo Finance allowed? The Actor reads public data that Yahoo Finance shows to any visitor, without logging in. Check Yahoo's terms and your local laws for your use case, especially before redistributing the data.

Changelog

  • 0.1: first version. Bundle mode (one row per symbol). B3 codes with a digit inside (B3SA3). Quotes, details, history, dividends and splits, financials, options, news, screeners, alerts and change tracking.