{
  "openapi": "3.0.1",
  "info": {
    "title": "Yahoo Finance Scraper — Stock Quotes & Financials",
    "description": "Scrape Yahoo Finance into clean datasets — live stock, ETF, index, currency and crypto quotes, plus company profiles, analyst targets, financials and price history. Overview mode batches hundreds of tickers; Detail mode adds sector, employees, revenue and more. Failed lookups never charged.",
    "version": "1.0",
    "x-build-id": "eaMGwdmJTOXUjonI2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~yahoo-finance-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-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/sian.agency~yahoo-finance-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-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/sian.agency~yahoo-finance-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-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": {
          "mode": {
            "title": "🧭 Data Mode",
            "enum": [
              "overview",
              "detail"
            ],
            "type": "string",
            "description": "🧭 **CHOOSE WHAT YOU GET:**\n\n- **📊 Overview (cheap & fast):** Live market data per ticker — price, change %, market cap, 52-week range, volume, P/E, dividend yield, EPS, book value. Hundreds of tickers batched in one run.\n- **🏢 Detail (full profile):** Everything in Overview **plus** sector, industry, HQ location, website, employees, business description, analyst target price, recommendation, profit margins, revenue, and price-history coverage.\n\n💡 **TIP:** Start with Overview for screening, switch to Detail for deep research.",
            "default": "overview"
          },
          "symbol": {
            "title": "🔎 Single Ticker Symbol",
            "type": "string",
            "description": "🔎 **SINGLE TICKER:** One ticker symbol to look up.\n\n✅ **SUPPORTED:**\n- Stocks: `AAPL`, `MSFT`, `TSLA`\n- ETFs: `SPY`, `QQQ`, `VTI`\n- Indices: `^GSPC` (S&P 500), `^DJI`, `^IXIC`\n- Currencies: `EURUSD=X`, `GBPUSD=X`\n- Crypto: `BTC-USD`, `ETH-USD`\n- A pasted `https://finance.yahoo.com/quote/AAPL/` URL also works\n\n💡 **TIP:** Use the bulk fields below for many tickers at once.",
            "default": ""
          },
          "symbols": {
            "title": "🚀 Multiple Ticker Symbols",
            "uniqueItems": true,
            "type": "array",
            "description": "🚀 **BULK TICKERS:** A list of ticker symbols to look up in one run.\n\n📊 **TIER-BASED LIMITS:**\n- **FREE users:** Up to 5 symbols per run\n- **PAID users:** Unlimited symbols\n\n💡 **TIP:** Click \"Bulk edit\" to paste many tickers, or use the paste-list field below.\n\n✅ Pasted `finance.yahoo.com/quote/<TICKER>` URLs are accepted too.",
            "items": {
              "type": "string"
            }
          },
          "bulkSymbols": {
            "title": "📋 Paste Tickers (comma / space / newline)",
            "type": "string",
            "description": "📋 **PASTE-LIST:** Paste many tickers separated by commas, spaces, or new lines — handy for copy-paste from a spreadsheet.\n\nExample:\n```\nAAPL, MSFT, GOOGL\nTSLA NVDA AMZN\n```\n\n📊 FREE tier caps at 5 symbols per run; PAID is unlimited.",
            "default": ""
          },
          "query": {
            "title": "🔍 Search Query (find tickers)",
            "type": "string",
            "description": "🔍 **SEARCH MODE:** Type a company name or theme and the actor resolves matching tickers automatically, then fetches their data.\n\nExamples: `apple`, `electric vehicle`, `semiconductors`, `renewable energy`.\n\n💡 Used only when no explicit symbols are provided above.",
            "default": ""
          },
          "searchLimit": {
            "title": "🔢 Search Result Limit",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "🔢 How many tickers the search query should resolve (1–50). Only applies when a Search Query is used.",
            "default": 10
          },
          "includeChart": {
            "title": "📈 Include Price History (Detail mode)",
            "type": "boolean",
            "description": "📈 **PRICE HISTORY:** When ON (default), Detail mode also fetches the price-history coverage for each ticker (number of samples + first/last timestamp) over the window below.",
            "default": true
          },
          "chartRange": {
            "title": "🗓️ Price History Window",
            "enum": [
              "1d",
              "5d",
              "1mo",
              "3mo",
              "6mo",
              "1y",
              "2y",
              "5y",
              "10y",
              "ytd",
              "max"
            ],
            "type": "string",
            "description": "🗓️ History window for the price-history series in Detail mode.",
            "default": "1mo"
          },
          "chartInterval": {
            "title": "⏱️ Price History Granularity",
            "enum": [
              "1m",
              "5m",
              "15m",
              "30m",
              "60m",
              "1h",
              "1d",
              "5d",
              "1wk",
              "1mo",
              "3mo"
            ],
            "type": "string",
            "description": "⏱️ Sampling granularity for the price-history series in Detail mode.",
            "default": "1d"
          },
          "proxyCountry": {
            "title": "🌍 Proxy Country (optional)",
            "type": "string",
            "description": "🌍 Optional 2-letter country code for proxy rotation (e.g. `US`, `GB`, `DE`). Leave default unless you need a specific region — Yahoo data is served globally.",
            "default": "US"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}