> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scrapeunblocker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a Yahoo Finance option chain

> Returns the `calls` and `puts` for one expiration of a symbol: `contractSymbol`, `strike`, `lastPrice`, `change`, `changePercent`, `bid`, `ask`, `volume`, `openInterest`, `impliedVolatilityPercent` and `inTheMoney`. Also returns every listed `expirationDates`, the `strikes`, and the `underlyingPrice`. Without `expiration` you get the nearest one.



## OpenAPI

````yaml /api-reference/openapi.json post /finance/yahoo-options
openapi: 3.1.0
info:
  title: ScrapeUnblocker API
  description: >-
    Public API for the ScrapeUnblocker proxy/anti-bot service. Authenticate
    every request with the `x-scrapeunblocker-key` header. Documented here:
    page-source extraction, Google SERP scraping, image fetch, and the dedicated
    plugin endpoints (search engines, marketplaces, reviews, travel, social and
    more). All other paths exist for internal operations and are intentionally
    hidden from this spec.
  version: 3.0.0
servers:
  - url: https://api.scrapeunblocker.com
    description: Production
security: []
paths:
  /finance/yahoo-options:
    post:
      tags:
        - Plugins
      summary: Get a Yahoo Finance option chain
      description: >-
        Returns the `calls` and `puts` for one expiration of a symbol:
        `contractSymbol`, `strike`, `lastPrice`, `change`, `changePercent`,
        `bid`, `ask`, `volume`, `openInterest`, `impliedVolatilityPercent` and
        `inTheMoney`. Also returns every listed `expirationDates`, the
        `strikes`, and the `underlyingPrice`. Without `expiration` you get the
        nearest one.
      operationId: yahoo_options_finance_yahoo_options_post
      parameters:
        - name: symbol
          in: query
          required: true
          schema:
            type: string
            description: Yahoo Finance symbol with listed options, e.g. 'AAPL', 'SPY'.
            title: Symbol
          description: Yahoo Finance symbol with listed options, e.g. 'AAPL', 'SPY'.
        - name: expiration
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Expiration as YYYY-MM-DD or Unix seconds. Leave blank for the
              nearest.
            title: Expiration
          description: >-
            Expiration as YYYY-MM-DD or Unix seconds. Leave blank for the
            nearest.
        - name: proxy_country
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Proxy country the request is sent from (ISO-2, e.g. 'US', 'DE').
              Leave blank to let the API pick.
            title: Proxy Country
          description: >-
            Proxy country the request is sent from (ISO-2, e.g. 'US', 'DE').
            Leave blank to let the API pick.
      responses:
        '200':
          description: JSON with `calls` and `puts`.
          content:
            application/json:
              schema: {}
        '400':
          description: >-
            Invalid symbol or expiration, an expiration that is not listed, or
            an invalid proxy country.
        '404':
          description: The symbol does not exist, or has no listed options.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '502':
          description: Blocked, unreadable, or the call did not finish in time.
      security:
        - ScrapeUnblockerKey: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ScrapeUnblockerKey:
      type: apiKey
      in: header
      name: x-scrapeunblocker-key
      description: Your ScrapeUnblocker API key. Apply on every request.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.