Yahoo Finance Scraper: Options Chain, History, Stock Quotes
Pricing
from $0.60 / 1,000 results
Yahoo Finance Scraper: Options Chain, History, Stock Quotes
Yahoo Finance scraper for stocks, ETFs, indexes, crypto and currencies: quotes and key statistics (price, market cap, P/E, dividend, earnings date), price history with adjusted close and dividends, or options chains with bid, ask, open interest, implied volatility, greeks and max pain.
Pricing
from $0.60 / 1,000 results
Rating
0.0
(0)
Developer
vøiddo
Maintained by CommunityActor stats
0
Bookmarked
3
Total users
3
Monthly active users
a day ago
Last modified
Categories
Features
Share
Yahoo Finance scraper for stocks, ETFs, indexes, crypto and currencies: quotes and key statistics (price, market cap, P/E, dividend, earnings date), price history with adjusted close and dividends, or options chains with bid, ask, open interest, implied volatility, greeks and max pain.
- Pay per result row: the platform usage of the run is included, and a run that finds nothing has no result charges.
- No login, no cookies, no account on Yahoo Finance: public pages only.
- Export to JSON, CSV, Excel, XML or HTML, or read the rows through the Apify API.
- Start it from the Console, on a schedule, through the API, or as a tool for agents over MCP.
- Tested every day on its example input, with the rows checked, and repaired when a check fails.
What you can use it for
- Options research: every call and put of a ticker with bid, ask, open interest and implied volatility.
- Backtests and charts: daily, weekly or monthly prices with adjusted close, dividends and splits.
- Watchlists: price, change, volume and market cap for every ticker you follow, on a schedule.
- Screening: P/E, dividend yield, 52 week range and the next earnings date side by side.
- Spreadsheets and dashboards: feed quotes, price history or options chains into Google Sheets or your own app.
What you get
Every result is one row in the run's dataset. Download it as JSON, CSV, Excel or HTML, or read it through the Apify API. The main fields:
| Field | Meaning |
|---|---|
symbol | Symbol |
name | Name |
quoteType | Type |
price | Price |
currency | Currency |
changePercent | Change % |
dayLow | Day low |
dayHigh | Day high |
volume | Volume |
marketCap | Market cap |
trailingPE | P/E |
fiftyTwoWeekLow | 52 week low |
fiftyTwoWeekHigh | 52 week high |
regularMarketTime | Quote time |
url | Yahoo Finance page |
Example row:
{"symbol": "AAPL","name": "Apple Inc.","quoteType": "EQUITY","exchange": "NasdaqGS","currency": "USD","marketState": "CLOSED","price": 343.46,"change": 1.46,"changePercent": 0.43,"previousClose": 342.0,"open": 346.085,"dayLow": 340.46,"dayHigh": 347.82,"fiftyTwoWeekLow": 243.42,"fiftyTwoWeekHigh": 348.15,"volume": 59946368,"averageVolume": 44451085,"marketCap": 5012516765696,"trailingPE": 39.38761,"forwardPE": 35.85982,"epsTrailing": 8.72,"dividendRate": 1.08,"dividendYield": 0.31,"exDividendDate": "2026-08-10","beta": 1.069,"earningsDate": "2026-11-02","targetMeanPrice": 329.3759,"recommendation": "buy","sector": "Technology","industry": "Consumer Electronics","regularMarketTime": "2026-10-16T20:00:01Z","url": "https://finance.yahoo.com/quote/AAPL/","scrapedAt": "2026-10-19T14:20:05Z"}
How to use it
- Open the Input tab (or call the actor through the API, see below).
- Fill in Tickers; the form opens with a working example.
- Set Maximum results to cap the size and the cost of the run.
- Click Start. Rows appear on the Output tab while the run works.
- Download the dataset, or connect it to Google Sheets, Make, Zapier, n8n or a webhook.
Input
| Field | Type | Required | Description |
|---|---|---|---|
tickers | array | no | Yahoo Finance symbols, one per entry: stocks such as AAPL or BRK-B, ETFs such as SPY, indexes such as ^GSPC, crypto such as BTC-USD, currency pairs such as EURUSD=X and futures such as CL=F. Shares listed outside the US carry a Yahoo suffix, for example VOD.L or 7203.T. Quote page links such as https://finance.yahoo.com/quote/AAPL/ work too, and so do NASDAQ:AAPL, BRK.B and EUR/USD as other sites write them. Duplicates are removed. One row is returned per ticker Yahoo knows. |
dataType | select | no | quotes: one row per ticker with price, change, volume and key statistics. options: the options chain of each ticker, one row per call or put contract with strike, bid, ask, last price, volume, open interest, implied volatility and greeks, plus max pain and put/call ratios of its expiration. history: one row per day, week or month with open, high, low, close, adjusted close, volume, dividends and splits. Allowed: quotes, options, history. Default: "quotes". |
startDate | string | no | First day of the price history as YYYY-MM-DD, for example 2020-01-01. Empty: one year before History to. Applies when Data is history. |
endDate | string | no | Last day of the price history as YYYY-MM-DD. Empty: today. Applies when Data is history. |
interval | select | no | One row per trading day, week or month. Applies when Data is history. Allowed: 1d, 1wk, 1mo. Default: "1d". |
optionType | select | no | Which contracts to return. Applies when Data is options. Allowed: all, calls, puts. Default: "all". |
expirations | integer | no | How many expiration dates to read per ticker, starting from the nearest one. Each date is one page. Applies when Data is options and Exact expiration dates is empty. Default: 1. |
expirationDates | array | no | Read these expiration dates instead of the nearest ones, as YYYY-MM-DD, for example 2026-12-18. A date with no contracts reads the next listed expiration after it, with a log line. Applies when Data is options. |
minStrike | integer | no | Skip contracts with a lower strike price. Empty: no limit. |
maxStrike | integer | no | Skip contracts with a higher strike price. Empty: no limit. |
minOpenInterest | integer | no | Skip contracts with less open interest. Empty: no limit. |
minVolume | integer | no | Skip contracts that traded fewer contracts today. Empty: no limit. |
riskFreeRate | number | no | Yearly interest rate in percent, such as a Treasury bill yield, used for the greeks, for example 4.25. Empty: 4.0, the 13 week US Treasury bill yield on 2026-11-06. Applies when Data is options. |
maxItems | integer | no | The run stops after this many result rows. It also caps what one run can cost. Default: 100. |
proxyConfiguration | object | no | Leave as is: the run starts on the cheapest network the site accepts and switches to Apify Proxy automatically when the site blocks it. Pick proxy groups here only to force one specific network. |
Field names from other tools work too: limit is read as maxItems. Select values match in any letter case or spelling.
Example input:
{"tickers": ["AAPL","MSFT","NVDA","AMZN","GOOGL","META","TSLA","SPY","QQQ","^GSPC","BTC-USD","EURUSD=X"],"maxItems": 20}
Options chain
Every call and put of the nearest two expirations, nearest the money first, with its greeks and the max pain of its expiration.
{"tickers": ["AAPL"],"dataType": "options","optionType": "all","expirations": 2,"maxItems": 500}
One row:
{"symbol": "AAPL261109C00330000","name": "AAPL 2026-11-09 330 Call","quoteType": "OPTION","optionType": "call","underlyingSymbol": "AAPL","underlyingName": "Apple Inc.","underlyingPrice": 342.37,"expiration": "2026-11-09","daysToExpiration": 1,"strike": 330.0,"currency": "USD","price": 13.06,"bid": 12.05,"ask": 14.15,"change": -2.0199995,"changePercent": -13.395222,"volume": 165,"openInterest": 250,"impliedVolatility": 61.0355,"delta": 0.8135,"gamma": 0.018428,"theta": -1.1289,"vega": 0.064,"rho": 0.0128,"inTheMoney": true,"maxPain": 347.5,"putCallVolumeRatio": 1.0095,"putCallOpenInterestRatio": 0.9597,"contractSize": "REGULAR","regularMarketTime": "2026-11-06T20:54:36Z","url": "https://finance.yahoo.com/quote/AAPL261109C00330000/","scrapedAt": "2026-11-08T02:30:00Z"}
Price history
Daily bars of 2020, newest first; the split and the dividends sit on their days.
{"tickers": ["AAPL","MSFT"],"dataType": "history","startDate": "2020-01-01","endDate": "2020-12-31","interval": "1d","maxItems": 1000}
One row:
{"symbol": "AAPL","name": "Apple Inc.","quoteType": "EQUITY","date": "2020-08-31","interval": "1d","open": 127.58,"high": 131.0,"low": 126.0,"close": 129.04,"adjClose": 125.0575,"volume": 225702700,"changePercent": 3.3912,"dividend": null,"split": "4:1","currency": "USD","exchange": "NasdaqGS","url": "https://finance.yahoo.com/quote/AAPL/history/?period1=1577836800&period2=1609459200","scrapedAt": "2026-11-08T02:30:00Z"}
Pricing
You pay per result row in the dataset (the current price per 1,000 results is on the Pricing tab). A run that finds nothing produces no rows and no result charges. Set Maximum results to cap what a single run can cost.
Limits and notes
- One row per ticker, read from the public quote page finance.yahoo.com/quote/TICKER/. That page already carries the quote and the key statistics, so the run makes one request per ticker.
- Prices are Yahoo's public quotes, delayed by up to 15 minutes on some exchanges (crypto and currencies are close to live). When a market is closed, price is the last regular session price and marketState says PRE, POST or CLOSED. regularMarketTime is the time of that price in UTC.
- changePercent and dividendYield are percentages: 0.43 means 0.43 percent. Dates are ISO 8601: exDividendDate and earningsDate as YYYY-MM-DD, regularMarketTime and scrapedAt in UTC.
- A field that does not exist for the kind of instrument comes back as null, for example no dividend for an index, no sector for a crypto and no market cap for an ETF. For funds, dividendYield is the fund yield.
- Tickers Yahoo does not know are skipped with a log line and do not stop the run. Use Yahoo's own symbols (BRK-B, not BRK.B).
- Options chain (Data: options): one row per contract from finance.yahoo.com/quote/TICKER/options/, one page per ticker and expiration date. symbol is the contract symbol (AAPL261120C00330000), name reads like AAPL 2026-11-20 330 Call, price is the last trade price and regularMarketTime the last trade time. Each row also carries the underlying symbol and price, expiration, daysToExpiration, strike, bid, ask, openInterest, impliedVolatility as a percent (25.3 means 25.3 percent) and inTheMoney.
- Greeks on every contract: delta, gamma, theta (per calendar day), vega (per 1 point of volatility) and rho (per 1 point of the rate), Black-Scholes-Merton from the contract's own implied volatility, the time left to 4 pm New York on the expiration day, the Interest rate input and the underlying's dividend yield. Listed US options are American style, so deep in the money contracts near a dividend can differ a little. A contract Yahoo shows at 0.00 percent volatility has no greeks.
- Every contract also carries three numbers of its whole expiration, from all its listed calls and puts whatever the filters: maxPain (the strike where the holders of all open contracts would be paid least at expiry), putCallVolumeRatio (put volume over call volume today) and putCallOpenInterestRatio.
- Contracts come nearest the current price first, calls and puts of a strike together, so a Maximum results limit keeps the strikes around the money. One expiration of a large stock holds 60 to 200 contracts: raise Maximum results when you read several dates. Tickers without listed options, such as currency pairs, are skipped with a log line.
- Price history (Data: history): one row per bar from finance.yahoo.com/quote/TICKER/history/, one page per ticker for the whole range, newest bar first as on Yahoo. Prices are adjusted for later splits as Yahoo shows them; adjClose is also adjusted for dividends; changePercent is the change from the bar before. dividend and split are filled on their ex dates only. Prices of the currency they trade in; volume is 0 for currency pairs.
- History from and History to take YYYY-MM-DD dates in the exchange's own calendar. A full daily history can reach 12,000 rows per ticker (Apple since 1980): set Maximum results to match.
- Only market data is collected: no account, portfolio or watchlist data and no news. Not affiliated with Yahoo.
- Only publicly visible data is collected. No login, no paywalled content, no personal contact details.
- The actor reads only pages that the site's robots.txt leaves open to automated access.
- Sites change their pages from time to time. The actor is checked automatically and repaired when a check fails.
- Each run sends one short usage record to the developer: the Actor and run IDs, the number of results, whether the run succeeded (and if not, the kind of error, such as "blocked" or "input problem"), whether the account is on a paid Apify plan, how the run was started (for example from the Console, the API or a schedule) and a one-way fingerprint of the account (a hash, not the account ID), so that repeat runs of one account count once. It contains nothing from your input or results.
Run it through the API
Python, with the apify-client package:
from apify_client import ApifyClientclient = ApifyClient("<YOUR_APIFY_TOKEN>")run = client.actor("v0iddo/yahoo-finance-scraper").call(run_input={"tickers": ["AAPL", "MSFT", "NVDA", "AMZN", "GOOGL", "META", "TSLA", "SPY", "QQQ", "^GSPC", "BTC-USD", "EURUSD=X"], "maxItems": 20})for item in client.dataset(run["defaultDatasetId"]).iterate_items():print(item)
JavaScript, with the apify-client package:
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });const run = await client.actor('v0iddo/yahoo-finance-scraper').call({"tickers": ["AAPL", "MSFT", "NVDA", "AMZN", "GOOGL", "META", "TSLA", "SPY", "QQQ", "^GSPC", "BTC-USD", "EURUSD=X"], "maxItems": 20});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items);
One HTTP call that waits for the run and returns the rows (for runs that finish within 5 minutes):
curl -X POST "https://api.apify.com/v2/acts/v0iddo~yahoo-finance-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \-H "Content-Type: application/json" \-d '{"tickers": ["AAPL", "MSFT", "NVDA", "AMZN", "GOOGL", "META", "TSLA", "SPY", "QQQ", "^GSPC", "BTC-USD", "EURUSD=X"], "maxItems": 20}'
Use it from an agent (MCP)
Claude, Cursor, VS Code and other MCP clients can call this actor as a tool through the Apify MCP server. Add it to the client's MCP configuration:
{"mcpServers": {"apify": {"url": "https://mcp.apify.com?tools=v0iddo/yahoo-finance-scraper","headers": {"Authorization": "Bearer <YOUR_APIFY_TOKEN>"}}}}
Then ask, for example: "Get the AAPL options chain for the nearest expiration with bid, ask, open interest and implied volatility."
FAQ
Do I need an account on Yahoo Finance, cookies or an API key?
No. The actor reads only what every visitor of Yahoo Finance can see, without logging in. You only need an Apify account to start it.
How many results can one run return?
Up to 20,000 rows per run. Without a limit it stops at 100. Set Maximum results to the number you need; large jobs can also be split into several runs or scheduled.
How am I charged?
Per result row in the dataset, at the price on the Pricing tab for your Apify plan. The platform usage of the run is included in that price. A run that finds nothing produces no rows and no result charges, and your spending limit for a run is always respected.
Why did my run return no results?
The status message of the run says why: nothing matched the input, the input was not a page the actor understands, the page is closed to automated access by robots.txt, or the site refused every network the actor tried. Check the input against the example above and run it again with a small limit.
Can I run it on a schedule?
Yes. Save your input as a task and add a schedule in the Apify Console (daily, hourly or with a cron expression). Each run gets its own dataset, so you keep a history.
Which formats can I export?
JSON, CSV, Excel, XML, HTML table and RSS from the Output tab or the API. Integrations send the rows to Google Sheets, Slack, Make, Zapier, n8n or a webhook.
Is collecting this data allowed?
The actor collects only what Yahoo Finance publishes to every visitor, without a login, and it reads only pages that robots.txt leaves open. Public data can still be personal data under laws such as the GDPR, and sites have their own terms: make sure your use of the data follows the rules that apply to you.
What happens when Yahoo Finance changes its pages?
Automated tests run the actor every day on the example input and check the rows, not only that the run finished. When a check fails, the actor is repaired and rebuilt; the build history on this page shows each update.
Something is missing or wrong. Where do I report it?
Open an issue on the Issues tab of this actor with the run link. Requests for a new field are welcome too.