# Yahoo Finance Scraper: Stock Quotes, History & Options Chain (`datadesk-io/yahoo-finance-scraper`) Actor

Get Yahoo Finance data for stocks, ETFs, indices, crypto and FX: live quotes with market cap, P/E, EPS, dividend yield, sector and analyst targets; historical OHLCV prices (1 minute to monthly); and options chains with strike, bid, ask, IV and open interest. No API key. $0.50 per 1,000 rows.

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

## Pricing

from $0.40 / 1,000 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: Stock Quotes, Fundamentals, Price History & Options

Get **Yahoo Finance data for any ticker**: stocks, ETFs, indices, crypto, FX and non-US listings. Choose **quotes + fundamentals** (price, change, market cap, P/E, EPS, dividend yield, beta, 52-week range, sector, industry, employees, analyst target), **historical prices** (OHLCV + adjusted close, 1 minute to monthly) and **options chains** (calls and puts with strike, bid, ask, implied volatility, open interest). Find tickers by company name. No API key. **$0.50 per 1,000 rows.**

### Try it now (one click)

1. Click **Start**. The prefilled input gets quotes and fundamentals for AAPL, MSFT and NVDA. In our latest check (Nov 19, 2026) it returned **3 rows in about 2 seconds**. An empty input runs a small demo too.
2. Add tickers (or company names), tick the data you need (quote, history, options), and set the history range/interval or number of option expirations.
3. Download the results as CSV, Excel or JSON, or get them via API, webhooks, Make or Zapier.

**Price example:** 100 rows = **$0.055**, 1,000 rows = **$0.505** ($0.50 per 1,000 rows + $0.005 per run). Silver and Gold plan users pay 10% and 20% less per row. Apify's free plan includes $5 of usage every month, enough for about 9,990 rows. Runs that find nothing are not charged.

#### Sample of real results

*Real rows from a local test run on Nov 19, 2026 (some columns). Each row also includes the other fields listed below.*

| Type | Symbol | Date | Price | Change % | Volume | Market cap | Strike |
|---|---|---|---|---|---|---|---|
| quote | AAPL | 2026-11-19T21:00:01+00:00 | 349.21 | -0.91928524 | 40,469,518 | 5,074,783,305,728 | — |
| quote | MSFT | 2026-11-19T21:00:01+00:00 | 498.3 | -1.7760363 | 28,435,392 | 3,700,472,676,352 | — |
| history | SPY | 2026-11-13T14:30:00+00:00 | 754.3699951171875 | — | 38,720,000 | — | — |
| option | SPY | 2026-11-19T15:33:32+00:00 | 129.09 | -1.3676715 | 11 | — | 600 |

### What you get

| Field group | Fields |
|---|---|
| Quote | price, change, change %, open, high, low, previous close, volume, market state, quote time |
| Fundamentals | market cap, P/E, forward P/E, EPS, dividend yield, beta, 52-week high/low, 50/200-day averages, average volume, shares outstanding, analyst target and recommendation |
| Profile | sector, industry, country, website, employees, business summary |
| History | date, open, high, low, close, adjusted close, volume, interval |
| Options | contract, call/put, expiration, strike, bid, ask, last price, volume, open interest, implied volatility, in the money |

### Why this Actor

- **Three datasets in one Actor:** quotes with fundamentals, OHLCV history and options chains.
- **Any Yahoo ticker:** US and international stocks, ETFs, indices (^GSPC), crypto (BTC-USD), FX (EURUSD=X).
- **Company name to ticker** lookup built in.
- **Cheap and fast:** $0.50 per 1,000 rows; 3 quotes in about 2 seconds.
- **Clean flat rows** ready for Sheets, Excel, pandas or a database.

### How to use it

1. Click **Try for free** (or **Start**): the prefilled input runs a quick test.
2. Add tickers (or company names), tick the data you need (quote, history, options), and set the history range/interval or number of option expirations.
3. Click **Start** and wait a few seconds.
4. Open the **Output** tab and export as **JSON, CSV, Excel, XML or HTML**, or read the dataset via API.

### Input examples

**Quotes + fundamentals (prefill):**

```json
{"symbols": ["AAPL", "MSFT", "NVDA"], "dataTypes": ["quote"]}
```

**1 year of daily prices for an ETF and Bitcoin:**

```json
{"symbols": ["SPY", "BTC-USD"], "dataTypes": ["history"], "historyRange": "1y", "historyInterval": "1d"}
```

**Options chain, next 2 expirations:**

```json
{"symbols": ["TSLA"], "dataTypes": ["options"], "optionExpirations": 2}
```

**Find by company name:**

```json
{"searchQueries": ["Mercado Libre", "Petrobras"], "dataTypes": ["quote", "history"], "historyRange": "3mo"}
```

#### Input fields

