This page is about historical prices for Yahoo Finance symbols: stocks (AAPL), ETFs (SPY), crypto (BTC-USD), currency pairs (EURUSD=X), indices (^GSPC) and futures (GC=F). It is not an API from Yahoo, not a trading tool and not investment advice.
People want a table of prices for many symbols, either as one summary row each (return, volatility, drawdown) or as every bar to download into a spreadsheet or a model.
Short version: a chart of one symbol → the Yahoo Finance quote page. A list of up to 500 symbols as clean rows, a leaderboard that remembers the last run, and only the new bars on a schedule → Yahoo Finance Price History on Apify. No login, no API key, no cookie or crumb to look after.
BRK-B (not BRK.B), ^GSPC, EURUSD=X, 7203.T, 0700.HK. A finance.yahoo.com/quote/... link works too. range is one of 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd or max; interval (bar size) runs from 1m to 3mo.output summary (the default) returns symbol, name, instrumentType, currency, lastPrice, changePct, periodReturnPct, volatility (annualised), maxDrawdownPct, periodHigh, periodLow, avgVolume, fiftyTwoWeekHigh, fiftyTwoWeekLow, bars, firstDate and lastDate.output bars returns symbol, date, open, high, low, close, adjClose and volume. Include dividends and splits (includeDividends) adds dividend and split rows.output bars and Only new bars since the last run (onlyNewBars) on a daily schedule, each run returns only the bars added since the last one (and the last bar again if Yahoo updated it); bars you already got are not charged.rank by return among your list (1 is best), previousRank, rankChange (positive means moved up), isNew and changeSinceLastRunPct.The input on the Actor's page is already filled in: AAPL, MSFT and BTC-USD. Examples from the Actor's page: 100 symbols as summaries cost $0.21, a year of daily bars for 10 symbols (about 2,500 bars) costs $0.26.
Good to know:
1m reaches back 8 days; 2m, 5m, 15m, 30m and 90m 60 days; 60m, 1h and 4h 730 days. The Actor tells you before it starts if a combination is not served.periodReturnPct is measured the way Yahoo's own charts do it: from the close just before the range starts to the latest close. adjClose and totalReturnPct need daily or longer bars.null on the first run for a given range and bar size.Price: $2 per 1,000 symbol summaries and $0.10 per 1,000 bars, plus $0.01 per run. Dividend and split rows are billed like bars. Error rows (unknown symbols) are free.
Try AAPL, MSFT and BTC-USD on Apify
curl -X POST "https://api.apify.com/v2/acts/northbell~yahoo-finance-price-history/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"symbols":["AAPL","MSFT","BTC-USD"],"range":"1mo","interval":"1d","output":"summary"}'
Rows have type summary, bar, dividend, split or error. For the five daily bars of one symbol, send {"symbols":["AAPL"],"range":"5d","output":"bars"}.
Source: the same public chart data Yahoo shows on its quote pages. Not affiliated with or endorsed by Yahoo.