{
  "openapi": "3.0.1",
  "info": {
    "title": "Yahoo Finance Options Chain Scraper 📊 (calls, puts, IV)",
    "description": "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.",
    "version": "0.1",
    "x-build-id": "tsCcmxfGqYDNbHWDC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tagadanar~yahoo-finance-options-chain/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tagadanar-yahoo-finance-options-chain",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/tagadanar~yahoo-finance-options-chain/runs": {
      "post": {
        "operationId": "runs-sync-tagadanar-yahoo-finance-options-chain",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/tagadanar~yahoo-finance-options-chain/run-sync": {
      "post": {
        "operationId": "run-sync-tagadanar-yahoo-finance-options-chain",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "tickers": {
            "title": "Tickers",
            "minItems": 1,
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string"
            }
          },
          "expirations": {
            "title": "Expirations",
            "enum": [
              "nearest",
              "all",
              "dates"
            ],
            "type": "string",
            "description": "Which expiration dates to fetch: the nearest N (set the count below), all listed expirations, or only the dates you list below.",
            "default": "nearest"
          },
          "expirationCount": {
            "title": "Number of nearest expirations",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "With \"Nearest N expirations\": how many expiration dates per ticker, nearest first. Default 1.",
            "default": 1
          },
          "expirationDates": {
            "title": "Expiration dates (YYYY-MM-DD)",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string"
            }
          },
          "maxDaysToExpiration": {
            "title": "Max days to expiration",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "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": {
            "title": "Calls, puts or both",
            "enum": [
              "both",
              "calls",
              "puts"
            ],
            "type": "string",
            "description": "Which side of the chain to return.",
            "default": "both"
          },
          "moneyness": {
            "title": "In / out of the money",
            "enum": [
              "any",
              "itm",
              "otm"
            ],
            "type": "string",
            "description": "Keep only in-the-money or out-of-the-money contracts, as Yahoo flags them.",
            "default": "any"
          },
          "strikeRangePercent": {
            "title": "Strike window around the price (%)",
            "minimum": 0,
            "type": "number",
            "description": "Optional. Keep strikes within this percentage of the underlying's current price: 10 keeps strikes from 90% to 110% of spot."
          },
          "minStrike": {
            "title": "Minimum strike",
            "minimum": 0,
            "type": "number",
            "description": "Optional. Keep strikes at or above this price."
          },
          "maxStrike": {
            "title": "Maximum strike",
            "minimum": 0,
            "type": "number",
            "description": "Optional. Keep strikes at or below this price."
          },
          "minOpenInterest": {
            "title": "Minimum open interest",
            "minimum": 0,
            "type": "integer",
            "description": "Keep contracts with at least this open interest. 0 keeps all.",
            "default": 0
          },
          "minVolume": {
            "title": "Minimum volume",
            "minimum": 0,
            "type": "integer",
            "description": "Keep contracts that traded at least this many contracts in the session. 0 keeps all.",
            "default": 0
          },
          "maxResults": {
            "title": "Max contracts per run",
            "minimum": 1,
            "maximum": 200000,
            "type": "integer",
            "description": "Stop after this many contract rows across all tickers (each row is charged). Default 5,000, max 200,000.",
            "default": 5000
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}