{
  "openapi": "3.0.1",
  "info": {
    "title": "Yahoo Finance — Historical Prices (OHLCV), Options, Quotes",
    "description": "Yahoo Finance data in one actor: historical prices (OHLCV), dividends, splits, quotes, fundamentals, options chain for any expiration with Greeks, news, earnings calendar, analyst ratings and price targets, holders, company profiles and financial statements. Stocks, ETFs, crypto, forex. Keyless.",
    "version": "0.1",
    "x-build-id": "0fg4pHWizbVbp8sDS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ponderable_hydrometer~yahoo-finance-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ponderable_hydrometer-yahoo-finance-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/ponderable_hydrometer~yahoo-finance-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ponderable_hydrometer-yahoo-finance-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/ponderable_hydrometer~yahoo-finance-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ponderable_hydrometer-yahoo-finance-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": {
          "symbols": {
            "title": "Symbols (tickers)",
            "type": "array",
            "description": "Tickers to fetch, e.g. [\"AAPL\",\"MSFT\",\"BTC-USD\",\"EURUSD=X\",\"^GSPC\"]. Not needed for the search, trending and screener modes, or when \"Feed tickers from\" is set.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "What to fetch",
            "enum": [
              "historical",
              "dividends",
              "quote",
              "fundamentals",
              "options",
              "news",
              "earnings",
              "analysts",
              "holders",
              "profile",
              "statements",
              "search",
              "trending",
              "screener"
            ],
            "type": "string",
            "description": "Which Yahoo Finance dataset to pull. **Historical prices** = daily/intraday OHLCV candles. **Dividends & splits** = corporate actions history. **Quote** = one live snapshot row per ticker. **Fundamentals** = income statement, balance sheet, cash flow, margins and analyst targets. **Options chain** = calls and puts with strikes, IV and open interest, for the nearest or for every expiration, with optional filters and Greeks. **News** = recent headlines per ticker. **Earnings** = next earnings date, consensus EPS and revenue, last quarter's surprise and the estimate trend. **Analysts** = price targets, buy/hold/sell counts and recent upgrades/downgrades. **Holders** = ownership percentages and, optionally, the top 10 institutions and top 10 funds. **Profile** = sector, industry, employees, description. **Statements** = income statement, balance sheet and cash flow, one row per quarter or year. These five are for stocks only: ETFs, crypto and indices return no row and are not charged. **Symbol search** = tickers matching a company name, ticker or ISIN. **Trending tickers** = what is trending on Yahoo now (US and GB). **Screener** = one of Yahoo's ready-made lists (day gainers, most active, undervalued growth...) with price, volume, market cap and P/E per ticker. These three need no symbols.",
            "default": "historical"
          },
          "modes": {
            "title": "Several datasets in one run (optional)",
            "type": "array",
            "description": "Optional. List several of the modes above to get them in one run, e.g. [\"quote\",\"earnings\",\"analysts\",\"profile\"]. Each row then carries a \"mode\" field so you can split the dataset. Same price per row as running each mode on its own. Leave empty to use the single \"What to fetch\" choice. Valid values: historical, dividends, quote, fundamentals, options, news, earnings, analysts, holders, profile, statements.",
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Search text",
            "type": "string",
            "description": "Symbol search mode: a company name, ticker or ISIN, e.g. \"nvidia\". Yahoo returns its own most relevant matches (usually 5 to 10)."
          },
          "region": {
            "title": "Trending region",
            "enum": [
              "US",
              "GB"
            ],
            "type": "string",
            "description": "Trending tickers mode. Only the US and GB lists are full; other regions return 1 to 4 tickers.",
            "default": "US"
          },
          "screener": {
            "title": "Screener",
            "enum": [
              "day_gainers",
              "day_losers",
              "most_actives",
              "undervalued_growth_stocks",
              "growth_technology_stocks",
              "aggressive_small_caps",
              "small_cap_gainers",
              "most_shorted_stocks",
              "undervalued_large_caps",
              "conservative_foreign_funds",
              "high_yield_bond",
              "portfolio_anchors",
              "solid_large_growth_funds",
              "solid_midcap_growth_funds",
              "top_mutual_funds",
              "most_watched_tickers",
              "all_cryptocurrencies_us",
              "day_gainers_asia"
            ],
            "type": "string",
            "description": "Screener mode: which of Yahoo's ready-made lists to read.",
            "default": "day_gainers"
          },
          "limit": {
            "title": "Max tickers from a list",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many rows the search, trending or screener list returns (screener up to 1000, trending up to 50), and how many tickers it feeds to the other modes.",
            "default": 25
          },
          "symbolsFrom": {
            "title": "Feed tickers from",
            "enum": [
              "search",
              "trending",
              "screener"
            ],
            "type": "string",
            "description": "Optional. Build the ticker list from a search, the trending list or a screener, then run the chosen mode(s) on those tickers, e.g. screener \"most_actives\" + mode \"fundamentals\". The list itself is not billed, only the rows of the chosen mode(s). Added to any \"symbols\" you give."
          },
          "range": {
            "title": "Range",
            "enum": [
              "1d",
              "5d",
              "1mo",
              "3mo",
              "6mo",
              "1y",
              "2y",
              "5y",
              "10y",
              "ytd",
              "max"
            ],
            "type": "string",
            "description": "Time range (used when no explicit dates): 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max. Used by Historical prices and Dividends & splits.",
            "default": "1mo"
          },
          "interval": {
            "title": "Interval",
            "enum": [
              "1m",
              "2m",
              "5m",
              "15m",
              "30m",
              "60m",
              "90m",
              "1h",
              "1d",
              "5d",
              "1wk",
              "1mo",
              "3mo"
            ],
            "type": "string",
            "description": "Candle interval: 1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo, 3mo. (Intraday intervals only work for short ranges.). Used by Historical prices and Dividends & splits.",
            "default": "1d"
          },
          "includePrePost": {
            "title": "Include pre- and post-market",
            "type": "boolean",
            "description": "Historical prices only, with an intraday interval (1m to 1h): also return pre-market and after-hours candles, each tagged with a \"session\" field (pre, regular or post). Daily and longer candles are not affected.",
            "default": false
          },
          "period1": {
            "title": "Start date (optional)",
            "type": "string",
            "description": "Explicit start date YYYY-MM-DD (or unix seconds). Overrides Range when both start and end are set. Used by Historical prices and Dividends & splits."
          },
          "period2": {
            "title": "End date (optional)",
            "type": "string",
            "description": "Explicit end date YYYY-MM-DD (or unix seconds). Used by Historical prices and Dividends & splits."
          },
          "events": {
            "title": "Events",
            "type": "string",
            "description": "Optionally include corporate events, e.g. \"div,split\". Used by Historical prices and Dividends & splits."
          },
          "maxOptionContracts": {
            "title": "Max option contracts per ticker",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Cap on contracts returned per ticker in Options chain mode (calls + puts, across all selected expirations). Leave empty for 200 with the nearest expiration, or 5,000 when several expirations are selected. Every row is billed, so this is also your cost cap."
          },
          "expirations": {
            "title": "Expirations",
            "type": "string",
            "description": "Which expirations to fetch in Options chain mode: **nearest** (default, one expiration), **all** (every listed expiration, up to Max expirations), or a comma-separated list of dates, e.g. 2026-12-18,2027-01-15. Min/Max days to expiration narrow any of these.",
            "default": "nearest"
          },
          "minDte": {
            "title": "Min days to expiration",
            "minimum": 0,
            "type": "integer",
            "description": "Skip expirations closer than this many calendar days. With \"nearest\", picks the first expiration at least this far out."
          },
          "maxDte": {
            "title": "Max days to expiration",
            "minimum": 0,
            "type": "integer",
            "description": "Skip expirations further out than this many calendar days."
          },
          "maxExpirations": {
            "title": "Max expirations per ticker",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Cap on the number of expirations fetched per ticker when Expirations is \"all\" or a list. One request per expiration.",
            "default": 12
          },
          "contractType": {
            "title": "Calls / puts",
            "enum": [
              "both",
              "calls",
              "puts"
            ],
            "type": "string",
            "description": "Which side of the chain to return.",
            "default": "both"
          },
          "moneyness": {
            "title": "Moneyness",
            "enum": [
              "all",
              "itm",
              "otm",
              "atm"
            ],
            "type": "string",
            "description": "Keep only in-the-money, out-of-the-money, or the at-the-money contract (the strike nearest the underlying, per expiration and side).",
            "default": "all"
          },
          "strikeWindowPercent": {
            "title": "Strike window (± %)",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Keep only strikes within this percentage of the underlying price, e.g. 10 = strikes between 90% and 110% of spot."
          },
          "minOpenInterest": {
            "title": "Min open interest",
            "minimum": 0,
            "type": "integer",
            "description": "Drop contracts with less open interest than this."
          },
          "minVolume": {
            "title": "Min volume",
            "minimum": 0,
            "type": "integer",
            "description": "Drop contracts that traded fewer contracts than this today."
          },
          "includeGreeks": {
            "title": "Include Greeks",
            "type": "boolean",
            "description": "Add delta, gamma, theta (per day), vega and rho (per 1 percentage point) to each contract. Computed by this actor with Black-Scholes from Yahoo's implied volatility and the 13-week T-bill yield (^IRX); not supplied by Yahoo. No extra charge.",
            "default": false
          },
          "includeEarningsHistory": {
            "title": "Include earnings history",
            "type": "boolean",
            "description": "Earnings mode: add one row per reported quarter (Yahoo keeps the last 4) with actual EPS, estimate and surprise. Each row is billed.",
            "default": false
          },
          "maxRatingChanges": {
            "title": "Rating changes per ticker",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Analysts mode: how many of the most recent upgrades/downgrades to return, one row each, newest first. 0 = summary row only. Each row is billed.",
            "default": 10
          },
          "includeTopHolders": {
            "title": "Include top holders",
            "type": "boolean",
            "description": "Holders mode: add one row per holder from Yahoo's top-10 institutions and top-10 funds lists (up to 20 extra rows per ticker, each billed). Insider (individual) holders are not collected.",
            "default": false
          },
          "statementPeriod": {
            "title": "Statement period",
            "enum": [
              "quarterly",
              "annual",
              "both"
            ],
            "type": "string",
            "description": "Statements mode: which periods to return. One row per period, with every line item (null where the company does not report it).",
            "default": "quarterly"
          },
          "newsPerSymbol": {
            "title": "News articles per ticker",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many recent headlines to return per ticker in News mode.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}