Yahoo Finance API — Stock Quotes & Historical Data avatar

Yahoo Finance API — Stock Quotes & Historical Data

Pricing

from $1.60 / 1,000 yahoo finance records

Go to Apify Store
Yahoo Finance API — Stock Quotes & Historical Data

Yahoo Finance API — Stock Quotes & Historical Data

Get Yahoo Finance data by API: stock quotes, historical OHLCV price bars and ticker search for stocks, ETFs, indices and crypto. USD 2 per 1,000 records.

Pricing

from $1.60 / 1,000 yahoo finance records

Rating

0.0

(0)

Developer

Muhammad Afzal

Muhammad Afzal

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a month ago

Last modified

Features

Limited permissions

Share

This Yahoo Finance API Actor returns stock quotes, historical OHLCV price bars and ticker symbol search results from public Yahoo Finance data for stocks, ETFs, indices and crypto, as JSON, CSV or Excel. It costs USD 2.00 per 1,000 records on the FREE tier (USD 0.002001 per record) plus a start fee of about USD 0.006, so the default one-ticker quote costs under USD 0.01.

It is built for analysts, quant hobbyists, portfolio dashboards, spreadsheet users and AI agents that need Yahoo Finance numbers without maintaining their own scraper or library.

Is there an official Yahoo Finance API?

No. Yahoo retired its official finance API in 2017, so developers now read the public data behind the Yahoo Finance website. This Actor does that for you and puts the result behind the Apify API: send tickers, get clean rows back, with schedules, webhooks and exports included.

What Yahoo Finance data does it return?

Each record is one quote, one historical bar or one search match, marked by recordType.

FieldQuoteHistorySearch
recordTypequotehistorysearch
symbol, shortNameTicker and company or instrument namesamesame
timestampTime of the latest regular-market price (UTC)Bar start time (UTC)null
open, high, low, close, volumenullBar prices and volumenull
regularMarketPriceLatest regular-session pricesame value repeated on every barnull
regularMarketDayHigh, regularMarketDayLowToday's rangerepeatednull
fiftyTwoWeekHigh, fiftyTwoWeekLow52-week rangerepeatednull
currency, exchange, timezoneFor example USD, NasdaqGS, America/New_Yorksameexchange display name only
quoteType, sector, industrynot includednot includedInstrument type, sector and industry when Yahoo has them

The SUMMARY key-value record holds the outcome (data, partial, empty, blocked_or_empty or rejected), records delivered, failed symbols and warnings.

How do I download Yahoo Finance historical data?

Set operation to history, list up to 50 symbols, and pick a range and interval. Each bar becomes one record.

{
"operation": "history",
"symbols": ["AAPL", "MSFT", "^GSPC"],
"range": "1y",
"interval": "1d",
"maxResults": 1000
}
  • Ranges: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max.
  • Intervals: 1d, 1wk, 1mo, and intraday 5m, 15m, 30m, 60m, 90m, 1h.
  • Sizes seen on 2026-10-26 for AAPL: 5 years of daily bars = 1,255 rows; 10 years = 2,513 rows; 5 days of 5-minute bars = 324 rows.
  • max range: Yahoo returns 3-month bars for it whatever interval you ask for. Use 10y with 1d for long daily history.
  • Intraday: 5-minute data is only available for the last 60 days; older requests come back as a warning, not data.
  • maxResults (1–5,000, default 100) caps rows across all symbols, in the order you list them.
  • includePrePost adds pre-market and after-hours bars when Yahoo has them.

How do I look up a ticker symbol?

Set operation to search and type a company, fund, index or crypto name in query. Yahoo returns up to 7 matches per query (tested 2026-10-26 with "Apple", "bank", "tesla" and "renewable energy"), each with symbol, name, exchange, instrument type, sector and industry.

{ "operation": "search", "query": "Tesla" }

For current prices, run quote with the symbols you want; each symbol yields one record:

{ "operation": "quote", "symbols": ["AAPL", "MSFT", "BTC-USD", "^GSPC"] }

When should I use it, and when not?

Use it when you need:

  • daily or weekly OHLCV history for backtests, charts or research notebooks;
  • a scheduled snapshot of prices and 52-week ranges for a watchlist of up to 50 tickers;
  • ticker lookup by company name inside an automation or agent;
  • the same data in Google Sheets, Excel, a database or BI tool through Apify integrations.

Do not use it when you need:

Use it from an AI assistant

Yahoo Finance API — Stock Quotes & Historical Data works from Claude, ChatGPT, Cursor or any MCP client through Apify's MCP server. Add it with https://mcp.apify.com/?tools=muhammadafzal/yahoo-finance, then ask, for example: "Get one year of daily prices for NVDA and AMD and tell me which fell more from its 52-week high."

Run it with the API

