{
  "openapi": "3.0.1",
  "info": {
    "title": "Yahoo Finance Scraper | Stock Prices & Financial Data",
    "description": "Extract Yahoo Finance stock prices, historical market data, financial statements, options, analyst estimates, news and screeners. Structured JSON via API.",
    "version": "0.1",
    "x-build-id": "AaPcZZN8c5oAOQk1J"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/apinator~yahoo-finance-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-apinator-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/apinator~yahoo-finance-scraper/runs": {
      "post": {
        "operationId": "runs-sync-apinator-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/apinator~yahoo-finance-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-apinator-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": [
          "operation"
        ],
        "properties": {
          "operation": {
            "title": "Operation",
            "enum": [
              "quotes",
              "historical",
              "fundamentals",
              "analysis",
              "options",
              "news",
              "search",
              "screener",
              "holders",
              "insiders",
              "calendar",
              "profile",
              "transcripts"
            ],
            "type": "string",
            "description": "Select the data to retrieve."
          },
          "ticker": {
            "title": "Ticker",
            "type": "string",
            "description": "For quotes, historical, fundamentals, analysis, options, holders, insiders, calendar and profile. Use ticker or tickers. Example: AAPL."
          },
          "tickers": {
            "title": "Tickers",
            "maxItems": 1000,
            "type": "array",
            "description": "Up to 1000 ticker entries for ticker-based operations. Use instead of ticker; duplicates are removed. Each batch result includes requestedTicker, and errors include error.",
            "items": {
              "type": "string"
            }
          },
          "concurrency": {
            "title": "Concurrent tickers",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum number of tickers processed at once in a batch.",
            "default": 3
          },
          "outputMode": {
            "title": "Output mode",
            "enum": [
              "flat",
              "grouped"
            ],
            "type": "string",
            "description": "For tickers batches, flat writes one dataset item per ticker; grouped writes objects containing a results array. Grouped requires tickers.",
            "default": "flat"
          },
          "groupSize": {
            "title": "Results per group",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum results per dataset item in grouped mode. Large groups may exceed dataset item size limits.",
            "default": 100
          },
          "query": {
            "title": "Query",
            "type": "string",
            "description": "Required for news and search. Example: Apple."
          },
          "url": {
            "title": "Transcript URL",
            "type": "string",
            "description": "Required for transcripts. Enter the full URL of a supported earnings call transcript."
          },
          "expiration": {
            "title": "Expiration",
            "type": "string",
            "description": "Optional options expiration date (YYYY-MM-DD)."
          },
          "interval": {
            "title": "Interval",
            "enum": [
              "1m",
              "2m",
              "5m",
              "15m",
              "30m",
              "60m",
              "90m",
              "1h",
              "1d",
              "5d",
              "1wk",
              "1mo",
              "3mo"
            ],
            "type": "string",
            "description": "Historical data interval.",
            "default": "1d"
          },
          "period": {
            "title": "Period",
            "enum": [
              "1d",
              "5d",
              "1mo",
              "3mo",
              "6mo",
              "1y",
              "2y",
              "5y",
              "10y",
              "ytd",
              "max"
            ],
            "type": "string",
            "description": "Historical data range.",
            "default": "5d"
          },
          "includePrePost": {
            "title": "Include pre-market and after-hours",
            "type": "boolean",
            "description": "Include trading outside regular hours in historical data.",
            "default": false
          },
          "type": {
            "title": "Fundamentals type",
            "enum": [
              "financials",
              "balance-sheet",
              "cash-flow"
            ],
            "type": "string",
            "description": "Used by fundamentals. Select income statement, balance sheet or cash flow.",
            "default": "financials"
          },
          "limit": {
            "title": "Limit",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of results for news or search.",
            "default": 10
          },
          "screenerId": {
            "title": "Screener",
            "enum": [
              "day_gainers",
              "day_losers",
              "most_actives",
              "growth_technology_stocks",
              "undervalued_growth_stocks",
              "undervalued_large_caps",
              "aggressive_small_caps",
              "small_cap_gainers",
              "solid_large_growth_funds",
              "top_mutual_funds",
              "conservative_foreign_funds",
              "high_yield_bond",
              "most_shorted_stocks",
              "all_cryptocurrencies_us",
              "day_gainers_cryptocurrencies",
              "day_losers_cryptocurrencies",
              "most_actives_cryptocurrencies",
              "portfolio_anchors",
              "solid_midcap_growth_funds",
              "day_gainers_mutual_funds"
            ],
            "type": "string",
            "description": "Used by screener. Select a predefined Yahoo Finance screener.",
            "default": "day_gainers"
          },
          "count": {
            "title": "Count",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "Maximum number of results for screener.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}