{
  "openapi": "3.0.1",
  "info": {
    "title": "Yahoo Finance Scraper",
    "description": "Get Yahoo Finance live quotes, income/balance/cashflow financials, analyst ratings, options chains, OHLCV price history, and stock news for any ticker cleanly without an API key.",
    "version": "1.0",
    "x-build-id": "IdVp2BgVze9wZY8u8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/wyle~yahoo-finance-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-wyle-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/wyle~yahoo-finance-scraper/runs": {
      "post": {
        "operationId": "runs-sync-wyle-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/wyle~yahoo-finance-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-wyle-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": {
          "scrapeMode": {
            "title": "Scrape Mode",
            "enum": [
              "full_profile",
              "quotes",
              "historical_ohlcv",
              "options",
              "news",
              "screener"
            ],
            "type": "string",
            "description": "Choose data mode: 'full_profile' (1 rich fundamental+quote row per ticker), 'quotes' (fast batch quotes), 'historical_ohlcv' (price history + dividends/splits), 'options' (calls/puts chain), 'news' (financial news), or 'screener' (day gainers/losers/actives/trending).",
            "default": "full_profile"
          },
          "symbols": {
            "title": "Ticker Symbols, Keywords, or Yahoo Finance URLs",
            "type": "array",
            "description": "Ticker symbols (e.g., 'AAPL', 'NVDA', 'BTC-USD', 'EURUSD=X', '^GSPC', 'BBCA.JK'), Yahoo Finance quote URLs, or search keywords when scrapeMode is 'news'.",
            "default": [
              "AAPL",
              "NVDA",
              "MSFT",
              "BTC-USD"
            ],
            "items": {
              "type": "string"
            }
          },
          "screenerId": {
            "title": "Screener Preset (For 'screener' Mode)",
            "enum": [
              "day_gainers",
              "day_losers",
              "most_actives",
              "undervalued_growth_stocks",
              "growth_technology_stocks",
              "aggressive_small_caps",
              "small_cap_gainers",
              "most_shorted_stocks",
              "trending"
            ],
            "type": "string",
            "description": "Select predefined Yahoo Finance market screener or trending list when 'scrapeMode' is 'screener'.",
            "default": "day_gainers"
          },
          "region": {
            "title": "Market Region",
            "type": "string",
            "description": "2-letter market region for trending tickers (e.g., US, GB, CA, AU, DE, IN, SG).",
            "default": "US"
          },
          "historyRange": {
            "title": "Historical Time Range (For 'historical_ohlcv' Mode)",
            "enum": [
              "1d",
              "5d",
              "1mo",
              "3mo",
              "6mo",
              "1y",
              "2y",
              "5y",
              "10y",
              "ytd",
              "max"
            ],
            "type": "string",
            "description": "Lookback period for historical candles (ignored if dateFrom/dateTo are specified).",
            "default": "1mo"
          },
          "historyInterval": {
            "title": "Candle Interval (For 'historical_ohlcv' Mode)",
            "enum": [
              "1m",
              "5m",
              "15m",
              "30m",
              "1h",
              "1d",
              "1wk",
              "1mo"
            ],
            "type": "string",
            "description": "Bar interval for historical OHLCV data.",
            "default": "1d"
          },
          "dateFrom": {
            "title": "Start Date (YYYY-MM-DD, Optional)",
            "type": "string",
            "description": "Optional start date for 'historical_ohlcv' mode (overrides historyRange when paired with or without dateTo).",
            "default": ""
          },
          "dateTo": {
            "title": "End Date (YYYY-MM-DD, Optional)",
            "type": "string",
            "description": "Optional end date for 'historical_ohlcv' mode.",
            "default": ""
          },
          "maxExpirations": {
            "title": "Max Expiration Dates (For 'options' Mode)",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Number of upcoming option expiration dates to fetch per ticker (1–20).",
            "default": 2
          },
          "maxItems": {
            "title": "Max Items Per Query / Mode",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum dataset records to return per symbol (for OHLCV/options/news) or total rows (for screener).",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Optional Apify Proxy configuration (Residential supported). Standard direct connections work out of the box.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}