{
  "openapi": "3.0.1",
  "info": {
    "title": "Yahoo Finance Search Scraper",
    "description": "[ 1k / 1$ ] Yahoo Finance search scraper: search symbols by company, ticker, ISIN or fund across equities, ETFs, funds, indices, futures, currencies and crypto, with optional news, quote pages, analyst estimates, holders and daily price history.",
    "version": "0.1",
    "x-build-id": "OOCljzzaiKusuevWF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alpha-scraper~yahoo-finance-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alpha-scraper-yahoo-finance-search-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/alpha-scraper~yahoo-finance-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-alpha-scraper-yahoo-finance-search-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/alpha-scraper~yahoo-finance-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-alpha-scraper-yahoo-finance-search-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": {
          "queries": {
            "title": "Search Phrases (Company, Ticker, ISIN Or Fund)",
            "type": "array",
            "description": "One or more phrases as you would type them into Yahoo Finance's symbol lookup: a company name ('apple'), a ticker ('AAPL'), an ISIN, a fund name, an index, a currency pair or a crypto name. Every phrase is searched on its own with its own 'Max Results Per Search Phrase'.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max Results Per Search Phrase",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of symbols per phrase (news stories, when switched on, count toward this number). The Actor keeps loading lookup pages until this number is reached or Yahoo has no more matches; Yahoo reports at most 10,000 matches per query.",
            "default": 15
          },
          "assetType": {
            "title": "Asset Type",
            "enum": [
              "all",
              "equity",
              "etf",
              "mutualfund",
              "index",
              "future",
              "currency",
              "cryptocurrency"
            ],
            "type": "string",
            "description": "Restrict the lookup to one asset class. 'All' returns every class.",
            "default": "all"
          },
          "pageSize": {
            "title": "Results Per Lookup Request",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Number of symbols each lookup request asks for. Yahoo's own page size is 25; values from 1 to 100 are accepted and anything outside is clamped by the Actor.",
            "default": 25
          },
          "lang": {
            "title": "Language (lang)",
            "type": "string",
            "description": "Yahoo's language code sent with lookup and news requests, for example 'en-US' or 'de-DE'. Type another Yahoo locale code if you need one.",
            "default": "en-US"
          },
          "region": {
            "title": "Region",
            "type": "string",
            "description": "Yahoo's two-letter region code sent with lookup and news requests, for example 'US' or 'DE'. It tailors which listings and news Yahoo prefers. Type another region code if you need one.",
            "default": "US"
          },
          "includeNews": {
            "title": "Include News Stories",
            "type": "boolean",
            "description": "Also append the news stories matching each phrase (title, publisher, link, publish time, related tickers) after the symbol results. News is a single, unpaginated request (about 40 stories at most).",
            "default": false
          },
          "newsCount": {
            "title": "Max News Stories",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "Maximum number of news stories per phrase (Yahoo returns at most 40; higher values are clamped). Used only while 'Include News Stories' is on.",
            "default": 20
          },
          "fetchDetails": {
            "title": "Fetch Quote Pages",
            "type": "boolean",
            "description": "Open every symbol's public Yahoo Finance quote page (one extra request per symbol, at least 1.5 seconds apart, only when robots.txt allows the path) to add the quote (market cap, shares, volume, day and 52-week range, pre / post market), key statistics, summary details (dividends, averages, beta), financial data (analyst price targets, margins, cash, debt, growth), profile (sector, industry, website, employees, description or fund / crypto description), analyst recommendations, earnings, performance, fund profile with top holdings and similar symbols. Fields Yahoo does not publish for an asset class are absent. Turn off for a faster run with lookup fields only.",
            "default": true
          },
          "detailLimit": {
            "title": "Max Symbols To Enrich",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of symbols that get the detail request: the first N returned records are enriched, the rest keep their search-card fields and carry 'skipped: detailLimit=N' in 'detailStatus'. 0 means no limit. Used only while 'Fetch Quote Pages' is on.",
            "default": 0
          },
          "detailPages": {
            "title": "Extra Quote Sub-Pages",
            "type": "array",
            "description": "Additional pages opened per EQUITY symbol (one more request each, at least 1.5 seconds apart). 'Analysis' adds analyst estimates, EPS trend, revisions and the technical outlook; 'Holders' adds ownership percentages and top institutions / funds (individual insider names are left out); 'History' adds daily price candles with dividends and splits (every asset type); 'Profile' adds governance risk scores and SEC filings. Select none for the quote page only. Used only while 'Fetch Quote Pages' is on.",
            "items": {
              "type": "string",
              "enum": [
                "analysis",
                "holders",
                "history",
                "profile"
              ],
              "enumTitles": [
                "Analysis (estimates and technical outlook)",
                "Holders (ownership)",
                "Price history (daily candles)",
                "Profile (governance risk, SEC filings)"
              ]
            },
            "default": [
              "analysis",
              "holders"
            ]
          },
          "historyDays": {
            "title": "Price History Length (days)",
            "minimum": 1,
            "maximum": 400,
            "type": "integer",
            "description": "Number of the most recent daily candles kept from the price-history page (1 to 400). Used only while 'Price history' is selected under 'Extra Quote Sub-Pages'.",
            "default": 90
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}