{
  "openapi": "3.0.1",
  "info": {
    "title": "Yahoo Finance Scraper — Quotes, Financials, History, Options",
    "description": "Scrape Yahoo Finance quotes, historical OHLC, income, balance-sheet and cash-flow statements, analyst ratings and price targets, news, options chains, earnings, holders and company profiles. Ten modes are auto-detected from a ticker, company name or URL.",
    "version": "0.3",
    "x-build-id": "OPSfVHAJQagIwGirk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~yahoo-finance-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-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/khadinakbar~yahoo-finance-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-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/khadinakbar~yahoo-finance-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-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": "Tickers (up to 500)",
            "type": "array",
            "description": "Yahoo Finance tickers to look up, one per line, for example AAPL, MSFT, BTC-USD, ^GSPC, EURUSD=X, VOW3.DE. Up to 500 per run (25 on the Apify free plan). Quotes are fetched in batches of 50, so a 500-ticker quote run is fast. Leave empty to use `query` instead.",
            "items": {
              "type": "string"
            }
          },
          "modes": {
            "title": "What to fetch",
            "type": "array",
            "description": "One or more kinds of data. Each ticker is fetched in every mode you pick. Default is quote. quote = live price snapshot; historical = price bars (daily, weekly, monthly or intraday); financials = income, balance sheet and cash flow; analysis = analyst ratings and price targets; news; options = options chain; earnings; holders; profile; search = find a ticker from a company name; dividends; splits; trending = what is trending on Yahoo Finance now (no ticker needed); recommendations = similar symbols; screener = a ready-made Yahoo screen such as day gainers (no ticker needed).",
            "items": {
              "type": "string",
              "enum": [
                "quote",
                "historical",
                "financials",
                "analysis",
                "news",
                "options",
                "earnings",
                "holders",
                "profile",
                "search",
                "dividends",
                "splits",
                "trending",
                "recommendations",
                "screener"
              ],
              "enumTitles": [
                "Quote (live price)",
                "Price history (daily or intraday)",
                "Financial statements",
                "Analyst ratings & targets",
                "News",
                "Options chain",
                "Earnings",
                "Holders (institutional/insider)",
                "Company profile",
                "Symbol search",
                "Dividend history",
                "Stock split history",
                "Trending symbols",
                "Similar symbols",
                "Ready-made screen (gainers, losers, most active)"
              ]
            }
          },
          "query": {
            "title": "Single lookup (ticker, company name or Yahoo URL)",
            "type": "string",
            "description": "Optional. A Yahoo ticker such as 'AAPL', a company name such as 'Nvidia' (returns matching tickers), or a Yahoo Finance URL such as 'https://finance.yahoo.com/quote/AAPL/financials' (the page section picks the mode). Used only when `symbols` is empty. Yahoo Finance only, not Google or Bloomberg."
          },
          "mode": {
            "title": "Mode for a single lookup (auto-detect by default)",
            "enum": [
              "auto",
              "quote",
              "historical",
              "financials",
              "analysis",
              "news",
              "options",
              "earnings",
              "holders",
              "profile",
              "search",
              "dividends",
              "splits",
              "trending",
              "recommendations",
              "screener"
            ],
            "type": "string",
            "description": "Used with `query` when `modes` is empty. 'auto' picks from the query: ticker -> quote, name -> search, URL -> its page section.",
            "default": "auto"
          },
          "interval": {
            "title": "Price bar size",
            "enum": [
              "1m",
              "2m",
              "5m",
              "15m",
              "30m",
              "60m",
              "90m",
              "1h",
              "1d",
              "5d",
              "1wk",
              "1mo",
              "3mo"
            ],
            "type": "string",
            "description": "Bar size for historical mode. Intraday sizes (1m to 90m) only reach back a short time on Yahoo: 1m about 7 days, others about 60 days; the Actor picks a window Yahoo accepts. Default 1d.",
            "default": "1d"
          },
          "range": {
            "title": "Look-back window",
            "enum": [
              "1d",
              "5d",
              "1mo",
              "3mo",
              "6mo",
              "1y",
              "2y",
              "5y",
              "10y",
              "ytd",
              "max"
            ],
            "type": "string",
            "description": "How far back for historical, dividends and splits when no dates are set. Leave empty for the default: 1 year for historical, the full history for dividends and splits. Overridden by dateFrom and dateTo when both are set."
          },
          "dateFrom": {
            "title": "Start date",
            "type": "string",
            "description": "Start date for historical, dividends and splits as YYYY-MM-DD, for example 2023-01-01. Use together with dateTo; both override the look-back window."
          },
          "dateTo": {
            "title": "End date",
            "type": "string",
            "description": "End date as YYYY-MM-DD, for example 2024-01-01. Use together with dateFrom."
          },
          "includePrePost": {
            "title": "Include pre-market and after-hours bars",
            "type": "boolean",
            "description": "For intraday historical bars: also return pre-market and after-hours trading. Default off.",
            "default": false
          },
          "frequency": {
            "title": "Statement frequency",
            "enum": [
              "annual",
              "quarterly"
            ],
            "type": "string",
            "description": "For financials: 'annual' for fiscal years or 'quarterly' for the latest quarters. Default annual.",
            "default": "annual"
          },
          "newsCount": {
            "title": "News articles per ticker",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many articles to request per ticker in news mode (1 to 50). Default 20.",
            "default": 20
          },
          "screenerId": {
            "title": "Ready-made screen",
            "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"
            ],
            "type": "string",
            "description": "Which Yahoo screen to read in screener mode. Default day_gainers.",
            "default": "day_gainers"
          },
          "maxResults": {
            "title": "Max rows for the whole run",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stops the run once this many rows are saved, so cost stays predictable. One row = one quote, price bar, dividend, statement period, rating, article, option contract, earnings row, holder or symbol match. Default 1000, up to 50000. Free-plan runs are limited to 300.",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Your own proxy (optional)",
            "type": "object",
            "description": "Leave empty. The Actor reaches Yahoo directly and switches to its own backup routes if Yahoo pushes back. Add proxy URLs here only if you want your own proxy used instead."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}