# Get the SPY options chain with Greeks and IV

**Use case:** 

Pulls the nearest expiration of the SPY options chain from Yahoo Finance, 10 strikes below and above the current price, calls and puts. Each contract has bid, ask, last price, volume, open interest and implied volatility, plus delta, gamma, theta, vega and rho calculated with Black Scholes.

## Input

```json
{
  "mode": "options",
  "tickers": [
    "SPY"
  ],
  "historyInterval": "1d",
  "historyRange": "1mo",
  "maxBarsPerTicker": 0,
  "maxOfficers": 10,
  "optionsExpirations": 1,
  "optionsExpirationDates": [],
  "optionsType": "both",
  "optionsStrikesAroundPrice": 10,
  "includeGreeks": true,
  "riskFreeRatePercent": "4",
  "maxNewsPerTicker": 20,
  "marketLists": [
    "trending"
  ],
  "maxPerMarketList": 25,
  "maxItems": 0
}
```

## Output

```json
{
  "contractSymbol": {
    "label": "Contract",
    "format": "text"
  },
  "underlyingSymbol": {
    "label": "Underlying",
    "format": "text"
  },
  "optionType": {
    "label": "Type",
    "format": "text"
  },
  "expirationDate": {
    "label": "Expiration",
    "format": "text"
  },
  "strike": {
    "label": "Strike",
    "format": "number"
  },
  "lastPrice": {
    "label": "Last",
    "format": "number"
  },
  "bid": {
    "label": "Bid",
    "format": "number"
  },
  "ask": {
    "label": "Ask",
    "format": "number"
  },
  "volume": {
    "label": "Volume",
    "format": "number"
  },
  "openInterest": {
    "label": "Open interest",
    "format": "number"
  },
  "impliedVolatilityPercent": {
    "label": "IV %",
    "format": "number"
  },
  "delta": {
    "label": "Delta",
    "format": "number"
  },
  "gamma": {
    "label": "Gamma",
    "format": "number"
  },
  "theta": {
    "label": "Theta/day",
    "format": "number"
  },
  "vega": {
    "label": "Vega",
    "format": "number"
  },
  "inTheMoney": {
    "label": "ITM",
    "format": "boolean"
  },
  "underlyingPrice": {
    "label": "Underlying price",
    "format": "number"
  },
  "lastTradeDate": {
    "label": "Last trade",
    "format": "date"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Yahoo Finance Scraper: Quotes, History, Options, News Actor is ready to run with the inputs already set for "Get the SPY options chain with Greeks and IV". [Sign up or log in](https://console.apify.com/create-task-from-example/MK6Z0nVlhsHadCAEi) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Get the SPY options chain with Greeks and IV" task

The Yahoo Finance Scraper: Quotes, History, Options, News Actor will start running based on the input automatically. You can also change all the input fields, like what to scrape, ticker symbols, and more, to match your specific use case.

### 3. Receive the "Get the SPY options chain with Greeks and IV" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as contract, underlying, type, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Get the SPY options chain with Greeks and IV" task via API](https://apify.com/zhtech/yahoo-finance-scraper.md).

## FAQ

### What does the SPY options chain task return?

The SPY options chain task returns one row per contract with type, strike, expiration, bid, ask, last price, volume, open interest, implied volatility, in the money flag, delta, gamma, theta, vega and rho.

### How do I get another ticker or more expirations?

Change Ticker symbols in the SPY options chain task to any optionable symbol such as AAPL or QQQ, raise Number of expirations for more dates, and set Strikes around the current price to 0 for the full chain.

### Can I run the SPY options chain task on a schedule or through the API?

Save the SPY options chain task to your Apify account, then add it to an Apify Schedule (for example daily) or start it from the Apify API, webhooks, Zapier, Make, n8n or the Apify MCP server for AI agents.

### How much does the SPY options chain task cost?

The SPY options chain task is pay per event: a small start fee per run plus a fee per option contract saved. Error rows are free. Prices are on the Pricing tab.

## About this Actor

This example demonstrates how to use [Yahoo Finance Scraper: Quotes, History, Options, News](https://apify.com/zhtech/yahoo-finance-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/zhtech/yahoo-finance-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/zhtech/yahoo-finance-scraper.md

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`).
