Yahoo Finance Scraper — Live Quotes & Stock History avatar

Yahoo Finance Scraper — Live Quotes & Stock History

Pricing

from $0.86 / 1,000 live stock quotes

Go to Apify Store
Yahoo Finance Scraper — Live Quotes & Stock History

Yahoo Finance Scraper — Live Quotes & Stock History

Collect Yahoo Finance quotes and OHLCV bars. Get structured records with price, volume, metrics, and metadata. Run with symbols in quote or history mode; no API key or login. Pricing: $0.00089 per quote item or $0.00049 per history bar on Free plan.

Pricing

from $0.86 / 1,000 live stock quotes

Rating

5.0

(1)

Developer

Vitalii Bondarev

Vitalii Bondarev

Maintained by Community

Actor stats

1

Bookmarked

153

Total users

53

Monthly active users

a day ago

Last modified

Categories

Features

Limited permissions

Share

Yahoo Finance Scraper for Stocks and Crypto

Yahoo Finance Scraper collects live quotes and historical OHLCV bars for stocks, ETFs, crypto, indices and forex from Yahoo Finance. No API key, Yahoo Finance login or proxy is required.

  • Extract price, volume, market cap, P/E, dividend yield and 52-week range fields.
  • Fetch daily, weekly, monthly, hourly or intraday OHLCV history.
  • Track portfolio prices or build datasets for stocks, ETFs, crypto, indices and forex.
  • Supply historical bars to return calculations, charting or AI-agent tools.
  • Inspect parse_confidence and warnings on every output record.

What you get

The Actor uses Yahoo Finance public quote and chart endpoints. Quote mode performs the crumb and cookie handshake; history mode uses the chart endpoint without a crumb. Every row is unified, with inapplicable or source-missing fields set to null.

Field familyFieldsTypeMode
Identitysymbol, currency, exchangestringQuote and history
Quote identityname, quote_typestringQuote; history: null
Current pricingregular_price, prev_close, price_change_pctnumberQuote; history: null
Quote ranges and metricsday_high, day_low, fifty_two_week_high, fifty_two_week_low, trailing_pe, forward_pe, dividend_yieldnumberQuote; history: null
Quote statusmarket_statestringQuote; history: null
Quote timetimestampISO 8601 stringQuote; history: null
History OHLCVdate, close, adj_closedate: ISO 8601 string; close, adj_close: numberHistory; quote: null
Shared OHLCVopen, day_high, day_low, volumeopen, day_high, day_low: number; volume: integerQuote and history
Market valuemarket_capnumberQuote; history: null
Run metadatamodestringQuote and history
Run metadatascraped_atISO 8601 stringQuote and history
Data qualityparse_confidencenumberQuote and history
Data qualitywarningsarray of stringsQuote and history

In history rows, day_high and day_low are the bar's high and low. Quote-only fields are null in history rows; date, close and adj_close are null in quote rows. Missing or non-numeric values are null; adj_close is null when adjustedClose is false or Yahoo sends no adjusted close.

Quote rows use Yahoo's full exchange name, such as NasdaqGS; history rows use the short exchange name, such as NMS. date contains the UTC calendar day, including for intraday intervals. parse_confidence is 1 minus deductions, rounded to 3 decimals with a minimum of 0. Quote deductions are symbol_missing 0.5, currency_missing 0.05, regular_price_missing 0.3 and prev_close_missing 0.1. History deductions are date_missing 0.3, close_missing 0.25 and open_missing 0.05. warnings is empty when nothing was deducted.

Supported symbol formats

CategoryExamples
US equitiesAAPL, MSFT, GOOGL
ETFsSPY, QQQ
CryptoBTC-USD
Indices^GSPC
ForexEURUSD=X

Quote output contains one record per resolved symbol. History output contains one record per returned OHLCV bar.

Sample output

One complete record from a quote-mode run:

{
"symbol": "AAPL",
"name": "Apple Inc.",
"quote_type": "EQUITY",
"currency": "USD",
"exchange": "NasdaqGS",
"regular_price": 343.91, "prev_close": 347.725,
"open": 343.9, "day_high": 347.09, "day_low": 341.03,
"volume": 42263954, "market_cap": 5019084521472,
"price_change_pct": -1.09713,
"fifty_two_week_high": 351.73, "fifty_two_week_low": 243.42,
"trailing_pe": 39.43922, "forward_pe": 35.96463, "dividend_yield": 0.31,
"market_state": "PRE", "timestamp": "2026-10-26T20:00:01Z",
"date": null, "close": null, "adj_close": null,
"mode": "quote", "scraped_at": "2026-10-27T13:11:44Z",
"parse_confidence": 1, "warnings": []
}

Pricing

The current billing model is Pay Per Event. quote-item and history-bar are charged per record pushed. Actor Start is charged once per run, once per GB of run memory, with a minimum of one event.

On the Free plan:

  • quote-item (Free plan): $0.00089 per event ($0.89 per 1,000 quote snapshots, $8.90 per 10,000)
  • history-bar (Free plan): $0.00049 per event ($0.49 per 1,000 history bars, $4.90 per 10,000)
  • apify-actor-start (Free plan): $0.00005 per event ($0.05 per 1,000 start events, $0.50 per 10,000)

A quote record is pushed and charged even when parsing leaves warnings. A symbol omitted from Yahoo's quote response and a failed history symbol produce no record or bars, so neither is charged.

Event prices by plan

