{
  "openapi": "3.0.1",
  "info": {
    "title": "Yahoo Finance Scraper: Quotes, History, Options, News",
    "description": "Yahoo Finance quotes, historical OHLCV prices, company profiles with key stats and financial summary, options chains with Greeks, ticker news, trending tickers and market movers. Stocks, ETFs, indices, crypto, FX. No login, no API key.",
    "version": "1.0",
    "x-build-id": "UKfeBmYGEQBRs6otC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zhtech~yahoo-finance-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zhtech-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/zhtech~yahoo-finance-scraper/runs": {
      "post": {
        "operationId": "runs-sync-zhtech-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/zhtech~yahoo-finance-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-zhtech-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "What to scrape",
            "enum": [
              "quotes",
              "history",
              "profile",
              "options",
              "news",
              "markets"
            ],
            "type": "string",
            "description": "Quotes: current price, change, market cap, PE, 52 week range, volume and more, one row per ticker. Historical prices: daily, weekly or monthly OHLCV bars with adjusted close, dividends and splits. Profile: company or fund profile with key statistics, analyst targets and a financial summary. Options: options chain with bid, ask, volume, open interest, implied volatility and Greeks. News: latest news stories for each ticker. Market lists: trending tickers, most active, gainers, losers, crypto and top ETFs (no tickers needed).",
            "default": "quotes"
          },
          "tickers": {
            "title": "Ticker symbols",
            "type": "array",
            "description": "Symbols as Yahoo Finance writes them. Stocks: AAPL, BRK-B. Non US: VOD.L, 7203.T, SAP.DE. ETFs: SPY. Indices: ^GSPC, ^DJI, ^IXIC. Crypto: BTC-USD, ETH-USD. Currencies: EURUSD=X, JPY=X. Futures: GC=F, CL=F. Links like https://finance.yahoo.com/quote/AAPL/ work too. Not used in Market lists mode.",
            "default": [
              "AAPL",
              "MSFT",
              "SPY",
              "^GSPC",
              "BTC-USD",
              "EURUSD=X"
            ],
            "items": {
              "type": "string"
            }
          },
          "historyInterval": {
            "title": "Bar interval",
            "enum": [
              "1d",
              "1wk",
              "1mo"
            ],
            "type": "string",
            "description": "Daily, weekly or monthly bars (the intervals the Yahoo Finance history page offers).",
            "default": "1d"
          },
          "historyRange": {
            "title": "Range",
            "enum": [
              "5d",
              "1mo",
              "3mo",
              "6mo",
              "ytd",
              "1y",
              "2y",
              "5y",
              "10y",
              "max"
            ],
            "type": "string",
            "description": "How far back to go, counted from today. Ignored when a start date is set.",
            "default": "1mo"
          },
          "historyStartDate": {
            "title": "Start date (optional)",
            "type": "string",
            "description": "First day to include, YYYY-MM-DD. Overrides the range."
          },
          "historyEndDate": {
            "title": "End date (optional)",
            "type": "string",
            "description": "Last day to include, YYYY-MM-DD. Leave empty for today."
          },
          "maxBarsPerTicker": {
            "title": "Max bars per ticker",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only the most recent N bars per ticker. 0 keeps every bar in the range.",
            "default": 0
          },
          "maxOfficers": {
            "title": "Max company officers",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "How many executives (name, title, age, pay) to include in each profile.",
            "default": 10
          },
          "optionsExpirations": {
            "title": "Number of expirations",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "How many of the nearest expiration dates to scrape per ticker. Each expiration is one page load.",
            "default": 1
          },
          "optionsExpirationDates": {
            "title": "Specific expiration dates (optional)",
            "type": "array",
            "description": "Scrape these expirations instead, YYYY-MM-DD, for example 2026-12-18. Dates that are not listed for a ticker return an error row with the listed dates.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "optionsType": {
            "title": "Calls, puts or both",
            "enum": [
              "both",
              "calls",
              "puts"
            ],
            "type": "string",
            "description": "Which side of the chain to return.",
            "default": "both"
          },
          "optionsStrikesAroundPrice": {
            "title": "Strikes around the current price",
            "minimum": 0,
            "type": "integer",
            "description": "Only the N strikes below and N strikes above the underlying price. 0 returns every strike.",
            "default": 0
          },
          "includeGreeks": {
            "title": "Calculate Greeks",
            "type": "boolean",
            "description": "Adds delta, gamma, theta (per day), vega and rho (per 1 percentage point) and a theoretical price, calculated with the Black-Scholes-Merton model from Yahoo's implied volatility, the dividend yield and the risk free rate below.",
            "default": true
          },
          "riskFreeRatePercent": {
            "title": "Risk free rate (percent)",
            "type": "string",
            "description": "Annual risk free rate used for the Greeks, for example 4 for 4 percent.",
            "default": "4"
          },
          "maxNewsPerTicker": {
            "title": "Max news stories per ticker",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Yahoo Finance shows about 10 to 20 of the latest stories on a ticker's news page.",
            "default": 20
          },
          "marketLists": {
            "title": "Market lists",
            "type": "array",
            "description": "Lists to scrape: trending (US trending tickers), most-active, gainers, losers, 52-week-gainers, 52-week-losers, crypto (all cryptocurrencies by market cap), top-etfs.",
            "items": {
              "type": "string",
              "enum": [
                "trending",
                "most-active",
                "gainers",
                "losers",
                "52-week-gainers",
                "52-week-losers",
                "crypto",
                "top-etfs"
              ],
              "enumTitles": [
                "Trending tickers",
                "Most active stocks",
                "Day gainers",
                "Day losers",
                "52 week gainers",
                "52 week losers",
                "Cryptocurrencies",
                "Top ETFs"
              ]
            },
            "default": [
              "trending"
            ]
          },
          "maxPerMarketList": {
            "title": "Max rows per list",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Trending has up to 25 rows. Other lists go deeper in pages of 100.",
            "default": 25
          },
          "maxItems": {
            "title": "Max results (all modes)",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many saved rows in total. 0 means no limit. Your maximum cost per run also stops the run cleanly.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed in most cases, leave it empty. On the Apify platform the actor switches to Apify datacenter proxy by itself if Yahoo keeps refusing direct requests. Residential proxy is not supported and is replaced with datacenter proxy."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}