| Field | Type | Description |
|---|---|---|
| `symbols` | array | Yahoo Finance tickers, one per line: stocks (AAPL), ETFs (SPY), indices (^GSPC), crypto (BTC-USD), FX (EURUSD=X), non-US listings (VOD.L, PETR4.SA). Leave empty for a demo (AAPL, MSFT, NVDA). |
| `searchQueries` | array | Company or fund names; the best matching ticker is added to the list, e.g. "Mercado Libre" -> MELI. |
| `dataTypes` | array | Quote = live price, change, market cap, P/E, EPS, dividend yield, beta, 52-week range, sector, industry, analyst target. History = open/high/low/close/adjusted close/volume. Options = calls and puts with strike, bid, ask, IV, open interest. |
| `historyRange` | string | How far back to get prices (only for History). |
| `historyInterval` | string | Bar size. Intraday intervals (1m-60m) are only available for recent ranges (1m: last 7 days; others: last 60 days). |
| `optionExpirations` | integer | Number of upcoming expiration dates to collect (nearest first). Only for Options. |
| `includeFundamentals` | boolean | Add sector, industry, country, website, employees, business summary, beta, dividend yield and analyst target to quote rows. |
| `maxRows` | integer | Hard cap for the whole run (cost control). |

### Output example

*Example record from a local test run (long lists shortened).*

```json
{
  "rowType": "quote",
  "symbol": "AAPL",
  "name": "Apple Inc.",
  "quoteType": "EQUITY",
  "exchange": "NasdaqGS",
  "currency": "USD",
  "date": "2026-11-19T21:00:01+00:00",
  "price": 349.21,
  "change": -3.2400208,
  "changePercent": -0.91928524,
  "open": 352.91,
  "high": 355.28,
  "low": 346.47,
  "close": 349.21,
  "volume": 40469518,
  "previousClose": 352.45,
  "marketCap": 5074783305728,
  "peRatio": 38.887527,
  "forwardPE": 33.029312,
  "eps": 8.98,
  "dividendYield": 0.0031,
  "beta": 1.089,
  "fiftyTwoWeekHigh": 360.83,
  "fiftyTwoWeekLow": 243.42,
  "fiftyDayAverage": 341.1486,
  "twoHundredDayAverage": 302.54376,
  "averageVolume": 42443892,
  "sharesOutstanding": 14532182000,
  "sector": "Technology",
  "industry": "Consumer Electronics",
  "country": "United States",
  "website": "https://www.apple.com",
  "employees": 167000,
  "summary": "Apple Inc. designs, manufactures, and markets smartphones, personal computers, tablets, wearables, and accessories. The company offers iPhone, a line of smartphones; Mac, a line of personal computers;…",
  "targetMeanPrice": 345.6313,
  "recommendation": "buy",
  "marketState": "POST",
  "url": "https://finance.yahoo.com/quote/AAPL",
  "scrapedAt": "2026-11-19T23:18:27.322039+00:00",
  "isNew": false
}
```

#### Output fields

| Field | Description |
|---|---|
| `rowType` | quote, history or option |
| `symbol` | Ticker symbol |
| `name` | Company / instrument name |
| `quoteType` | EQUITY, ETF, INDEX, CRYPTOCURRENCY, CURRENCY... |
| `exchange` | Exchange name |
| `currency` | Trading currency |
| `date` | Quote time, bar time or last option trade (UTC) |
| `price` | Last price (close for history bars) |
| `change` | Price change |
| `changePercent` | Percent change |
| `open` | Open price |
| `high` | High price |
| `low` | Low price |
| `close` | Close price |
| `adjClose` | Close adjusted for splits and dividends (history) |
| `volume` | Traded volume |
| `previousClose` | Previous close (quote) |
| `marketCap` | Market capitalization |
| `peRatio` | Trailing P/E ratio |
| `forwardPE` | Forward P/E ratio |
| `eps` | Trailing 12-month EPS |
| `dividendYield` | Dividend yield (fraction, 0.005 = 0.5%) |
| `beta` | Beta (5y monthly) |
| `fiftyTwoWeekHigh` | 52-week high |
| `fiftyTwoWeekLow` | 52-week low |
| `fiftyDayAverage` | 50-day average price |
| `twoHundredDayAverage` | 200-day average price |
| `averageVolume` | 3-month average daily volume |
| `sharesOutstanding` | Shares outstanding |
| `sector` | Sector |
| `industry` | Industry |
| `country` | Company country |
| `website` | Company website |
| `employees` | Full-time employees |
| `summary` | Company description |
| `targetMeanPrice` | Mean analyst price target |
| `recommendation` | Analyst consensus (buy, hold...) |
| `marketState` | PRE, REGULAR, POST or CLOSED |
| `optionType` | call or put |
| `contractSymbol` | Option contract symbol |
| `expiration` | Option expiration date |
| `strike` | Strike price |
| `bid` | Bid |
| `ask` | Ask |
| `lastPrice` | Last traded option price |
| `openInterest` | Open interest |
| `impliedVolatility` | Implied volatility (fraction) |
| `inTheMoney` | True if in the money |
| `interval` | Bar size (history) |
| `url` | Yahoo Finance page |
| `scrapedAt` | When the row was saved (UTC) |
| `isNew` | Always false (no alerts mode) |

### Pricing

Pay-per-event: **$0.005** once per run that saves results + **$0.0005 per row** ($0.50 / 1,000). Runs that save nothing are not charged.

