Yahoo Finance Historical Prices Scraper ($0.5/1K rows) avatar

Yahoo Finance Historical Prices Scraper ($0.5/1K rows)

Pricing

from $0.35 / 1,000 price rows

Go to Apify Store
Yahoo Finance Historical Prices Scraper ($0.5/1K rows)

Yahoo Finance Historical Prices Scraper ($0.5/1K rows)

Yahoo Finance historical prices scraper for stock prices: date, open, high, low, close, adjusted close, volume, dividends and splits. Takes symbols of stocks, ETFs, indices, crypto or currency pairs, a date range and an interval. Use it to build OHLC price history for backtests or charts.

Pricing

from $0.35 / 1,000 price rows

Rating

0.0

(0)

Developer

Tam Ng.

Tam Ng.

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

Yahoo Finance Historical Prices Scraper

Download historical prices from Yahoo Finance for stocks, ETFs, indices, crypto and currency pairs, with no login and no API key, for $0.50 per 1,000 price rows on the Free plan, down to $0.35 on higher plans.

Give it a list of symbols, pick a range and an interval, and get one row per symbol and period with open, high, low, close, adjusted close and volume, plus dividends and stock splits on the days they happened.

What you can do with it

  • Backtest trading strategies. Get years of daily, weekly or monthly prices for many symbols in one run.
  • Track a portfolio. Schedule a daily run with the 5-day range and append the new rows to your own table.
  • Feed dashboards and spreadsheets. Send clean price rows to Google Sheets, Excel, a database or a BI tool.
  • Build machine-learning datasets. Export long price histories with adjusted close and volume as CSV or JSON.
  • Study dividends and splits. The dividend and split fields show the amount or ratio on the exact day it happened.
  • Compare asset classes. Mix stocks, indices such as ^GSPC, crypto such as BTC-USD and FX pairs such as EURUSD=X in one run.

Output fields

One row per symbol and period. Example values come from a real run for AAPL with the daily interval.

