Yahoo Finance Stock Data Scraper: OHLCV & Quotes
Pricing
from $0.15 / 1,000 chart rows
Yahoo Finance Stock Data Scraper: OHLCV & Quotes
Extract public Yahoo Finance quote metadata and historical OHLCV rows for stocks, ETFs, indices, crypto, forex, and funds for spreadsheets, dashboards, and APIs.
Pricing
from $0.15 / 1,000 chart rows
Rating
0.0
(0)
Developer
Fetch Cat
Maintained by CommunityActor stats
0
Bookmarked
14
Total users
3
Monthly active users
13 days ago
Last modified
Categories
Security
Limited permissionsShare
Export public Yahoo Finance chart rows with historical OHLCV values, available adjusted close and corporate-action fields, plus symbol and market context. Select a supported chart range and interval, retaining source URLs and collection times for your own research tools. Source coverage and delays vary, and this is not an execution feed or a verified backtest dataset.
Quick start
Start with a familiar symbol, a short supported range and a daily interval before expanding the list. The existing multi-asset example is:
{"symbols": ["AAPL", "MSFT", "SPY", "BTC-USD"],"range": "1mo","interval": "1d","includeRawTimestamps": true,"maxConcurrency": 3,"maxRunSeconds": 270}
Prefer a video guide? This short Apify walkthrough shows you how to set up and run an Actor. It uses a different Actor, but the setup steps are the same.
Ready-to-run examples
Choose an example to start with a preconfigured input, then adjust its symbols, range or interval.
- Yahoo Finance Historical Prices Export — Daily chart rows for three symbols over one year.
- Fetch Crypto and Forex Prices from Yahoo Finance — Daily chart rows for three crypto and forex symbols over one month.
- Get Recent Intraday Stock Candles — Fifteen-minute candles for two stock symbols over five days.
What you get
One saved chart row per returned timestamp, with requested symbol, exchange, currency and timezone context, OHLCV and available adjusted-close, dividend or split values. Quote-level metadata can repeat across historical rows. Unavailable symbols, empty lookups and extraction diagnostics remain in RUN_SUMMARY rather than paid data rows.
Who is it for?
- Market-data researchers retaining source-linked historical price observations.
- Analytics developers preparing chart tables for their own notebooks or dashboards.
- Data engineers keeping symbol, time, currency and source context in a warehouse.
- Research-tool builders passing reviewed price records into separate analysis workflows.
How you can use the data
- Prepare a small daily chart sample. Use AAPL with the existing one-month/daily settings and retain timestamp, ISO date, exchange timezone and source URL. A chart date and repeated current quote metadata represent different contexts rather than one historical point-in-time quote object.
- Keep mixed asset symbols explicit. Use the existing stock, SPY and BTC-USD examples, preserving source currency and symbol notation. Missing corporate-action fields for one asset should not be filled by borrowing another asset's values.
- Review adjusted values and actions separately. Retain close, adjustedClose, dividend and splitRatio where supplied. Source adjustments and event dates need their own review before a downstream model or backtest, without claiming this export is complete or point-in-time certified.
- Maintain your own recurring chart observations. Store symbol, date, interval and collection time in your destination before deduplication or comparisons. Yahoo interval/range limits and delayed values can change coverage, and alerts or analysis are downstream work.
Input settings
| Setting | JSON key | What to enter |
|---|---|---|
| Ticker symbols | symbols | Yahoo Finance symbols, one per row. |
| Range | range | Chart range such as 1mo, 1y, 5y, ytd, or max. |
| Interval | interval | Candle interval such as 1d, 1wk, 1mo, or supported intraday intervals. |
| Include raw Unix timestamps | includeRawTimestamps | Keeps Yahoo's raw timestamp in addition to the ISO date. |
| Maximum concurrency | maxConcurrency | Number of symbols to request at the same time. |
| Maximum run time | maxRunSeconds | Caps requested work at 60–300 seconds. The Actor reserves the final 30 seconds to save completed rows and pending symbols. |
| Resume pending symbols | resumeSymbols | Optional symbols copied from the PENDING_SYMBOLS key-value record after a partial run. They can be used on their own or with symbols. Duplicates are skipped. |
Output data
This synthetic example illustrates the row shape. Its prices are not market measurements:
{"symbol": "AAPL","exchangeName": "NMS","currency": "USD","regularMarketPrice": 212.44,"previousClose": 211.18,"chartPreviousClose": 210.79,"timezone": "America/New_York","range": "1mo","interval": "1d","timestamp": 1782999000,"date": "2026-07-02T13:30:00.000Z","open": 211.52,"high": 214.12,"low": 210.88,"close": 212.44,"adjustedClose": 212.44,"volume": 54210000,"dividend": null,"splitRatio": null,"sourceUrl": "https://finance.yahoo.com/quote/AAPL","scrapedAt": "2026-07-03T10:00:00.000Z"}
| Field | Description |
|---|---|
symbol, exchangeName, currency | Requested symbol and market context. |
regularMarketPrice, previousClose, chartPreviousClose | Quote-level price metadata from Yahoo Finance. |
timezone, range, interval | Chart timezone and requested chart settings. |
timestamp, date | Raw Unix timestamp and ISO date for the price row. |
open, high, low, close, adjustedClose, volume | OHLCV candle values and Yahoo's adjusted close when available. |
dividend, splitRatio | Dividend amount and stock-split ratio at that timestamp when reported by Yahoo Finance. |
sourceUrl, scrapedAt | Yahoo Finance source page and scrape timestamp. |
Symbols that cannot produce usable rows are recorded in the RUN_SUMMARY key-value record rather than as paid error rows. A confirmed unavailable symbol or completed lookup with no usable records succeeds with an empty dataset and a reason in emptySymbols. Blocking, malformed responses and incomplete extraction remain diagnostic failures, not evidence that the symbol has no data. Mixed batches retain useful rows and report unresolved inputs as partial results.
Download your results
Open your run's dataset, choose Export and select JSON, CSV or Excel. JSON keeps nested fields together. CSV and Excel are useful when you want to review the records in a spreadsheet.
See Apify's download and export guide for the available formats and field options.
Pricing
A run has a one-time start event, including runs that produce no price rows. The result event charges for successfully saved chart rows. A symbol can create many paid timestamp rows rather than one combined record.
Empty lookups, failed symbol requests and run-summary diagnostics do not create result charges. Keep ranges, intervals and symbol lists bounded and allow for platform usage.
See the live Pricing tab for current rates and discounts.
Tips for best results
- Keep ticker notation exact. Preserve suffixes such as -USD or =X and index prefixes such as ^.
- Pair short intervals with short ranges. Yahoo limits available intraday history.
- Retain timezone and currency context. Different assets and exchanges cannot be compared as unqualified numbers.
- Use raw timestamps where useful. They supplement the ISO date rather than certifying a complete historical snapshot.
- Keep concurrency moderate. A larger symbol list does not remove source throttling.
- Continue pending symbols explicitly. Copy PENDING_SYMBOLS.symbols into resumeSymbols instead of assuming an automatic new run.
Limits and caveats
- This actor exports public Yahoo Finance data and does not provide investment advice.
- Some symbols, intervals, or ranges may be unavailable or delayed on Yahoo Finance.
- Intraday ranges can be limited by Yahoo's public chart endpoint.
- Yahoo Finance can rate-limit or return a block page. The Actor retries transient responses with bounded backoff, but it does not guarantee every public symbol is available.
- A partial run keeps saved data and records
RUN_SUMMARY. Symbols not completed before the work deadline are listed inPENDING_SYMBOLS. Confirmed unavailable symbols and completed empty lookups produce no data rows and include truthful reasons. - Always verify financial data before using it for trading, compliance, or high-stakes decisions.
The chart range and interval select available source rows, not a guaranteed trading calendar or complete event history. Quote-level regularMarketPrice and previousClose metadata can repeat beside historical OHLCV timestamps, so keep those fields separate from the candle's own open, high, low and close.
resumeSymbols can be supplied alone or combined with symbols, with duplicates skipped as documented. A later run has its normal start event and can save and charge returned chart rows again. Keep intended range and interval settings and your own stored row identities when continuing work.
Automation and integrations
Save your settings for next time
Once you have an input that works for you, save it as an Apify task. This keeps your settings together so you can use them again without filling in the form from scratch.
Run on a schedule
Need fresh results regularly? You can schedule the Actor or a saved task to run at a time that suits you.
Each scheduled run collects the data again. If you want to compare results or highlight changes, add that step in your own workflow.
Send results to your other tools
Use n8n, Make or Zapier to connect this scraper to the rest of your workflow. For example, you could pass its results to an AI assistant or add records to a spreadsheet. Follow the Apify integration guides for your chosen tool.
For a custom connection, an Apify webhook can notify your app when a run finishes or fails. Your app can then fetch the results or handle the failure.
API usage
Want to collect this data from your own app or automation? The examples below send input to the scraper and show how to collect its results.
The Node.js and Python examples wait for the run to finish before reading its results. The cURL example starts the run and returns its details. Wait for that run to finish, then use its defaultDatasetId to fetch the results.
For setup instructions, see Apify's JavaScript client guide, Python client guide and Actor runs API reference.
cURL
curl "https://api.apify.com/v2/acts/fetch_cat~yahoo-finance-stock-data-scraper/runs?token=$APIFY_TOKEN" \-H "Content-Type: application/json" \-d '{"symbols": ["AAPL", "MSFT", "SPY"],"range": "1mo","interval": "1d"}'
Node.js
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: process.env.APIFY_TOKEN });const run = await client.actor('fetch_cat/yahoo-finance-stock-data-scraper').call({"symbols": ["AAPL"],"range": "1mo","interval": "1d","includeRawTimestamps": true,"maxConcurrency": 1});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items);
Python
import osfrom apify_client import ApifyClientclient = ApifyClient(os.environ['APIFY_TOKEN'])run = client.actor('fetch_cat/yahoo-finance-stock-data-scraper').call(run_input={"symbols": ["AAPL"],"range": "1mo","interval": "1d","includeRawTimestamps": True,"maxConcurrency": 1})print(client.dataset(run['defaultDatasetId']).list_items().items)
MCP and AI agents
You can ask your AI assistant to collect data with Yahoo Finance Stock Data Scraper and help you work with the results. The scraper returns the data, and your assistant can then summarize it, compare records or prepare notes.
Connect your assistant through the Apify MCP server. MCP gives your assistant a way to find this scraper, run it and read the results. Follow the official setup and sign-in guide for your app.
Easier setup with an Apify plugin
If you use a supported coding assistant, the official Apify plugin can set up the connection for you. It connects your assistant to Apify and includes instructions for common tasks. Follow the guide for your particular app.
Use Apify AI in Console
Prefer to keep everything in Apify? Open Apify AI in Console and ask it to find Fetch Cat's Yahoo Finance Stock Data Scraper. You can describe the data you want and ask questions about the results.
Apify AI is currently in beta. It asks for confirmation before starting an Actor, and normal run charges apply.
Choose your assistant
- Claude and Claude Code (Anthropic): Apify setup guide.
- ChatGPT and Codex (OpenAI): Apify setup guides.
- Grok Bot (xAI): Apify plugin guide.
- Gemini CLI (Google): MCP server setup guide. Use the server URL below with the HTTP configuration supported by Gemini CLI.
Connect just this scraper
To keep your setup focused on this scraper, add this server configuration to a compatible MCP client:
{"mcpServers": {"apify": {"url": "https://mcp.apify.com?tools=fetch_cat/yahoo-finance-stock-data-scraper"}}}
Sign in to Apify when your client asks. If your client uses a Bearer token instead, follow its setup guide and keep the token in its secure configuration. Configuration formats vary by app, so use the linked guide if your client needs a different format.
Use Apify's general server
Already connected to the general Apify MCP server at https://mcp.apify.com? You can use it to find this scraper without adding another server. Ask your assistant to use Yahoo Finance Stock Data Scraper by Fetch Cat, or give it the identifier fetch_cat/yahoo-finance-stock-data-scraper.
Your assistant can check the available settings and retrieve the results from the returned run. If the run is still working, it should follow that run rather than start it again. Both connection options use Apify's hosted service.
Example requests
- “Use Fetch Cat’s Yahoo Finance Stock Data Scraper to collect AAPL chart rows for one month at a daily interval, with raw timestamps on and concurrency 1. Keep currency, timezone and source context without treating the data as executable prices.”
- “Collect BTC-USD chart rows for one month at a daily interval with concurrency 1. Preserve missing dividend or split values rather than borrowing stock-market assumptions.”
- “Retrieve MSFT chart rows for one month at a weekly interval with raw timestamps on and concurrency 1. Keep historical candles separate from repeated quote metadata for my own later review, without producing a trading recommendation.”
Normal Apify charges apply. Check the live Pricing tab before asking your assistant to run a larger batch.
Pay with x402
If your AI agent has a funded wallet, it can pay for Apify usage through x402. This experimental option lets an agent use Apify without a conventional account.
Apify AGI provides a prepaid API token with a spending cap after payment. Your agent can use that token to run this scraper through the Apify API or an authenticated MCP connection.
Some MCP setups also support paying for each request directly. That is a different payment option, so check the official guide for its availability.
Follow the official guide for wallet setup, supported payment options and current terms. Apify handles the payments. Keep wallet keys and payment tokens in your agent's secure configuration.
Other ways for agents to pay
Apify also supports MPP for prepaid access through AGI and Skyfire for eligible Actors. If your agent already uses one of these, see the agentic payment guide to choose the right setup.
FAQ
Can I export Yahoo Finance data to CSV or Excel?
Yes. Download the Apify dataset as CSV, Excel, JSON, XML, RSS, or through the Dataset API.
Can I scrape crypto or forex?
Yes, when Yahoo Finance supports the symbol, such as BTC-USD or EURUSD=X.
Why did a symbol return no rows?
Check RUN_SUMMARY for the per-symbol reason. A confirmed unavailable symbol or completed lookup with no usable records is an empty success. A block or parsing failure is not proof of delisting or no matches. Mixed runs retain available rows and identify unresolved inputs. No paid error row is created.
Is this real-time market data?
No guarantee. Yahoo Finance public data can be delayed or incomplete depending on the symbol and market.
Related Actors
- Google News Scraper — Collect public Google News feed headlines, dates and links.
- CoinMarketCap Crypto Prices Scraper — Collect public cryptocurrency price, market-cap and trading-volume snapshots from CoinMarketCap.
- SEC EDGAR Company Filings Scraper — Collect public SEC company-filing metadata and available filing links.
- Google Trending Searches Scraper — Collect current country-level trending-search topics, traffic labels and related news context.
- Stocktwits Scraper — Collect public Stocktwits market posts and available engagement around supported symbols or feeds.
Support and feedback
For custom additions or integrations, email hello@fetchcat.dev.
Found an error or have a feature request? Open an issue with the run URL, a non-sensitive input example and what you expected.
Need help sharing it? See Apify’s guide to sharing a run when reporting an issue. Sharing a run can give the developer access to its input, logs and results, so use a run that contains no sensitive data. Please leave out API tokens, passwords, cookies, private documents and personal data. Use a public sample URL or a redacted example instead.
Tried this scraper? We'd love to hear how it worked for you. Leave a review to help others choose the right tool and help us improve it. Your feedback means a lot to us.
Made with care for curious people, AI agents and the possibilities in data. ♥