Yahoo Finance historical data API: price history per symbol, or every bar

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.

Use the Yahoo Finance quote page itself when

The Actor saves work when

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:

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

From a script

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.

More guides