{
  "openapi": "3.0.1",
  "info": {
    "title": "Yahoo Finance Scraper - Quotes, History, Financials",
    "description": "Scrape Yahoo Finance without login or API key: stock, ETF, crypto and forex quotes, price history with dividends and splits, company profiles, financial statements, options chains, search and screeners. Export to Excel, CSV or API.",
    "version": "0.1",
    "x-build-id": "Pa05QR2vgs6tNsArH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pshivam~yahoo-finance-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pshivam-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/pshivam~yahoo-finance-scraper/runs": {
      "post": {
        "operationId": "runs-sync-pshivam-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/pshivam~yahoo-finance-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-pshivam-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": {
          "dataType": {
            "title": "What to get",
            "enum": [
              "quotes",
              "history",
              "profile",
              "financials",
              "options",
              "search",
              "screener"
            ],
            "type": "string",
            "description": "The kind of data. Quotes, price history, profile, financial statements and options need symbols. Search needs search texts. Screener needs a list.",
            "default": "quotes"
          },
          "symbols": {
            "title": "Symbols",
            "type": "array",
            "description": "Ticker symbols such as AAPL, BRK-B, ^GSPC (index), EURUSD=X (currency pair), BTC-USD (crypto), GC=F (gold future) or 7203.T (Tokyo). Yahoo Finance links work too. One per line.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search texts",
            "type": "array",
            "description": "For 'Search': company names or words, for example tesla or gold etf. Each text returns up to 25 symbols.",
            "items": {
              "type": "string"
            }
          },
          "screeners": {
            "title": "Screener lists",
            "type": "array",
            "description": "For 'Screener lists': Yahoo's ready-made lists. Choose one or more.",
            "items": {
              "type": "string",
              "enum": [
                "day_gainers",
                "day_losers",
                "most_actives",
                "small_cap_gainers",
                "aggressive_small_caps",
                "growth_technology_stocks",
                "most_shorted_stocks",
                "undervalued_growth_stocks",
                "undervalued_large_caps",
                "conservative_foreign_funds",
                "high_yield_bond",
                "portfolio_anchors",
                "solid_large_growth_funds",
                "solid_midcap_growth_funds",
                "top_mutual_funds"
              ],
              "enumTitles": [
                "Day gainers",
                "Day losers",
                "Most active",
                "Small cap gainers",
                "Aggressive small caps",
                "Growth technology stocks",
                "Most shorted stocks",
                "Undervalued growth stocks",
                "Undervalued large caps",
                "Conservative foreign funds",
                "High yield bonds",
                "Portfolio anchors (funds)",
                "Solid large growth funds",
                "Solid mid-cap growth funds",
                "Top mutual funds"
              ]
            }
          },
          "historyRange": {
            "title": "History: how far back",
            "enum": [
              "1d",
              "5d",
              "1mo",
              "3mo",
              "6mo",
              "1y",
              "2y",
              "5y",
              "10y",
              "ytd",
              "max"
            ],
            "type": "string",
            "description": "For 'Price history': the period up to today. 'max' returns everything Yahoo has. Ignored when a start date is set.",
            "default": "1y"
          },
          "startDate": {
            "title": "History: start date",
            "type": "string",
            "description": "For 'Price history': first day as YYYY-MM-DD, for example 2024-01-01. Replaces 'how far back'."
          },
          "endDate": {
            "title": "History: end date",
            "type": "string",
            "description": "For 'Price history': last day as YYYY-MM-DD. Empty means up to today. Needs a start date."
          },
          "interval": {
            "title": "History: bar size",
            "enum": [
              "1m",
              "2m",
              "5m",
              "15m",
              "30m",
              "60m",
              "90m",
              "1h",
              "1d",
              "5d",
              "1wk",
              "1mo",
              "3mo"
            ],
            "type": "string",
            "description": "For 'Price history': the length of one bar. Minute and hour bars are only available for recent days (1m: last 7 days, others: last 60 days). Weekly and monthly bars start at the first trading day of the period.",
            "default": "1d"
          },
          "statements": {
            "title": "Financial statements",
            "type": "array",
            "description": "For 'Financial statements': which statements to read. Empty means all three.",
            "items": {
              "type": "string",
              "enum": [
                "income",
                "balance",
                "cashflow"
              ],
              "enumTitles": [
                "Income statement",
                "Balance sheet",
                "Cash flow statement"
              ]
            }
          },
          "period": {
            "title": "Financial statements: period",
            "enum": [
              "annual",
              "quarterly",
              "trailing"
            ],
            "type": "string",
            "description": "For 'Financial statements': yearly figures (about 4 years), quarterly figures (about 5 quarters) or trailing twelve months (income and cash flow only).",
            "default": "annual"
          },
          "optionExpirations": {
            "title": "Options: expiration dates",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "For 'Options chain': how many upcoming expiration dates to read per symbol, nearest first. One date has about 100-300 contracts.",
            "default": 1
          },
          "resultsPerList": {
            "title": "Screener: results per list",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "For 'Screener lists': how many entries to read from each list. Some lists are shorter.",
            "default": 25
          },
          "onlyNew": {
            "title": "Only new records",
            "type": "boolean",
            "description": "Skip records that earlier runs of this same input already returned, so you get and pay for new ones only: new price bars, new quarterly statements, new screener entries of the day. The first run works as usual and remembers what it returned, in your key-value store 'yahoo-finance-scraper-only-new'.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum records",
            "minimum": 1,
            "maximum": 10000000,
            "type": "integer",
            "description": "Stop after this many records in total. You are charged per record.",
            "default": 1000
          },
          "maxConcurrency": {
            "title": "Requests at the same time",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "How many symbols are read in parallel. Raise it for long lists.",
            "default": 3
          },
          "secondsBetweenRequests": {
            "title": "Seconds between requests",
            "minimum": 0,
            "maximum": 60,
            "type": "number",
            "description": "Pause between requests. After a slow-down answer the Actor doubles the pause and switches to Apify Proxy when it can.",
            "default": 0.1
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}