EventFree planSilver planGold plan
Actor Start$0.00005$0.000049$0.0000485
Historical Bar$0.00049$0.0004802$0.0004753
Live Stock Quote$0.00089$0.0008722$0.0008633
EventPlatinum planDiamond planBronze plan
Actor Start$0.000048$0.0000475$0.0000495
Historical Bar$0.0004704$0.0004655$0.0004851
Live Stock Quote$0.0008544$0.0008455$0.0008811

Worked example: 1,000 quote results = $0.89 on the Free plan, plus the Actor Start event.

1,000 history bars = $0.49 on the Free plan, plus the Actor Start event.

At the Free-plan event rates, the $5 credit covers 5,617 quote-item events assuming one start event: floor((5 - 0.00005) / 0.00089).

Apify Free plan includes $5 of monthly platform usage credit. You pay only for the events listed above. This Actor does not use the Pay per event + usage option, so platform usage of your runs (compute, proxy traffic and storage) is not billed separately.

How to use

  1. Select quote for current snapshots or history for OHLCV bars.
  2. Enter Yahoo Finance symbols such as AAPL, BTC-USD, ^GSPC or EURUSD=X.
  3. Set range and interval for history mode.
  4. Set maxItems, adjustedClose or includePrePost as needed.
  5. Run the Actor and read the structured records from the resulting dataset. On a non-paying run, maxItems above 20 or equal to 0 is set to 20, and only the first 5 symbols are kept.
  6. Repeat the run through Apify Schedules, using a daily schedule as a starting point for price data.

Example input for one year of daily history:

{
"mode": "history",
"symbols": ["AAPL", "BTC-USD"],
"range": "1y",
"interval": "1d",
"maxItems": 1000,
"adjustedClose": true,
"includePrePost": false
}

Export the resulting Apify dataset as JSON or CSV, or read it through the Apify dataset API.

Input parameters

ParameterWhat it doesDefault
modeSelects quote for a snapshot or history for OHLCV bars.quote
symbolsYahoo Finance ticker array; whitespace is trimmed and symbols are uppercased.["AAPL", "MSFT", "GOOGL"]
rangeHistory lookback: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd or max.1mo
intervalHistory interval: 1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 1wk or 1mo.1d
maxItemsMaximum total records across symbols. 0 means no limit unless the Free-plan limit overrides it.1000
adjustedCloseIn history mode, retains adj_close when true; otherwise sets it to null.true
includePrePostIn history mode, includes pre-market and after-hours intraday bars when true.false
disableUsageStatsSet to true to turn off the run summary in Usage statistics.false

Limits and edge cases

ConditionWhat happensWhat to do
Non-paying runThe first 5 symbols are kept and maxItems is set to 20 when it is 0 or above 20. Both changes are logged; nothing is written to OUTPUT.Use no more than 5 symbols and set maxItems to 20 or less.
maxItems reachedThe Actor stops adding records after the configured total.Increase maxItems when more output is required, subject to plan and source limits.
More than 100 symbols in a quote requestQuote requests are sent in batches of up to 100; non-paying runs are limited to 5 first.The Actor batches larger lists.
Intraday intervals 1m to 90mYahoo sets a limited range. A rejected combination fails that symbol; no returned bars produce no records.Check a combination with one symbol and maxItems set to 1.
A symbol cannot be resolved in quote modeYahoo may omit it, so no record is produced.Check the Yahoo Finance symbol format. It is not charged.
A history request fails for one symbolThe symbol is skipped and listed in OUTPUT as failedCount and failedDetails. The first 20 failures are listed, with reasons cut to 200 characters; no bars are produced. If every symbol fails, the run ends Succeeded with an empty dataset.Check the symbol and range or interval, then run again if needed.
No symbols remain, crumb acquisition fails, a quote fetch fails, or a quote request receives HTTP 429The Actor writes an error to OUTPUT, returns, and the run ends Succeeded with an empty dataset. HTTP 429 is not retried.Inspect the OUTPUT error and provide at least one non-empty symbol.
Records are produced, or the run is aborted, times out, or fails mid-runRecords are buffered and pushed in batches of 100, plus a final push. Pushed batches remain in the dataset and are charged. After an abort, timeout or mid-run failure, up to 99 buffered records are not in the dataset, and the final summary is not written.Read the dataset for pushed batches and inspect the run status.

FAQ

How much does it cost to scrape quotes and history?

Quote items cost $0.00089 per event on the Free plan and history bars cost $0.00049 per event on the Free plan. 1,000 quote results = $0.89 on the Free plan, plus the Actor Start event.

Why is my dataset empty?

This can happen when no symbols remain, quote symbols are absent from Yahoo's response, a quote request fails, every history symbol fails, or Yahoo returns no bars. Check OUTPUT, symbol formatting and the requested history combination.

What should I check if a run is not working?

Quote mode acquires a crumb before fetching quotes. If crumb acquisition or the quote fetch fails, the Actor writes an error to OUTPUT and returns. Check that error and verify the Yahoo Finance symbols.

The Actor uses Yahoo Finance's publicly accessible endpoints and is not affiliated with Yahoo Finance or Yahoo Inc. Whether a use is legal or allowed depends on your use case, applicable law and the source's terms; this README does not provide a legal guarantee.

Usage statistics

This Actor creates a small, content-free summary at the end of each run, used only to monitor reliability and improve this Actor. No input values, credentials or scraped data are sent.

A copy of the exact record for your run is saved as USAGE_STATS in your own Apify key-value store.

To opt out, set disableUsageStats to true in the input. Nothing is sent then.

Full list of collected fields

⌂ 换网址