US Stock Price Scraper
Pricing
Pay per event
US Stock Price Scraper
Download historical OHLCV stock price data (open, high, low, close, volume, dividends, splits) for US stocks, ETFs, and indices from Yahoo Finance. Supports any ticker and any interval (1m to 1mo); intraday intervals cover the longest history each interval retains, daily+ covers any range.
Pricing
Pay per event
Rating
0.0
(0)
Developer
BowTiedRaccoon
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
16 days ago
Last modified
Categories
Share
Download historical OHLCV (open, high, low, close, volume) stock price data for US stocks, ETFs, and indices from Yahoo Finance. Supports any ticker symbol and any interval from 1 minute to 1 month; daily and coarser intervals cover date ranges going back decades, and intraday intervals cover the longest history each interval retains (see Notes below). Includes dividends and stock splits.
What you get
Each record in the dataset contains:
| Field | Description |
|---|---|
ticker | Ticker symbol (e.g. AAPL, SPY, ^GSPC) |
date | Trading date in YYYY-MM-DD format |
datetime | Full ISO timestamp (intraday intervals only) |
open | Opening price |
high | Highest price during the interval |
low | Lowest price during the interval |
close | Closing price |
adj_close | Adjusted close (accounts for splits and dividends) |
volume | Shares traded during the interval |
dividend_amount | Dividend paid on this date, or null |
split_ratio | Split ratio as a string (e.g. "2:1"), or null |
currency | Trading currency (e.g. USD) |
exchange | Exchange name (e.g. NMS, PCX) |
instrument_type | Instrument type (e.g. EQUITY, ETF, INDEX, CRYPTOCURRENCY) |
short_name | Short instrument name (e.g. Apple Inc.) |
long_name | Long instrument name, when available |
timezone | Exchange timezone (e.g. America/New_York) |
interval | Data interval used (e.g. 1d, 1wk) |
source_url | Yahoo Finance history URL for the ticker |
How to use
Basic run
- Set Tickers to one or more symbols:
["AAPL", "SPY", "MSFT"] - Choose an Interval (
1dfor daily,1wkfor weekly, etc.) - Choose a Range (
1mo,1y,5y, etc.) or set a custom Start Date / End Date - Enable Include Events to get dividends and stock split data alongside OHLCV rows
Input parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
tickers | array | List of ticker symbols (required) | ["AAPL", "SPY", "MSFT"] |
interval | string | Price interval: 1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo, 3mo | 1d |
range | string | Shortcut range: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max | 1mo |
startDate | string | Custom start date YYYY-MM-DD — overrides range when used with endDate | — |
endDate | string | Custom end date YYYY-MM-DD | — |
includeEvents | boolean | Include dividends and stock splits in the output | true |
maxItems | integer | Total record cap across all tickers. 0 = unlimited | 0 |
Example inputs
Last month of Apple daily OHLCV:
{"tickers": ["AAPL"],"interval": "1d","range": "1mo"}
5-year weekly data for a portfolio:
{"tickers": ["AAPL", "MSFT", "GOOGL", "AMZN", "TSLA"],"interval": "1wk","range": "5y","includeEvents": true}
Custom date range for S&P 500:
{"tickers": ["^GSPC"],"interval": "1d","startDate": "2020-01-01","endDate": "2021-12-31","includeEvents": false}
Intraday 1-hour bars:
{"tickers": ["SPY"],"interval": "1h","range": "5d"}
Supported tickers
Any ticker listed on Yahoo Finance works, including:
- US stocks:
AAPL,MSFT,TSLA,NVDA - ETFs:
SPY,QQQ,IWM,GLD - Indices:
^GSPC(S&P 500),^DJI(Dow Jones),^IXIC(NASDAQ) - Crypto (via Yahoo Finance):
BTC-USD,ETH-USD
Notes
- Intraday history windows — each interval has its own lookback:
1mcovers the last 30 days,2m/5m/15m/30m/90mcover the last 60 days, and60m/1hcover the last 730 days. A request for more history than an interval retains is automatically narrowed to the available window rather than returning nothing — you always get the most complete answer the interval supports. Daily and coarser intervals (1d,5d,1wk,1mo,3mo) have no such limit. - Data is sourced directly from the Yahoo Finance chart API. All prices reflect Yahoo Finance's data as of the time of the run.
- Stock prices before splits are not adjusted in the
closefield, butadj_closeapplies all historical splits and dividends.