| Rows saved | Approx. cost |
|---|---|
| 20 | $0.015 |
| 100 | $0.055 |
| 1,000 | $0.505 |
| 10,000 | $5.005 |

### Use cases

- Stock screeners and watchlists in Google Sheets or Excel
- Backtesting with daily or intraday OHLCV
- Options analytics (IV, open interest by strike)
- Portfolio dashboards and scheduled price snapshots
- Datasets for AI agents and financial research

### Integrations / API

Works with the Apify API, Schedules, webhooks, Make, Zapier, n8n and MCP. Example:

```bash
curl "https://api.apify.com/v2/acts/datadesk-io~yahoo-finance-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
  -d '{"symbols": ["AAPL", "MSFT", "NVDA"], "dataTypes": ["quote"]}'
```

Python:

```python
from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("datadesk-io/yahoo-finance-scraper").call(run_input={"symbols": ["AAPL", "MSFT", "NVDA"], "dataTypes": ["quote"]})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

### MCP

Use this Actor from an MCP client (Cursor, Claude Desktop, etc.) through the Apify MCP server (`datadesk-io/yahoo-finance-scraper`).

### FAQ

**Do I need a Yahoo or paid API key?** No. The Actor reads the same public JSON that finance.yahoo.com uses.

**How are rows counted?** One quote = 1 row, one price bar = 1 row, one option contract = 1 row. 1 year of daily bars is about 250 rows ($0.13).

**Which intervals are available?** 1m (last 7 days), 5m-60m (last 60 days), 1d, 1wk, 1mo for any range.

**Is the data real time?** Quotes are what Yahoo shows publicly: real time for many US stocks, delayed for some exchanges.

**What does an empty input do?** It returns quotes and fundamentals for AAPL, MSFT and NVDA.

### Limitations

- Data comes from Yahoo Finance; fields missing on Yahoo stay empty (e.g. P/E for ETFs).
- Not for redistribution of Yahoo data; check Yahoo terms for your use case.
- Financial statements (income, balance sheet) are not included yet. Ask in Issues if you need them.

### Start now

Click **Start** to run the prefilled example, then adjust the input. Missing a field or filter? Open an issue on the **Issues** tab and tell us what you need.

### Support

Questions, bugs or a missing field? Email **datadesk.io@proton.me** or open an issue on the Actor page.

***

**ES:** Datos de Yahoo Finance para cualquier ticker: cotización y fundamentales, historial de precios OHLCV y cadenas de opciones. Sin API key. $0.50 por 1.000 filas.
**PT:** Dados do Yahoo Finance para qualquer ticker: cotação e fundamentos, histórico de preços OHLCV e cadeias de opções. Sem API key. US$0,50 por 1.000 linhas.

# Actor input Schema

## `symbols` (type: `array`):

Yahoo Finance tickers, one per line: stocks (AAPL), ETFs (SPY), indices (^GSPC), crypto (BTC-USD), FX (EURUSD=X), non-US listings (VOD.L, PETR4.SA). Leave empty for a demo (AAPL, MSFT, NVDA).

## `searchQueries` (type: `array`):

Company or fund names; the best matching ticker is added to the list, e.g. "Mercado Libre" -> MELI.

## `dataTypes` (type: `array`):

Quote = live price, change, market cap, P/E, EPS, dividend yield, beta, 52-week range, sector, industry, analyst target. History = open/high/low/close/adjusted close/volume. Options = calls and puts with strike, bid, ask, IV, open interest.

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

How far back to get prices (only for History).

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

Bar size. Intraday intervals (1m-60m) are only available for recent ranges (1m: last 7 days; others: last 60 days).

## `optionExpirations` (type: `integer`):

Number of upcoming expiration dates to collect (nearest first). Only for Options.

## `includeFundamentals` (type: `boolean`):

Add sector, industry, country, website, employees, business summary, beta, dividend yield and analyst target to quote rows.

## `maxRows` (type: `integer`):

Hard cap for the whole run (cost control).

## Actor input object example

```json
{
  "symbols": [
    "AAPL",
    "SPY",
    "BTC-USD"
  ],
  "searchQueries": [
    "Mercado Libre"
  ],
  "dataTypes": [
    "quote",
    "history"
  ],
  "historyRange": "1y",
  "historyInterval": "1d",
  "optionExpirations": 2,
  "includeFundamentals": true,
  "maxRows": 10000
}
```

# Actor output Schema

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

No description

# 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 = {
    "symbols": [
        "AAPL",
        "MSFT",
        "NVDA"
    ],
    "dataTypes": [
        "quote"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("datadesk-io/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 = {
    "symbols": [
        "AAPL",
        "MSFT",
        "NVDA",
    ],
    "dataTypes": ["quote"],
}

# Run the Actor and wait for it to finish
run = client.actor("datadesk-io/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 '{
  "symbols": [
    "AAPL",
    "MSFT",
    "NVDA"
  ],
  "dataTypes": [
    "quote"
  ]
}' |
apify call datadesk-io/yahoo-finance-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datadesk-io/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/PWpsFPMwRQFh1KX7A/builds/gWfCvR1cPSGVwrSNE/openapi.json
