# Yahoo Finance Scraper | Quotes, History & Key Stats (`genial_candlestand/yahoo-finance-scraper`) Actor

Get Yahoo Finance quotes by ticker: price, change, volume, market cap, P/E, analyst target, sector and industry in one flat row, plus historical OHLCV candles with adjusted close, dividends and splits. Stocks, ETFs, funds, crypto, FX, indices, futures. Many tickers per run, no login.

- **URL**: https://apify.com/genial_candlestand/yahoo-finance-scraper.md
- **Developed by:** [Flowo](https://apify.com/genial_candlestand) (community)
- **Categories:** Business, AI, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.76 / 1,000 market data rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Yahoo Finance Scraper | Quotes, History & Key Stats

![Yahoo Finance Scraper | Quotes, History & Key Stats](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/finance-yahoo-com-financial-market-data-banner-4416c5a3.png)

Get Yahoo Finance data by ticker as flat rows: the live price, change, volume, market cap, P/E ratio and analyst target price, together with the sector, industry and company profile. You can also get historical prices, with one row per open/high/low/close/volume candle and the adjusted close, plus a row for each dividend and stock split. It covers stocks on any exchange, ETFs, mutual funds, crypto, FX pairs, indices and futures. No login or API key.

### What does Yahoo Finance Scraper do?

You give it a list of Yahoo Finance symbols, such as `AAPL`, `7203.T`, `SAP.DE`, `BTC-USD`, `EURUSD=X`, `^GSPC` or `GC=F`. It returns one **quote row** per ticker with key statistics and the company profile in the same row. It can also return **historical prices** for a range (1 day to full history) or for custom dates, with candles from 1 minute to 3 months long. It is built for investors who track a watchlist, for data teams that need price history for backtests, and for AI agents that answer questions about a stock's price, valuation or analyst target.

### How to scrape Yahoo Finance stock data

![How Yahoo Finance Scraper works: Calls the JSON API behind finance.yahoo.com quote and chart pages; Requests quotes 50 tickers at a time, then key statistics per ticker; Fetches price history per tick](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/finance-yahoo-com-financial-market-data-how-a05dc3a1.png)

1. Open the actor in Apify Console and enter your tickers in **Tickers**, one per line. Quote page URLs like `https://finance.yahoo.com/quote/AAPL/` also work.
2. Keep **Quote row per ticker** and **Add key statistics** on for a snapshot with fundamentals. Turn key statistics off if you only need prices for many tickers.
3. For price history, choose a **History range** (for example `1 year`) or set a **History start date** and **History end date**. Then pick a **History interval** (1 day, 1 week, 1 hour, 5 minutes…).
4. Optionally set **Max rows** to cap the run's size and cost.
5. Click **Start** and download the dataset as JSON, CSV or Excel, or read it through the API.

### How much does it cost to scrape Yahoo Finance?

Price per event by Apify plan:

| Event | Free | Bronze | Silver | Gold and above |
|---|---|---|---|---|
| Market data row | $0.90 per 1,000 | $0.81 per 1,000 | $0.72 per 1,000 | $0.63 per 1,000 |
| Actor start | $0.00005 | $0.00005 | $0.00005 | $0.00005 |

A test run with the API example input below returned 5 rows in 8 s.

You pay per **saved row**. A row is one ticker's quote with its key statistics and profile, one historical candle, one dividend or one split. All of them cost the same. Unknown tickers and failed requests are free. Each run also has a small start fee.

| Scenario | Rows (events) | Cost on the Free plan |
|---|---|---|
| Watchlist snapshot: 5 tickers, quotes with key statistics | 5 | about $0.0046 |
| 500 tickers, prices only (key statistics off) | 500 | about $0.45 |
| 10 stocks, 1 year of daily candles, no quote rows | about 2,520 candles + dividends | about $2.27 + $0.0009 per dividend |
| Coca-Cola (KO) full daily history since 1962 | about 16,321 candles + dividends and splits | about $14.69 + $0.0009 per dividend or split |

Long daily or intraday histories create many rows. Use **Max rows**, a shorter range or a coarser interval (weekly or monthly) to keep the cost down.

### Input

![Yahoo Finance Scraper input example: Tickers, Quote row per ticker, Add key statistics and company profile, History range, History interval (candle length), Dividend and split rows, Pre- and post-mark](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/finance-yahoo-com-financial-market-data-input-14c39539.png)

| Field | What it does |
|---|---|
| `tickers` (required) | Yahoo Finance symbols or quote page URLs. Case does not matter, and a line with commas or spaces is split into several tickers. Duplicates are removed. |
| `includeQuote` | One quote row per ticker (default on). |
| `includeKeyStatistics` | Add valuation, margins, revenue, cash and debt, analyst targets and the company profile to the quote row (default on). |
| `historyRange` | History period up to now: `none` (default), `1d`, `5d`, `1mo`, `3mo`, `6mo`, `ytd`, `1y`, `2y`, `5y`, `10y`, `max`. |
| `historyInterval` | Candle length: `1d` (default), `1wk`, `1mo`, `3mo`, `5d`, `1h`, `4h`, `90m`, `30m`, `15m`, `5m`, `2m`, `1m`. |
| `historyStartDate`, `historyEndDate` | A custom period (`YYYY-MM-DD`, UTC). The end day is included. If you set dates, they override the range. |
| `includeDividendsAndSplits` | Dividend and split rows inside the history period (default on). |
| `includePrePostMarket` | Pre-market and after-hours candles for intraday intervals (default off). |
| `maxItems` | The maximum number of saved rows in total. |
| `proxyConfiguration` | Apify datacenter proxy by default. |

Example: a quote row for SAP plus weekly candles for 2025.

```json
{
  "tickers": ["SAP.DE"],
  "historyStartDate": "2025-01-01",
  "historyEndDate": "2025-12-31",
  "historyInterval": "1wk"
}
```

### What data can you extract from Yahoo Finance?

![Yahoo Finance Scraper output example: Symbol, Row, Name, Price, Change %, Volume](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/finance-yahoo-com-financial-market-data-output-ae95c83d.png)

Each row has a `recordType`: `quote`, `history`, `dividend` or `split`. Every row also has `symbol`, `url` and `scrapedAt`. Fields that don't apply to a row are `null`.

| Group | Fields |
|---|---|
| Quote | `title`, `quoteType`, `exchange`, `currency`, `marketState`, `regularMarketTime`, `dataDelayMinutes`, `timezone`, `price`, `change`, `changePercent`, `previousClose`, `open`, `dayLow`, `dayHigh`, `volume`, `bid`, `ask`, `preMarketPrice`, `postMarketPrice`, `averageVolume3Month`, `averageVolume10Day` |
| Valuation | `marketCap`, `enterpriseValue`, `trailingPE`, `forwardPE`, `pegRatio`, `priceToSales`, `priceToBook`, `epsTrailing12Months`, `epsForward`, `bookValue`, `beta`, `fiftyTwoWeekLow`, `fiftyTwoWeekHigh`, `fiftyDayAverage`, `twoHundredDayAverage` |
| Dividends | `dividendRate`, `dividendYield`, `exDividendDate`, `earningsDate` |
| Financials | `totalRevenue`, `revenueGrowth`, `ebitda`, `profitMargins`, `grossMargins`, `operatingMargins`, `returnOnEquity`, `totalCash`, `totalDebt`, `freeCashflow`, `sharesOutstanding`, `floatShares`, `shortPercentOfFloat` |
| Analysts | `targetMeanPrice`, `targetHighPrice`, `targetLowPrice`, `recommendationKey`, `recommendationMean`, `numberOfAnalystOpinions` |
| Profile | `sector`, `industry`, `country`, `countryName`, `website`, `fullTimeEmployees`, `description` |
| Funds and crypto | `netAssets`, `expenseRatio`, `ytdReturn`, `circulatingSupply` |
| History | `date`, `interval`, `open`, `high`, `low`, `close`, `adjClose`, `volume`, `currency` |
| Dividends and splits | `dividend`, `splitRatio`, `splitNumerator`, `splitDenominator` |

Ratios such as `dividendYield` and `profitMargins` are fractions: `0.0031` means 0.31%. The only exception is `changePercent`, which is in percent points: `-1.78` means −1.78%.

A real quote row for AAPL (shortened):

```json
{
  "recordType": "quote",
  "symbol": "AAPL",
  "url": "https://finance.yahoo.com/quote/AAPL/",
  "title": "Apple Inc.",
  "quoteType": "EQUITY",
  "exchange": "NasdaqGS",
  "currency": "USD",
  "marketState": "REGULAR",
  "regularMarketTime": "2026-11-05T18:21:22.000Z",
  "dataDelayMinutes": 15,
  "price": 343.3,
  "change": -6.210022,
  "changePercent": -1.7767794,
  "previousClose": 349.51,
  "volume": 38346985,
  "marketCap": 4988898115584,
  "trailingPE": 38.2294,
  "forwardPE": 32.24025,
  "dividendYield": 0.0031,
  "exDividendDate": "2026-11-12",
  "beta": 1.089,
  "totalRevenue": 478833999872,
  "profitMargins": 0.27604,
  "targetMeanPrice": 333.28052,
  "recommendationKey": "buy",
  "numberOfAnalystOpinions": 38,
  "sector": "Technology",
  "industry": "Consumer Electronics",
  "country": "US",
  "countryName": "United States",
  "website": "https://www.apple.com",
  "fullTimeEmployees": 167000,
  "description": "Apple Inc. designs, manufactures, and markets smartphones, personal computers…",
  "scrapedAt": "2026-11-05T18:21:24.392Z"
}
```

A history row has the same `symbol` and `currency`, plus `date`, `interval`, `open`, `high`, `low`, `close`, `adjClose` and `volume`. Its `url` points to the ticker's `/history/` page.

### Use cases

- **Watchlist or portfolio snapshot:** get the price, daily change, market cap, P/E, dividend yield and analyst target for your tickers in one table.
- **Backtesting:** download daily candles with the adjusted close back to the first trading day, plus dividends and splits, for KO, JPM or any other symbol.
- **Intraday analysis:** get 1-minute candles for the last 5 trading days, with pre-market and after-hours candles if you want them.
- **Screening many tickers:** get prices for hundreds of symbols quickly with key statistics turned off.
- **AI agents and BI tools:** the flat rows load straight into a spreadsheet, a database or an agent's context without unnesting.

### Limitations

- **Intraday limits come from Yahoo.** 1-minute candles: only the last 30 days and at most 8 days per run (range `1d` or `5d`). 2–90-minute candles: only the last 60 days (range up to `1mo`). 1-hour and 4-hour candles: only the last 730 days (range up to `2y`). If you ask for more, the run stops with an input error that names the fields, before it sends any request.
- **Key statistics depend on the asset type.** They are complete for stocks. ETFs, funds, crypto, FX, indices and futures have fewer fields. For example, `sector` is `null` for SPY and BTC-USD.
- **Quotes may be delayed.** The delay depends on the exchange and is shown in `dataDelayMinutes`. Values are what Yahoo reports.
- `adjClose` is filled only for daily or coarser candles. It is `null` for intraday candles.
- Options chains, financial statements and news are not included.
- Quotes and key statistics depend on Yahoo's cookie and crumb check. If it fails, the run still returns history rows, but no quote rows.

### Tips and troubleshooting

- **0 rows or a missing ticker?** Check the log and the status message: unknown or delisted tickers are listed there and are free. Use Yahoo's exact symbol with its exchange suffix (`7203.T`, `SAP.DE`, `RELIANCE.NS`).
- **History only:** turn **Quote row per ticker** off and set a range or dates. If both quotes and history are off, the run fails with "Nothing to fetch".
- **Full history:** `historyRange: "max"` returns candles in the interval you chose (daily, weekly, monthly). It does not fall back to Yahoo's coarse 3-month default.
- **Speed for long lists:** quotes are requested 50 symbols at a time, and the ticker list has no cap. Key statistics add one request per ticker, so turn them off when you only need prices.
- **Proxy:** the default datacenter proxy works. If you change the proxy, use a US exit or no country, because EU IPs may get Yahoo's cookie-consent page.

### API, MCP and integrations

Run the actor from your code with the same JSON input as in Console. Your API token is in [Console → Settings → API & Integrations](https://console.apify.com/settings/integrations).

**Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("genial_candlestand/yahoo-finance-scraper").call(run_input={"tickers": ["AAPL", "MSFT", "NVDA", "SPY", "BTC-USD"]})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**Node.js** (`npm install apify-client`):

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('genial_candlestand/yahoo-finance-scraper').call({"tickers": ["AAPL", "MSFT", "NVDA", "SPY", "BTC-USD"]});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**HTTP** — one request runs the actor and returns the results (runs up to 5 minutes; longer ones: [run asynchronously](https://docs.apify.com/api/v2/act-runs-post)):

```bash
curl -X POST "https://api.apify.com/v2/acts/genial_candlestand~yahoo-finance-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"tickers":["AAPL","MSFT","NVDA","SPY","BTC-USD"]}'
```

**AI agents (MCP).** Add the actor as a tool of the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp). Claude Code:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=genial_candlestand/yahoo-finance-scraper"
```

Claude Desktop, Cursor or VS Code: `{"mcpServers": {"apify": {"url": "https://mcp.apify.com?tools=genial_candlestand/yahoo-finance-scraper"}}}`. Then ask, for example:

- "Get the price, P/E, market cap and analyst target of AAPL, MSFT and NVDA from Yahoo Finance"
- "Download all daily prices of KO since 1962 with dividends and splits"
- "Give me 1-minute candles for TSLA for the last 5 days, including pre-market"

**Integrations.** Run it on a schedule with [Apify Schedules](https://docs.apify.com/platform/schedules) and send the results to Google Sheets, Slack, Zapier, Make, n8n or your webhook — see [Apify integrations](https://docs.apify.com/platform/integrations).

### FAQ

**Is it legal to scrape Yahoo Finance?**<br>
The actor reads public market data that Yahoo Finance shows to any visitor without a login. It collects no personal data. You are responsible for using the data according to Yahoo's terms and the laws that apply to you.

**Which symbols are supported?**<br>
Any symbol Yahoo Finance lists: stocks on all exchanges, ETFs, mutual funds (VFIAX), crypto (BTC-USD), FX pairs (EURUSD=X), indices (^GSPC) and futures (GC=F).

**Can I get quotes and history in one run?**<br>
Yes. Each ticker gets its quote row first, then its candles by date, then its dividends and splits. The `recordType` field tells the rows apart.

**How is it different from other Yahoo Finance actors?**<br>
Quote, key statistics and profile come in one flat row, not in nested blocks, and all row kinds share one table of 85 columns. Full daily history uses the interval you asked for. Invalid interval and range combinations are rejected before any request is sent. Unknown tickers are reported and are free. The price is $0.90 per 1,000 rows, while the most-used Yahoo Finance actor charges $1.00.

**Why is a long history expensive?**<br>
Every candle is one row, and every row costs the same. Ten years of daily data is about 2,500 rows per ticker. Use weekly or monthly candles, or set **Max rows**.

### Also useful

- [SEC EDGAR Filings Search](https://apify.com/genial_candlestand/sec-edgar-filings-search) — find 10-K, 10-Q and 8-K filings of the companies you track, by keyword, company, form and date
- [Google News Scraper](https://apify.com/genial_candlestand/google-news-articles-search-scraper) — follow news articles about your tickers and companies by keyword or topic
- [Google Trends Scraper](https://apify.com/genial_candlestand/google-trends-scraper) — compare search interest in brands and tickers over time and by region
- [Trustpilot Reviews Scraper](https://apify.com/genial_candlestand/trustpilot-reviews-scraper) — add customer sentiment to a company's fundamentals: star ratings and company replies

# Actor input Schema

## `tickers` (type: `array`):

Yahoo Finance symbols, one per line: stocks (AAPL, 7203.T, SAP.DE), ETFs and funds (SPY, VFIAX), crypto (BTC-USD), FX (EURUSD=X), indices (^GSPC), futures (GC=F). Quote page URLs like https://finance.yahoo.com/quote/AAPL/ work too. Case does not matter; a line with commas or spaces is split. Unknown tickers are listed in the log and cost nothing.

## `includeQuote` (type: `boolean`):

Save one row per ticker with the live price, change, volume, day and 52-week range, market cap and P/E. Turn off to get only historical prices (then set History range or History start date).

## `includeKeyStatistics` (type: `boolean`):

Add valuation, margins, revenue, cash and debt, analyst targets and the company profile (sector, industry, country, website, employees, description) to each quote row. Complete for stocks; ETFs, funds, crypto, FX, indices and futures have fewer fields. Turn off for faster price-only runs on long lists.

## `historyRange` (type: `string`):

Get historical prices (one row per candle) for this period up to now. 'No history' saves only quote rows. Intraday limits: 1 minute up to 5 days; 2–90 minutes up to 1 month; 1 hour and 4 hours up to 2 years. Ignored when History start date is set.

## `historyInterval` (type: `string`):

Length of one candle. Daily and coarser intervals work with every range, including full history. Intraday limits: 1 minute — last 30 days, at most 8 days per run; 2–90 minutes — last 60 days; 1 hour and 4 hours — last 730 days. Other combinations stop with an input error before any request.

## `historyStartDate` (type: `string`):

Custom period start (YYYY-MM-DD, UTC). Turns history on and overrides History range. Without an end date the period runs to now. Must respect the History interval limits.

## `historyEndDate` (type: `string`):

Custom period end (YYYY-MM-DD, UTC), this day included. Empty = up to now. Without a start date it means from the first trading day up to this date (turns history on). Must not be before the start date.

## `includeDividendsAndSplits` (type: `boolean`):

With history on, also save one row per dividend (amount, ex-date) and per stock split (ratio) inside the history period. Ignored without history.

## `includePrePostMarket` (type: `boolean`):

Add pre-market and after-hours candles to intraday history (intervals up to 4 hours). No effect on daily and coarser intervals.

## `maxItems` (type: `integer`):

Stop after this many saved rows in total (quote, candle, dividend and split rows together). Empty = no limit.

## `proxyConfiguration` (type: `object`):

Apify datacenter proxy works for Yahoo Finance. Prefer US or no country; EU exit IPs may get a cookie-consent page.

## Actor input object example

```json
{
  "tickers": [
    "AAPL",
    "MSFT",
    "NVDA",
    "SPY",
    "BTC-USD"
  ],
  "includeQuote": true,
  "includeKeyStatistics": true,
  "historyRange": "none",
  "historyInterval": "1d",
  "includeDividendsAndSplits": true,
  "includePrePostMarket": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset with all quote, history, dividend and split rows

## `quotes` (type: `string`):

Dataset view with one quote row per ticker

## `history` (type: `string`):

Dataset view with candles, dividends and splits

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "tickers": [
        "AAPL",
        "MSFT",
        "NVDA",
        "SPY",
        "BTC-USD"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("genial_candlestand/yahoo-finance-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "tickers": [
        "AAPL",
        "MSFT",
        "NVDA",
        "SPY",
        "BTC-USD",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("genial_candlestand/yahoo-finance-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "tickers": [
    "AAPL",
    "MSFT",
    "NVDA",
    "SPY",
    "BTC-USD"
  ]
}' |
apify call genial_candlestand/yahoo-finance-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,genial_candlestand/yahoo-finance-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/EGFZWVtq93zU75eJa/builds/FSJiZkRKwapZK6NyH/openapi.json