JavaScript:

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('muhammadafzal/yahoo-finance').call({
operation: 'history',
symbols: ['AAPL', 'MSFT'],
range: '6mo',
interval: '1d',
maxResults: 500,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, items[0]);

Python (apify-client 3.x):

from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("muhammadafzal/yahoo-finance").call(
run_input={"operation": "quote", "symbols": ["AAPL", "BTC-USD", "^GSPC"]}
)
items = client.dataset(run.default_dataset_id).list_items().items
for row in items:
print(row["symbol"], row["regularMarketPrice"], row["currency"])

What does the output look like?

One record of each type, built from Yahoo Finance responses on 2026-10-26 with the Actor's own field mapping:

[
{
"recordType": "quote",
"symbol": "AAPL",
"shortName": "Apple Inc.",
"timestamp": "2026-10-26T14:13:21.000Z",
"open": null, "high": null, "low": null, "close": null, "volume": null,
"currency": "USD",
"exchange": "NasdaqGS",
"regularMarketPrice": 344.26,
"regularMarketDayHigh": 346.215,
"regularMarketDayLow": 341.03,
"fiftyTwoWeekHigh": 351.73,
"fiftyTwoWeekLow": 243.42,
"timezone": "America/New_York"
},
{
"recordType": "history",
"symbol": "AAPL",
"shortName": "Apple Inc.",
"timestamp": "2026-10-23T13:30:00.000Z",
"open": 349.1199951171875,
"high": 351.7300109863281,
"low": 345.75,
"close": 347.7300109863281,
"volume": 39496500,
"currency": "USD",
"exchange": "NasdaqGS",
"regularMarketPrice": 344.26,
"regularMarketDayHigh": 346.215,
"regularMarketDayLow": 341.03,
"fiftyTwoWeekHigh": 351.73,
"fiftyTwoWeekLow": 243.42,
"timezone": "America/New_York"
},
{
"recordType": "search",
"symbol": "AAPL",
"shortName": "Apple Inc.",
"timestamp": null,
"open": null, "high": null, "low": null, "close": null, "volume": null,
"currency": null,
"exchange": "NASDAQ",
"regularMarketPrice": null,
"regularMarketDayHigh": null,
"regularMarketDayLow": null,
"fiftyTwoWeekHigh": null,
"fiftyTwoWeekLow": null,
"timezone": null,
"quoteType": "EQUITY",
"sector": "Technology",
"industry": "Consumer Electronics"
}
]

Prices are passed through unrounded, as Yahoo returns them.

How much does it cost? (pricing)

Pay per event. Apify platform usage is included in these prices.

EventFREEBRONZESILVERGOLDPLATINUM / DIAMOND
Yahoo Finance record (quote, bar or search match)USD 0.002001USD 0.00195USD 0.0019USD 0.0016USD 0.0016
Actor start (per started GB of allocated memory)USD 0.006251USD 0.006094USD 0.005938USD 0.005USD 0.005

The default memory is 256 MB, so a run has one start event. Worked totals on the FREE tier:

  • Default run (quote for AAPL): 1 × USD 0.002001 + USD 0.006251 = USD 0.0083
  • One year of daily bars for 5 tickers (about 1,255 rows): 1,255 × USD 0.002001 + USD 0.006251 = USD 2.52

Only stored records are charged. A ticker that fails or returns nothing adds a warning, not a charge.

How fast is it, and what are the limits?

Symbols are fetched one after another, each with a 20-second timeout, so run time grows with the number of tickers; a single quote returns in seconds. It does not log in. Limits:

  • 50 symbols and 5,000 records per run; search returns at most 7 matches.
  • Unknown or delisted tickers return a warning such as NOTATICKER: Yahoo Finance returned HTTP 404; the other tickers still run.
  • If Yahoo refuses every request, the run ends with 0 records, the blocked_or_empty outcome and no record charges.

FAQ

Is Yahoo Finance data real-time?

The quote is the latest price Yahoo Finance shows at run time, and timestamp tells you when that price was set. Any delay Yahoo applies for an exchange also applies here, so do not use it for order execution.

Which tickers can I use?

Any symbol Yahoo Finance recognises, written as Yahoo writes it: AAPL for stocks, ^GSPC for the S&P 500 index, BTC-USD for Bitcoin. Use search when you only know the name.

Are historical prices adjusted for dividends?

The Actor returns Yahoo's chart open, high, low, close and volume. The separate dividend-adjusted close is not included.

Does it return dividends, earnings, options or news?

No. It returns quotes, price bars and symbol search matches only.

Can I schedule a daily price snapshot?

Yes. Save your input as an Apify task and add a schedule; each run writes a new dataset you can send to Sheets, a webhook or a database.

How accurate is Yahoo Finance data?

The Actor passes Yahoo's numbers through unchanged, so accuracy is Yahoo's. Cross-check prices with an exchange or licensed data vendor before making financial decisions.

The Actor reads publicly available Yahoo Finance data and is not affiliated with or endorsed by Yahoo. Follow Yahoo's terms of service and any exchange data rules that apply to your use, especially before redistributing prices. Nothing here is investment advice.

Last verified: 2026-10-26