# Yahoo Finance Options Chain Scraper 📊 (calls, puts, IV) (`tagadanar/yahoo-finance-options-chain`) Actor

Options chains from Yahoo Finance for any list of tickers: one row per call or put with strike, bid, ask, last, volume, open interest, implied volatility and the underlying price. Nearest, all or chosen expirations; strike, moneyness and liquidity filters. $0.50 per 1,000 contracts.

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

## Pricing

from $0.35 / 1,000 option contracts

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 Options Chain Scraper 📊 (calls, puts, IV)

Give it a list of tickers and get their full options chains from Yahoo Finance in one table: one row per call or put, with strike, bid, ask, last price, change, volume, open interest, implied volatility and the in-the-money flag, next to the underlying's price at the moment the chain was read. Pick the nearest N expirations, every listed expiration, or exact dates, and cut the chain down with strike, moneyness, open-interest and volume filters before you pay for it.

**$0.50 per 1,000 option contracts on Free ($0.35 on Gold), plus $0.001 per run. Platform usage is included.** No API key, no login, no proxy needed.

### What you get

One flat row per option contract (one strike, one expiration, call or put). Fields Yahoo does not publish for a contract are null.

| Field | What it is |
| --- | --- |
| `contractSymbol` | OCC-style contract symbol, e.g. `AAPL261120C00350000` |
| `underlyingSymbol` | The ticker you asked for |
| `underlyingName` | Company or fund name |
| `optionType` | `call` or `put` |
| `expirationDate` | Expiration date (YYYY-MM-DD) |
| `daysToExpiration` | Calendar days from today (UTC) to expiration |
| `strike` | Strike price |
| `currency` | Currency of the prices |
| `lastPrice` | Last traded price of the contract |
| `bid` / `ask` | Current bid and ask |
| `midPrice` | (bid + ask) / 2 when both are above 0, else null |
| `change` / `percentChange` | Change of the last price on the session |
| `volume` | Contracts traded in the session |
| `openInterest` | Open interest |
| `impliedVolatility` | Implied volatility as Yahoo publishes it (0.35 = 35%) |
| `inTheMoney` | true / false, as Yahoo flags it |
| `contractSize` | `REGULAR` for standard 100-share contracts |
| `lastTradeDate` | Time of the contract's last trade (ISO 8601) |
| `moneynessPercent` | Strike vs the underlying price, in % (5 = strike 5% above spot) |
| `underlyingPrice` | The underlying's regular-market price in the same answer |
| `underlyingMarketTime` | Time of that underlying price (ISO 8601) |
| `underlyingMarketState` | Market session at read time (`REGULAR`, `PRE`, `POST`, `CLOSED`) |
| `exchange` | The underlying's exchange |
| `retrievedAt` | When the row was fetched (ISO 8601): the quote timestamp of your snapshot |

### Who uses it

- **Options traders and screeners**: pull the near-dated chains of a watchlist every morning, keep only liquid strikes near the money, and rank by implied volatility or open interest in a spreadsheet.
- **Quant and data teams**: build a daily end-of-day options history (IV surface, put/call open interest, skew) by scheduling one run per day across all expirations.
- **Fintech and AI-agent builders**: give an app or an LLM agent a clean JSON chain for any US-listed ticker without an options data subscription.

### Examples

Prefill (the canary run): AAPL, nearest expiration, calls and puts.

```json
{"tickers":["AAPL"]}
```

Next three expirations of a watchlist, strikes within 10% of spot, only contracts that traded at least 10 times:

```json
{"tickers":["SPY","QQQ","TSLA","NVDA"],"expirations":"nearest","expirationCount":3,"strikeRangePercent":10,"minVolume":10}
```

Every expiration in the next 60 days, puts only, out of the money:

```json
{"tickers":["AAPL"],"expirations":"all","maxDaysToExpiration":60,"optionType":"puts","moneyness":"otm"}
```

Exact expiration dates, a fixed strike band:

```json
{"tickers":["MSFT"],"expirations":"dates","expirationDates":["2026-12-18","2027-01-15"],"minStrike":400,"maxStrike":550}
```

The full chain (every strike, every expiration) of one ticker can be several thousand rows; `maxResults` (default 5,000) caps the run.

### Results, zeros and errors

