{
  "openapi": "3.0.1",
  "info": {
    "title": "Yahoo Finance API: Stocks, Fundamentals, Technicals & Alerts",
    "description": "Yahoo Finance quotes for stocks, ETFs, crypto and indices with flat P/E, yields, margins, analyst upside and earnings dates; RSI, moving averages, returns and drawdown; screen by your own filters; and alerts on moves, new highs and analyst actions. History and financials too. No API key.",
    "version": "0.1",
    "x-build-id": "GOxCpKBHk29OqqbbZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pikoulas~yahoo-finance/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pikoulas-yahoo-finance",
        "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/pikoulas~yahoo-finance/runs": {
      "post": {
        "operationId": "runs-sync-pikoulas-yahoo-finance",
        "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/pikoulas~yahoo-finance/run-sync": {
      "post": {
        "operationId": "run-sync-pikoulas-yahoo-finance",
        "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": {
          "symbols": {
            "title": "Symbols",
            "type": "array",
            "description": "Yahoo Finance symbols: AAPL for a stock, VOD.L or 7203.T abroad, SPY for an ETF, BTC-USD for crypto, ^GSPC for an index, EURUSD=X for a currency.",
            "items": {
              "type": "string"
            }
          },
          "companyNames": {
            "title": "Company names",
            "type": "array",
            "description": "Names to look up when you don't have the symbol: each gives Yahoo's first match.",
            "items": {
              "type": "string"
            }
          },
          "screeners": {
            "title": "Screeners",
            "type": "array",
            "description": "Yahoo's ready-made lists: every stock on them, as with a symbol.",
            "items": {
              "type": "string",
              "enum": [
                "day_gainers",
                "day_losers",
                "most_actives",
                "most_shorted_stocks",
                "small_cap_gainers",
                "undervalued_large_caps",
                "undervalued_growth_stocks",
                "growth_technology_stocks",
                "aggressive_small_caps",
                "portfolio_anchors"
              ],
              "enumTitles": [
                "Day gainers",
                "Day losers",
                "Most active",
                "Most shorted",
                "Small-cap gainers",
                "Undervalued large caps",
                "Undervalued growth",
                "Growth technology",
                "Aggressive small caps",
                "Portfolio anchors"
              ]
            }
          },
          "maxPerScreener": {
            "title": "Max stocks per screener",
            "minimum": 1,
            "type": "integer",
            "description": "Stocks from each screener.",
            "default": 100
          },
          "includeTechnicals": {
            "title": "Include technicals",
            "type": "boolean",
            "description": "Returns over a week to a year and year to date, 50- and 200-day averages and their crossings, 30-day volatility, the year's largest drawdown and the 14-day RSI, from a year of daily prices. No extra charge.",
            "default": false
          },
          "minMarketCap": {
            "title": "Filter: min market cap",
            "minimum": 0,
            "type": "integer",
            "description": "Leaves out (and doesn't charge) symbols below it, in their own currency."
          },
          "maxPeRatio": {
            "title": "Filter: max P/E",
            "minimum": 0,
            "type": "number",
            "description": "Leaves out symbols with a higher trailing P/E, or none."
          },
          "minDividendYield": {
            "title": "Filter: min dividend yield (%)",
            "minimum": 0,
            "type": "number",
            "description": "Leaves out symbols yielding less, in percent: 3 for 3%."
          },
          "minTargetUpside": {
            "title": "Filter: min analyst upside (%)",
            "minimum": -100,
            "type": "number",
            "description": "Leaves out symbols whose mean analyst target is less than this far above the price, in percent."
          },
          "includeHistory": {
            "title": "Include price history",
            "type": "boolean",
            "description": "Daily, weekly or monthly prices, with dividends and splits, in each result. No extra charge.",
            "default": false
          },
          "historyRange": {
            "title": "History range",
            "enum": [
              "1mo",
              "3mo",
              "6mo",
              "ytd",
              "1y",
              "2y",
              "5y",
              "10y",
              "max"
            ],
            "type": "string",
            "description": "How far back the history goes.",
            "default": "1y"
          },
          "historyInterval": {
            "title": "History interval",
            "enum": [
              "1d",
              "1wk",
              "1mo"
            ],
            "type": "string",
            "description": "One row of the history per day, week or month.",
            "default": "1d"
          },
          "includeFinancials": {
            "title": "Include financial statements",
            "type": "boolean",
            "description": "Annual and quarterly income statement, balance sheet and cash flow lines in each result. No extra charge.",
            "default": false
          },
          "trackChanges": {
            "title": "Alerts: compare with the last run",
            "type": "boolean",
            "description": "Adds each symbol's price at the last run under the same memory, its change since, and the analyst upgrades, downgrades and target changes since; moves of at least the alert move become signals. Schedule it daily for a watchlist.",
            "default": false
          },
          "memory": {
            "title": "Memory name",
            "type": "string",
            "description": "Keep one per watchlist. A symbol is forgotten after 90 days unseen.",
            "default": "default"
          },
          "alertMovePercent": {
            "title": "Alert move (%)",
            "minimum": 0,
            "type": "integer",
            "description": "A price change since the last run at least this big, up or down, is a signal.",
            "default": 5
          },
          "earningsWithinDays": {
            "title": "Earnings alert (days)",
            "minimum": 0,
            "type": "integer",
            "description": "Earnings this many days away or fewer are a signal.",
            "default": 7
          },
          "onlyAlerts": {
            "title": "Only symbols with a signal",
            "type": "boolean",
            "description": "Gives only symbols with a signal (a 52-week high or low, earnings soon, RSI over 70 or under 30 with technicals, a 50/200-day cross, and with alerts a move or an analyst action); the rest aren't charged.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}