{
  "openapi": "3.0.1",
  "info": {
    "title": "Yahoo Finance Scraper — Quotes, Financials, History, Options",
    "description": "Scrape Yahoo Finance — real-time quotes, historical OHLC, income/balance/cashflow statements, analyst ratings & price targets, news, options chains, earnings, holders, and company profiles. 10 modes auto-detected from ticker, company name, or URL. HTTP-first with browser fallback. MCP-ready.",
    "version": "0.2",
    "x-build-id": "9b8ayOP5bC7ffNF97"
  },
  "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",
        "required": [
          "query"
        ],
        "properties": {
          "query": {
            "title": "Query (ticker, company name, or Yahoo Finance URL)",
            "type": "string",
            "description": "What to look up. Accepts a Yahoo ticker (e.g. 'AAPL', 'BTC-USD', '^GSPC', 'EURUSD=X', 'VOW3.DE'), a company name for symbol search (e.g. 'Nvidia'), or a Yahoo Finance URL (e.g. 'https://finance.yahoo.com/quote/AAPL/financials'). When a URL includes a section (history, financials, holders, options, analysis), that section sets the mode automatically. NOT a Google or Bloomberg URL — Yahoo Finance only."
          },
          "mode": {
            "title": "Mode (auto-detect by default)",
            "enum": [
              "auto",
              "quote",
              "historical",
              "financials",
              "analysis",
              "news",
              "options",
              "earnings",
              "holders",
              "profile",
              "search"
            ],
            "type": "string",
            "description": "Which data to fetch. 'auto' = infer from the query (ticker -> quote, name -> search, URL -> its section). 'quote' = live price snapshot. 'historical' = OHLC time-series. 'financials' = income/balance/cashflow statements. 'analysis' = analyst ratings + price targets. 'news' = recent headlines. 'options' = options chain. 'earnings' = earnings history + next date. 'holders' = institutional/insider ownership. 'profile' = company profile + key stats. 'search' = resolve a name to tickers.",
            "default": "auto"
          },
          "interval": {
            "title": "Historical interval",
            "enum": [
              "1d",
              "1wk",
              "1mo"
            ],
            "type": "string",
            "description": "Bar interval for historical mode: '1d' daily, '1wk' weekly, '1mo' monthly. Defaults to '1d'. Ignored outside historical mode.",
            "default": "1d"
          },
          "range": {
            "title": "Historical range",
            "enum": [
              "5d",
              "1mo",
              "3mo",
              "6mo",
              "1y",
              "2y",
              "5y",
              "10y",
              "max"
            ],
            "type": "string",
            "description": "Look-back window for historical mode when no explicit dates are set: e.g. '1mo', '6mo', '1y', '5y', 'max'. Defaults to '1y'. Overridden by dateFrom/dateTo when both are provided. Ignored outside historical mode.",
            "default": "1y"
          },
          "dateFrom": {
            "title": "Historical date from",
            "type": "string",
            "description": "Lower-bound date for historical mode in YYYY-MM-DD (e.g. '2023-01-01'). When both dateFrom and dateTo are set they override `range`. Leave empty to use `range`. Ignored outside historical mode.",
            "default": ""
          },
          "dateTo": {
            "title": "Historical date to",
            "type": "string",
            "description": "Upper-bound date for historical mode in YYYY-MM-DD (e.g. '2024-01-01'). Used together with dateFrom. Leave empty to use `range`. Ignored outside historical mode.",
            "default": ""
          },
          "frequency": {
            "title": "Statement frequency",
            "enum": [
              "annual",
              "quarterly"
            ],
            "type": "string",
            "description": "For financials mode: 'annual' returns fiscal-year statements, 'quarterly' returns the last few quarters. Defaults to 'annual'. Ignored outside financials mode.",
            "default": "annual"
          },
          "newsCount": {
            "title": "News article count",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Number of news articles to request in news mode (1-50). Defaults to 20. Ignored outside news mode; use maxResults to cap overall output.",
            "default": 20
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Cap on dataset items returned (1-5000). One item = one quote, OHLC bar, statement, rating, article, option contract, earnings row, holder, or symbol match. Defaults to 100. Charged $0.005 per result and $0.001 per data-point (historical bars + option contracts).",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. Defaults to Apify Proxy (recommended) which keeps Yahoo Finance reliable. Datacenter proxies work for most endpoints; switch to residential if you hit rate limits at high volume.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}