# Yahoo Finance Scraper - $1 / 1000 Quotes (`scrapeunblocker/yahoo-finance-scraper`) Actor

Yahoo Finance as JSON: live quotes with P/E, EPS, dividends, ranges and analyst data, OHLCV price history with dividends and splits, and full option chains. Stocks, ETFs, indices, crypto, currencies and futures. $1 per 1000 quotes, $0.40 per 1000 price bars, $0.60 per 1000 option contracts.

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

## Pricing

from $1.00 / 1,000 quotes

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

Scrape **Yahoo Finance** as clean JSON: **live quotes** with fundamentals and analyst data, **OHLCV price history** with dividends and splits, and full **option chains**. Works for stocks, ETFs, indices, crypto, currencies and futures. No API key or login needed.

### Features

- **Quotes** - price, change, market cap, P/E, EPS, 52-week and day ranges, volume, dividend, company name, exchange and currency, plus analyst recommendations and price targets, financials, earnings dates and company profile where Yahoo has them.
- **Price history** - open, high, low, close, adjusted close and volume for any range or bar size, with dividends and splits on the bar they fell in.
- **Option chains** - calls and puts with strike, last price, bid, ask, volume, open interest and implied volatility, for one or many expirations.
- **Numbers as numbers, dates as ISO 8601** - percentages are whole percents in fields ending in `Percent`.

### Use cases

- **Portfolio and watchlist tracking** - pull current prices and fundamentals on a schedule.
- **Backtesting** - build OHLCV datasets across symbols.
- **Options research** - collect chains and implied volatility per expiration.
- **Dashboards and AI agents** - clean market data as JSON.

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `mode` | string | `quote` | `quote`, `history` or `options`. |
| `symbols` | array | AAPL, MSFT, TSLA | Yahoo Finance symbols, such as AAPL, VOD.L, ^GSPC, BTC-USD, EURUSD=X. |
| `range` | string | `1mo` | History: how far back. Ignored with start and end dates. |
| `interval` | string | `1d` | History: bar size, from 1m to 3mo. |
| `startDate`, `endDate` | string | - | History: exact window, YYYY-MM-DD. The end date is the day after the last one. |
| `expiration` | string | - | Options: one expiration, YYYY-MM-DD. Empty means the nearest. |
| `maxExpirations` | integer | `1` | Options: how many expirations per symbol, nearest first. |
| `proxyCountry` | string | - | Optional two-letter country code the requests are sent from. |

### Output

A quote:

```json
{
  "mode": "quote",
  "symbol": "AAPL",
  "name": "Apple Inc.",
  "exchange": "NasdaqGS",
  "currency": "USD",
  "price": 349.86,
  "changePercent": 2.19,
  "marketCap": 5084228878336,
  "peRatio": 38.94,
  "eps": 8.98,
  "fiftyTwoWeekLow": 243.42,
  "fiftyTwoWeekHigh": 355.38,
  "dividendYieldPercent": 0.32,
  "quoteTime": "2026-11-09T16:31:09Z"
}
```

A price bar: `symbol`, `date`, `timestamp`, `open`, `high`, `low`, `close`, `adjClose`, `volume`, and `dividend` or `split` when one fell in that bar. An option contract: `symbol`, `type` (`call` or `put`), `contractSymbol`, `strike`, `lastPrice`, `bid`, `ask`, `volume`, `openInterest`, `impliedVolatilityPercent`, `expiration`.

### Pricing

Pay per result: **$1 per 1000 quotes**, **$0.40 per 1000 price bars**, **$0.60 per 1000 option contracts**. A symbol that does not exist or has no options is listed in the `ERRORS` record of the key-value store and is not charged. A result that repeats is stored and charged once.

# Actor input Schema

## `mode` (type: `string`):

Quotes: price, change, market cap, P/E, EPS, ranges, volume, dividend, company name, exchange, currency and analyst data. Price history: OHLCV bars. Option chains: calls and puts.

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

Yahoo Finance symbols. Stocks such as AAPL, listings with their suffix such as VOD.L or 7203.T, indices such as ^GSPC, crypto such as BTC-USD, currencies such as EURUSD=X and futures such as ES=F.

## `range` (type: `string`):

How far back the price history goes. Ignored when start and end dates are given.

## `interval` (type: `string`):

Size of one price bar. Yahoo limits how far back intraday bars go; a window it refuses is listed in the ERRORS record and not charged.

## `startDate` (type: `string`):

First day, YYYY-MM-DD. Use together with the end date in place of the range.

## `endDate` (type: `string`):

The day after the last one, YYYY-MM-DD.

## `expiration` (type: `string`):

One expiration date, YYYY-MM-DD. Leave empty for the nearest one.

## `maxExpirations` (type: `integer`):

How many expirations to take per symbol, nearest first, when no single expiration is given.

## `proxyCountry` (type: `string`):

Optional two-letter country code the requests are sent from, such as US or DE. Leave empty to let the scraper choose.

## Actor input object example

```json
{
  "mode": "quote",
  "symbols": [
    "AAPL",
    "MSFT",
    "TSLA"
  ],
  "range": "1mo",
  "interval": "1d",
  "maxExpirations": 1
}
```

# Actor output Schema

## `items` (type: `string`):

Collected results

# 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",
        "TSLA"
    ],
    "maxExpirations": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeunblocker/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",
        "TSLA",
    ],
    "maxExpirations": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("scrapeunblocker/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",
    "TSLA"
  ],
  "maxExpirations": 1
}' |
apify call scrapeunblocker/yahoo-finance-scraper --silent --output-dataset

```

## MCP server setup

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