FieldExample
symbol / nameAAPL / Apple Inc.
date2025-11-10 (trading day in the exchange's time zone)
open / high / low / close268.959991 / 273.730011 / 267.459991 / 269.429993
adjClose268.698608 (close adjusted for dividends and splits)
volume41312400
dividend / split0.26 / null (amount paid or ratio such as 4:1 on that day, otherwise null)
currency / exchange / instrumentTypeUSD / NasdaqGS / EQUITY
interval1d
timestamp / scrapedAt2025-11-10T14:30:00.000Z / 2026-11-10T07:53:29.543Z
exchangeTime2025-11-10 09:30 (date and time in the exchange's time zone, useful for intraday rows)
sessionnull for daily and longer rows; regular, pre or post for intraday rows

With What to get set to Current quote, each symbol gives one row with recordType (quote), symbol, name, price, previousClose, change, changePercent, dayHigh, dayLow, volume, fiftyTwoWeekHigh, fiftyTwoWeekLow, currency, exchange, instrumentType, exchangeTimezone, marketTime, firstTradeDate and scrapedAt.

Download results as JSON, CSV, Excel or XML, or read them through the Apify API.

Example output

One real row from a run for AAPL with the daily interval:

{
"symbol": "AAPL",
"name": "Apple Inc.",
"date": "2025-11-10",
"open": 268.959991,
"high": 273.730011,
"low": 267.459991,
"close": 269.429993,
"adjClose": 268.698608,
"volume": 41312400,
"dividend": 0.26,
"split": null,
"currency": "USD",
"exchange": "NasdaqGS",
"instrumentType": "EQUITY",
"interval": "1d",
"timestamp": "2025-11-10T14:30:00.000Z",
"scrapedAt": "2026-11-10T07:53:29.543Z"
}

How to use

  1. Add Symbols exactly as Yahoo Finance writes them: AAPL, BTC-USD, EURUSD=X, ^GSPC, VNM.VN, 7203.T.
  2. Choose the Range (1 day up to all available) and the Interval (1 minute up to monthly), or set an exact Start date and End date. Optional: Include pre- and post-market for intraday rows, Only dividend and split days, Add symbols from Yahoo lists (trending, day gainers, most active and other screeners), and What to get: Current quote for one snapshot row per symbol.
  3. Click Start and download the dataset as JSON, CSV or Excel, or read it through the API.

Example input

{
"symbols": ["AAPL", "MSFT", "BTC-USD", "^GSPC"],
"range": "5y",
"interval": "1d",
"proxyConfiguration": { "useApifyProxy": true }
}

Tips:

  • One year of daily prices is about 250 rows per stock. Use the weekly or monthly interval for long ranges to pay less.
  • Schedule a daily run with the 5d range to keep a table up to date.
  • Symbols are turned into upper case, and the same symbol listed twice is read only once.

Pricing and cost examples

You pay per price row saved to the dataset ("Price row" event). Platform usage and proxy traffic are included in the per-row price.

Apify planPrice per 1,000 price rows
Free (default price)$0.50
Bronze$0.45
Silver$0.40
Gold, Platinum, Diamond$0.35

Cost examples on the Free plan:

  • 100 rows ≈ $0.05
  • 1 stock, 1 year of daily prices (about 250 rows) ≈ $0.13
  • 10,000 rows ≈ $5.00 (≈ $3.50 on Gold and higher plans)

The Apify Free plan includes $5 of platform credit every month. Spent only on this Actor, that covers about 10,000 price rows per month, for example about 40 stocks with one year of daily prices.

You are charged only for rows saved to the dataset. A symbol that Yahoo Finance does not know, a symbol with no prices in the chosen range, or a symbol whose request still fails after 4 attempts saves nothing and is not charged. Periods where Yahoo returns neither an open nor a close price are skipped and not charged. To set a hard cap, enter a maximum total charge per run in the run options. The Actor stops as soon as that limit is reached.

Use it via API, on a schedule, or from an AI agent

JavaScript (npm install apify-client):

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });
const run = await client.actor('tamnt67/yahoo-finance-history-scraper').call({
symbols: ['AAPL', 'BTC-USD'],
range: '1y',
interval: '1d',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Python (pip install apify-client):

from apify_client import ApifyClient
client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("tamnt67/yahoo-finance-history-scraper").call(run_input={
"symbols": ["AAPL", "BTC-USD"],
"range": "1y",
"interval": "1d",
})
items = client.dataset(run["defaultDatasetId"]).list_items().items
print(items)

cURL (runs the Actor and returns the rows in one call):

curl -X POST "https://api.apify.com/v2/acts/tamnt67~yahoo-finance-history-scraper/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"symbols": ["AAPL"], "range": "1mo", "interval": "1d"}'

The sync endpoint waits for the run to finish, so use it for small runs and the client libraries for large ones.

Schedules: create an Apify Schedule for this Actor or a saved task to fetch the last 5 days every evening and keep your price table current.

AI agents: the Apify MCP server at https://mcp.apify.com lets AI assistants such as Claude or Cursor run this Actor and read its results.

FAQ

How much does Yahoo Finance Historical Prices Scraper cost?

Yahoo Finance Historical Prices Scraper costs $0.50 per 1,000 price rows on the Free plan and $0.45, $0.40 or $0.35 per 1,000 on higher Apify plans. One stock with one year of daily prices is about 250 rows, or about $0.13 on the Free plan. The Free plan's $5 monthly credit covers about 10,000 rows.

How many results do I get per symbol?

Yahoo Finance Historical Prices Scraper returns one row per trading period in the chosen range: about 250 rows per year of daily prices for a stock, about 52 per year with the weekly interval and 12 with the monthly interval. Crypto and FX pairs can have more daily rows because they trade on more days.

How can I get more results?

Choose a longer Range, up to "All available", use the daily interval, or add more symbols. Yahoo Finance Historical Prices Scraper reads every row Yahoo Finance publishes for that range; it cannot go back further than Yahoo's own history for a symbol.

Can I run it on a schedule or through the API?

Yes. Yahoo Finance Historical Prices Scraper works with Apify Schedules for daily or weekly runs, and with the Apify API through the JavaScript and Python clients or a single cURL call. See the API section above for working examples.

How fresh is the data?

Yahoo Finance Historical Prices Scraper reads Yahoo Finance live at the time of each run. Nothing is cached. Prices come as Yahoo Finance publishes them and may be delayed, and the row for the current day can change until the market closes.

Yahoo Finance Historical Prices Scraper collects only publicly visible price data, without logging in. You are responsible for how you use the data, including complying with Yahoo's terms of service and any data licensing rules that apply to you. This is not legal advice. If you are unsure, ask a lawyer.

Limitations

  • Fundamentals, financial statements, options, analyst ratings, holders and news are not included: Yahoo serves them only to sessions with a login-style cookie and crumb, which this Actor does not use.
  • Yahoo keeps 1-minute prices for about 7 days and other intraday intervals for about 60 days (1 hour: about 2 years); older intraday requests return no rows.
  • Current quote comes from Yahoo's chart data and may be delayed like the website. previousClose is the previous session's close.
  • Only dividend and split days works best with the daily interval: with weekly or monthly rows Yahoo may date the event inside the period, so it is not always matched.
  • Prices come as Yahoo Finance publishes them and may be delayed. This is not investment advice.
  • Not affiliated with Yahoo.
  • Range, dates and interval apply to every symbol in the same run.
  • When Yahoo gives no adjusted close for a period, adjClose equals close.
  • dividend and split are null on days without such an event.
  • If a symbol's request still fails after 4 attempts, that symbol is skipped and the run moves on.

Changelog

  • 1.0 update (2026-11-23): new intraday intervals (1 minute to 90 minutes, 1 hour) and a 1-day range, exact Start date / End date, Include pre- and post-market, Only dividend and split days, Add symbols from Yahoo lists (trending and screeners) and a Current quote mode; new output fields exchangeTime and session. Existing inputs and fields work as before.
  • 1.0 update (2026-11-19): an API call that leaves out symbols no longer gets the example value added; the example is used only when the run has no input source at all.
  • 1.0 (2026-11-19): First stable release.

Integrations

Works with every Apify integration: API, webhooks, Zapier, Make, Google Sheets, Slack, n8n, LangChain and the Apify MCP server.

Support

Found a problem or missing field? Report problems in the Issues tab of this Actor.