{
  "openapi": "3.0.1",
  "info": {
    "title": "Yahoo Finance Scraper: Stock Quotes, History, Options & Greeks",
    "description": "Stock quotes and full ticker records, flat daily price history with adjusted close, options chains with Greeks and tidy financial statements for any ticker. No API key. From $0.60 per 1,000 tickers.",
    "version": "0.0",
    "x-build-id": "GSeUT7SmqAylBbcRT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapebench~yahoo-finance-stock-data-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapebench-yahoo-finance-stock-data-scraper",
        "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/scrapebench~yahoo-finance-stock-data-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapebench-yahoo-finance-stock-data-scraper",
        "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/scrapebench~yahoo-finance-stock-data-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapebench-yahoo-finance-stock-data-scraper",
        "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": {
          "mode": {
            "title": "What to get",
            "enum": [
              "record",
              "history",
              "options",
              "statements"
            ],
            "type": "string",
            "description": "record: one complete row per ticker (quote, profile, key statistics, analysts, ownership, calendar, dividends, splits, news, annual financials, 1-year chart). history: one row per price bar with adjusted close, dividends and splits. options: one row per option contract with Greeks. statements: one row per reporting period (annual, quarterly, trailing twelve months).",
            "default": "record"
          },
          "symbols": {
            "title": "Symbols",
            "type": "array",
            "description": "Tickers, one per line: AAPL, MSFT, BRK-B, 7203.T, RELIANCE.NS, ^GSPC, BTC-USD. Non-US listings take their exchange suffix. With Resolve symbols on, a company name or a bare code (Toyota, 7203) is looked up first. Each symbol is echoed in the input field of its rows.",
            "default": [
              "AAPL",
              "MSFT"
            ],
            "items": {
              "type": "string"
            }
          },
          "symbol": {
            "title": "Symbol (single)",
            "type": "string",
            "description": "One symbol, for saved tasks and API calls that send a single value. Use Symbols above for several."
          },
          "resolveSymbols": {
            "title": "Resolve symbols",
            "type": "boolean",
            "description": "Look up a company name or bare code, or a symbol that is not found as typed (BRK.B becomes BRK-B). Off: symbols are used exactly as given.",
            "default": true
          },
          "sections": {
            "title": "Record sections",
            "type": "array",
            "description": "Record mode: which parts of the ticker record to fill. Empty means all.",
            "items": {
              "type": "string",
              "enum": [
                "quote",
                "profile",
                "key_stats",
                "analyst",
                "ownership",
                "calendar",
                "dividends",
                "splits",
                "news",
                "financials",
                "chart"
              ],
              "enumTitles": [
                "Quote and ratios",
                "Company profile",
                "Key statistics and financial data",
                "Analyst ratings, targets and estimates",
                "Holders and insider trades",
                "Earnings and dividend calendar",
                "Dividend history",
                "Split history",
                "Latest news",
                "Annual financials summary",
                "1-year daily chart"
              ]
            },
            "default": []
          },
          "range": {
            "title": "History range",
            "enum": [
              "1d",
              "5d",
              "1mo",
              "3mo",
              "6mo",
              "1y",
              "2y",
              "5y",
              "10y",
              "ytd",
              "max"
            ],
            "type": "string",
            "description": "History mode: how far back, ending today. Ignored when a start date is set.",
            "default": "1y"
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "History mode: first day (YYYY-MM-DD). Overrides the range."
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "History mode: last day (YYYY-MM-DD). Empty means today."
          },
          "interval": {
            "title": "Bar interval",
            "enum": [
              "1d",
              "1wk",
              "1mo"
            ],
            "type": "string",
            "description": "History mode: one bar per day, week or month.",
            "default": "1d"
          },
          "expirations": {
            "title": "Expirations",
            "type": "string",
            "description": "Options mode: nearest (the next expiry), all, or a number N for the next N expiries (after the days-to-expiration filter).",
            "default": "nearest"
          },
          "minDaysToExpiration": {
            "title": "Minimum days to expiration",
            "minimum": 0,
            "type": "integer",
            "description": "Options mode: skip expiries sooner than this."
          },
          "maxDaysToExpiration": {
            "title": "Maximum days to expiration",
            "minimum": 0,
            "type": "integer",
            "description": "Options mode: skip expiries later than this."
          },
          "strikeWindowPct": {
            "title": "Strike window (%)",
            "minimum": 0,
            "type": "integer",
            "description": "Options mode: keep strikes within this many percent of the underlying price (20 keeps 80-120% of spot). Empty keeps every strike."
          },
          "optionType": {
            "title": "Option type",
            "enum": [
              "all",
              "call",
              "put"
            ],
            "type": "string",
            "description": "Options mode: calls, puts or both.",
            "default": "all"
          },
          "minOpenInterest": {
            "title": "Minimum open interest",
            "minimum": 0,
            "type": "integer",
            "description": "Options mode: skip contracts with less open interest."
          },
          "includeGreeks": {
            "title": "Include Greeks",
            "type": "boolean",
            "description": "Options mode: delta, gamma, theta (per day), vega and rho (per 1 point), calculated from each contract's implied volatility (Black-Scholes; an approximation for American-style options).",
            "default": true
          },
          "riskFreeRate": {
            "title": "Risk-free rate (%)",
            "type": "string",
            "description": "Options mode: annual rate for the Greeks, in percent (4.2). Empty uses the current 13-week US T-bill yield."
          },
          "periods": {
            "title": "Statement periods",
            "type": "array",
            "description": "Statements mode: which periods to return. Empty means all three.",
            "items": {
              "type": "string",
              "enum": [
                "annual",
                "quarterly",
                "ttm"
              ],
              "enumTitles": [
                "Annual",
                "Quarterly",
                "Trailing twelve months"
              ]
            },
            "default": []
          },
          "maxResults": {
            "title": "Maximum rows per symbol",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Cap for EACH symbol: price bars (the most recent are kept), option contracts or statement periods. Record mode returns one row per symbol.",
            "default": 5000
          },
          "proxyConfiguration": {
            "title": "Connection settings",
            "type": "object",
            "description": "Not needed in normal use. Set one only if your runs are refused.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}