{
  "openapi": "3.0.1",
  "info": {
    "title": "Yahoo Finance Scraper: Stock Prices, Options & Price Alerts",
    "description": "Yahoo Finance stock data API: live quotes, price history, dividends, financial statements, options chains, news and company details for stocks, ETFs, crypto, indexes and B3 tickers. Built-in price alerts and change tracking for scheduled runs.",
    "version": "0.1",
    "x-build-id": "gp7Eccow0rEEdTf1j"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/roomy_tweet~yahoo-finance-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-roomy_tweet-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/roomy_tweet~yahoo-finance-scraper/runs": {
      "post": {
        "operationId": "runs-sync-roomy_tweet-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/roomy_tweet~yahoo-finance-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-roomy_tweet-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",
            "type": "array",
            "description": "One per line: a Yahoo ticker (AAPL, BRK-B, SPY, BTC-USD, ^GSPC, EURUSD=X, GC=F, 7203.T), a Brazilian B3 ticker (PETR4, VALE3, HGLG11: .SA is added for you) or a company name (\"Nu Holdings\"). Add price alerts on the same line: \"AAPL > 350\", \"PETR4 < 30\", \"BTC-USD > 100000 < 60000\".",
            "items": {
              "type": "string"
            }
          },
          "screeners": {
            "title": "Yahoo screeners",
            "type": "array",
            "description": "Optional. Adds the symbols of Yahoo's ready-made lists (for example today's top gainers) to the run.",
            "items": {
              "type": "string",
              "enum": [
                "day_gainers",
                "day_losers",
                "most_actives",
                "most_shorted_stocks",
                "undervalued_growth_stocks",
                "growth_technology_stocks",
                "undervalued_large_caps",
                "aggressive_small_caps",
                "small_cap_gainers",
                "top_mutual_funds",
                "portfolio_anchors",
                "solid_large_growth_funds",
                "conservative_foreign_funds",
                "high_yield_bond"
              ],
              "enumTitles": [
                "Day gainers",
                "Day losers",
                "Most active",
                "Most shorted stocks",
                "Undervalued growth stocks",
                "Growth technology stocks",
                "Undervalued large caps",
                "Aggressive small caps",
                "Small cap gainers",
                "Top mutual funds",
                "Portfolio anchors (funds)",
                "Solid large growth funds",
                "Conservative foreign funds",
                "High yield bond funds"
              ]
            }
          },
          "screenerCount": {
            "title": "Symbols per screener",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "How many symbols to take from each screener.",
            "default": 25
          },
          "outputMode": {
            "title": "Output layout",
            "enum": [
              "rows",
              "bundle"
            ],
            "type": "string",
            "description": "Rows: a flat table, charged per row; best for spreadsheets and BI tools. Bundle: one row per symbol with history, dividends, financials, options and news as arrays inside it, charged once per symbol; best for backtests and long histories.",
            "default": "rows"
          },
          "includeDetails": {
            "title": "Company details and analysts",
            "type": "boolean",
            "description": "Adds to the quote row: sector, industry, website, employees, description, executives, margins, growth, debt, cash, EBITDA, analyst price targets and rating, next earnings date and ex-dividend date.",
            "default": false
          },
          "includeHistory": {
            "title": "Price history",
            "type": "boolean",
            "description": "One row per bar: open, high, low, close, adjusted close and volume.",
            "default": false
          },
          "historyRange": {
            "title": "History range",
            "enum": [
              "1d",
              "5d",
              "1mo",
              "3mo",
              "6mo",
              "ytd",
              "1y",
              "2y",
              "5y",
              "10y",
              "max"
            ],
            "type": "string",
            "description": "Ignored when a start date is set.",
            "default": "1y"
          },
          "historyInterval": {
            "title": "Bar size",
            "enum": [
              "1m",
              "2m",
              "5m",
              "15m",
              "30m",
              "60m",
              "90m",
              "1h",
              "1d",
              "5d",
              "1wk",
              "1mo",
              "3mo"
            ],
            "type": "string",
            "description": "Yahoo keeps 1-minute bars for about 8 days, other minute bars for 60 days and hourly bars for 2 years.",
            "default": "1d"
          },
          "historyStart": {
            "title": "History from",
            "type": "string",
            "description": "Optional start day (YYYY-MM-DD). Overrides the range."
          },
          "historyEnd": {
            "title": "History to",
            "type": "string",
            "description": "Optional last day (YYYY-MM-DD). Defaults to today."
          },
          "includePrePost": {
            "title": "Include pre- and after-market bars",
            "type": "boolean",
            "description": "Intraday bar sizes only.",
            "default": false
          },
          "includeDividends": {
            "title": "Dividends and splits",
            "type": "boolean",
            "description": "One row per dividend paid and per stock split.",
            "default": false
          },
          "dividendsRange": {
            "title": "Dividends range",
            "enum": [
              "1d",
              "5d",
              "1mo",
              "3mo",
              "6mo",
              "ytd",
              "1y",
              "2y",
              "5y",
              "10y",
              "max"
            ],
            "type": "string",
            "description": "How far back to list dividends and splits.",
            "default": "5y"
          },
          "includeFinancials": {
            "title": "Financial statements",
            "type": "boolean",
            "description": "One row per fiscal period: revenue, gross profit, operating income, net income, EBITDA, EPS, assets, liabilities, equity, debt, cash, operating cash flow, capex, free cash flow, dividends paid. Yahoo shows the last 4 years and 5 quarters.",
            "default": false
          },
          "financialsFrequency": {
            "title": "Statement periods",
            "enum": [
              "annual",
              "quarterly",
              "both"
            ],
            "type": "string",
            "description": "Annual statements, quarterly statements or both.",
            "default": "annual"
          },
          "includeOptions": {
            "title": "Options chain",
            "type": "boolean",
            "description": "One row per contract: strike, bid, ask, last price, volume, open interest, implied volatility, days to expiration, in the money.",
            "default": false
          },
          "optionsExpirations": {
            "title": "Expirations",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many of the nearest expiration dates to read.",
            "default": 1
          },
          "optionsType": {
            "title": "Contracts",
            "enum": [
              "both",
              "calls",
              "puts"
            ],
            "type": "string",
            "description": "Which contracts to keep.",
            "default": "both"
          },
          "optionsStrikeRangePercent": {
            "title": "Strikes within ±% of the price",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "0 = every strike. 10 keeps strikes within 10% of the current price, which cuts the row count a lot.",
            "default": 0
          },
          "includeNews": {
            "title": "News",
            "type": "boolean",
            "description": "Recent Yahoo Finance news for each symbol: title, publisher, link, date and related tickers.",
            "default": false
          },
          "newsPerSymbol": {
            "title": "News per symbol",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many recent articles to keep for each symbol.",
            "default": 10
          },
          "trackChanges": {
            "title": "Track price changes between runs",
            "type": "boolean",
            "description": "Adds previousRunPrice, previousRunAt, changeSinceLastRun and changeSinceLastRunPercent to each quote.",
            "default": false
          },
          "alertMovePercent": {
            "title": "Alert when the price moved this % since the last run",
            "minimum": 0,
            "type": "number",
            "description": "For example 5: alert when the price is up or down 5% or more since the previous run."
          },
          "alert52WeekHighLow": {
            "title": "Alert on a new 52-week high or low",
            "type": "boolean",
            "description": "Once per new high or low.",
            "default": false
          },
          "alertEarningsWithinDays": {
            "title": "Alert when earnings are within this many days",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Once per earnings date."
          },
          "alertDividendWithinDays": {
            "title": "Alert when the ex-dividend date is within this many days",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Once per date. Uses the ex-dividend date when company details are on, otherwise the payment date."
          },
          "onlyAlerts": {
            "title": "Save only quotes with an alert",
            "type": "boolean",
            "description": "Quotes without an alert are not saved and not charged, and their extra rows are skipped. Connect an email, Slack or webhook integration to be notified.",
            "default": false
          },
          "stateStoreName": {
            "title": "Memory name",
            "type": "string",
            "description": "Named key-value store that keeps the last prices. Use different names for different watchlists.",
            "default": "yahoo-finance-monitor"
          },
          "resetState": {
            "title": "Forget the remembered prices",
            "type": "boolean",
            "description": "Starts monitoring from scratch for this memory name.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Lower it if Yahoo starts answering \"too many requests\".",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. By default the Actor connects directly and switches to Apify Proxy by itself if Yahoo rate-limits the connection."
          },
          "failOnQualityDrop": {
            "title": "Fail when the quality check trips",
            "type": "boolean",
            "description": "Mark the run as failed when many quotes miss a field Yahoo always sends, so a schedule alerts you.",
            "default": false
          },
          "debugSamples": {
            "title": "Save raw samples",
            "type": "boolean",
            "description": "For troubleshooting: keeps the first raw answer of each Yahoo endpoint in the run's key-value store.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}