{
  "openapi": "3.0.1",
  "info": {
    "title": "Yahoo Finance Scraper | Quotes, History & Key Stats",
    "description": "Get Yahoo Finance quotes by ticker: price, change, volume, market cap, P/E, analyst target, sector and industry in one flat row, plus historical OHLCV candles with adjusted close, dividends and splits. Stocks, ETFs, funds, crypto, FX, indices, futures. Many tickers per run, no login.",
    "version": "0.0",
    "x-build-id": "FSJiZkRKwapZK6NyH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/genial_candlestand~yahoo-finance-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-genial_candlestand-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/genial_candlestand~yahoo-finance-scraper/runs": {
      "post": {
        "operationId": "runs-sync-genial_candlestand-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/genial_candlestand~yahoo-finance-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-genial_candlestand-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": [
          "tickers"
        ],
        "properties": {
          "tickers": {
            "title": "Tickers",
            "minItems": 1,
            "type": "array",
            "description": "Yahoo Finance symbols, one per line: stocks (AAPL, 7203.T, SAP.DE), ETFs and funds (SPY, VFIAX), crypto (BTC-USD), FX (EURUSD=X), indices (^GSPC), futures (GC=F). Quote page URLs like https://finance.yahoo.com/quote/AAPL/ work too. Case does not matter; a line with commas or spaces is split. Unknown tickers are listed in the log and cost nothing.",
            "items": {
              "type": "string"
            }
          },
          "includeQuote": {
            "title": "Quote row per ticker",
            "type": "boolean",
            "description": "Save one row per ticker with the live price, change, volume, day and 52-week range, market cap and P/E. Turn off to get only historical prices (then set History range or History start date).",
            "default": true
          },
          "includeKeyStatistics": {
            "title": "Add key statistics and company profile",
            "type": "boolean",
            "description": "Add valuation, margins, revenue, cash and debt, analyst targets and the company profile (sector, industry, country, website, employees, description) to each quote row. Complete for stocks; ETFs, funds, crypto, FX, indices and futures have fewer fields. Turn off for faster price-only runs on long lists.",
            "default": true
          },
          "historyRange": {
            "title": "History range",
            "enum": [
              "none",
              "1d",
              "5d",
              "1mo",
              "3mo",
              "6mo",
              "ytd",
              "1y",
              "2y",
              "5y",
              "10y",
              "max"
            ],
            "type": "string",
            "description": "Get historical prices (one row per candle) for this period up to now. 'No history' saves only quote rows. Intraday limits: 1 minute up to 5 days; 2–90 minutes up to 1 month; 1 hour and 4 hours up to 2 years. Ignored when History start date is set.",
            "default": "none"
          },
          "historyInterval": {
            "title": "History interval (candle length)",
            "enum": [
              "1d",
              "1wk",
              "1mo",
              "3mo",
              "5d",
              "1h",
              "4h",
              "90m",
              "30m",
              "15m",
              "5m",
              "2m",
              "1m"
            ],
            "type": "string",
            "description": "Length of one candle. Daily and coarser intervals work with every range, including full history. Intraday limits: 1 minute — last 30 days, at most 8 days per run; 2–90 minutes — last 60 days; 1 hour and 4 hours — last 730 days. Other combinations stop with an input error before any request.",
            "default": "1d"
          },
          "historyStartDate": {
            "title": "History start date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Custom period start (YYYY-MM-DD, UTC). Turns history on and overrides History range. Without an end date the period runs to now. Must respect the History interval limits."
          },
          "historyEndDate": {
            "title": "History end date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Custom period end (YYYY-MM-DD, UTC), this day included. Empty = up to now. Without a start date it means from the first trading day up to this date (turns history on). Must not be before the start date."
          },
          "includeDividendsAndSplits": {
            "title": "Dividend and split rows",
            "type": "boolean",
            "description": "With history on, also save one row per dividend (amount, ex-date) and per stock split (ratio) inside the history period. Ignored without history.",
            "default": true
          },
          "includePrePostMarket": {
            "title": "Pre- and post-market candles",
            "type": "boolean",
            "description": "Add pre-market and after-hours candles to intraday history (intervals up to 4 hours). No effect on daily and coarser intervals.",
            "default": false
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many saved rows in total (quote, candle, dividend and split rows together). Empty = no limit."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy works for Yahoo Finance. Prefer US or no country; EU exit IPs may get a cookie-consent page.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}