- The run status lists every ticker with its row count and outcome.
- A symbol Yahoo does not know, a symbol with no listed options (many non-US stocks, some share classes), an expiration date the ticker does not list, or a chain where your filters dropped every contract is reported as such and costs nothing beyond the run start.
- Contracts dropped by your filters are counted in the status and never charged.
- A ticker or expiration Yahoo refused, or the run clock stopped, is named in the status and is never reported as "no options".
- Invalid input ends the run right away with an "Input error: ..." message and only the $0.001 start charge.

### Pricing

- $0.001 per run (start).
- $0.50 per 1,000 option contracts on Free, with lower prices on higher Apify plans ($0.35 per 1,000 on Gold). Platform usage is included.

Set a maximum charge per run in Apify if you want a hard ceiling; the actor stops at it and says so in the status.

### FAQ

**Are the prices real-time?** No. They are what Yahoo Finance shows at the moment of the run, and Yahoo's options and stock quotes are usually delayed (often by 15 minutes or more, depending on the exchange). Use `underlyingMarketTime`, `lastTradeDate` and `retrievedAt` to see how fresh each row is.

**Why are bid, ask or open interest 0 on some rows?** Outside US market hours (notably before the open) Yahoo often publishes 0 for bid, ask and open interest on stock and ETF options, and illiquid strikes show 0 at any time; `midPrice` is then null. The last traded price and volume are still there. For live bids and open interest, run during the US session, and keep that in mind before you set `minOpenInterest`.

**Which tickers work?** Anything Yahoo Finance shows an options page for: US stocks, ETFs and indexes such as `^SPX` or `^VIX`. Most non-US listings have no options on Yahoo and come back as "no listed options".

**How do I get a daily history?** Schedule the actor once a day after the close; each run is a dated snapshot (`retrievedAt`).

### Data use and disclaimer

Data comes from Yahoo Finance's public web pages, as provided by Yahoo; it may be delayed, incomplete or wrong, and this actor does not correct it. Nothing here is investment advice. Check Yahoo's terms for your use of the data. The rows hold market data only, no personal data.

# Changelog

This Actor's version history is a separate document: https://apify.com/tagadanar/yahoo-finance-options-chain/changelog.md

# Actor input Schema

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

Underlying symbols with listed options, as Yahoo Finance writes them: AAPL, SPY, TSLA, QQQ, ^SPX. A Yahoo quote URL works too. Up to 50 per run.

## `expirations` (type: `string`):

Which expiration dates to fetch: the nearest N (set the count below), all listed expirations, or only the dates you list below.

## `expirationCount` (type: `integer`):

With "Nearest N expirations": how many expiration dates per ticker, nearest first. Default 1.

## `expirationDates` (type: `array`):

The expiration dates you want, e.g. 2026-12-18. When you list dates, only those dates are fetched (unless Expirations is set to "All listed expirations"). Dates a ticker does not list are named in the run status.

## `maxDaysToExpiration` (type: `integer`):

Optional. Skip expirations more than this many days away (applies to every mode). Example: 45 with "All listed expirations" gives every expiration in the next 45 days.

## `optionType` (type: `string`):

Which side of the chain to return.

## `moneyness` (type: `string`):

Keep only in-the-money or out-of-the-money contracts, as Yahoo flags them.

## `strikeRangePercent` (type: `number`):

Optional. Keep strikes within this percentage of the underlying's current price: 10 keeps strikes from 90% to 110% of spot.

## `minStrike` (type: `number`):

Optional. Keep strikes at or above this price.

## `maxStrike` (type: `number`):

Optional. Keep strikes at or below this price.

## `minOpenInterest` (type: `integer`):

Keep contracts with at least this open interest. 0 keeps all.

## `minVolume` (type: `integer`):

Keep contracts that traded at least this many contracts in the session. 0 keeps all.

## `maxResults` (type: `integer`):

Stop after this many contract rows across all tickers (each row is charged). Default 5,000, max 200,000.

## Actor input object example

```json
{
  "tickers": [
    "AAPL"
  ],
  "expirations": "nearest",
  "expirationCount": 1,
  "optionType": "both",
  "moneyness": "any",
  "minOpenInterest": 0,
  "minVolume": 0,
  "maxResults": 5000
}
```

# Actor output Schema

## `dataset` (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 = {
    "tickers": [
        "AAPL"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("tagadanar/yahoo-finance-options-chain").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"] }

# Run the Actor and wait for it to finish
run = client.actor("tagadanar/yahoo-finance-options-chain").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"
  ]
}' |
apify call tagadanar/yahoo-finance-options-chain --silent --output-dataset

```

## MCP server setup

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

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/yZFMgZP152JDiWoUI/builds/tsCcmxfGqYDNbHWDC/openapi.json
