{
  "openapi": "3.0.1",
  "info": {
    "title": "TradingView Stock Screener & Market Scanner",
    "description": "Screen stocks with TradingView data across 68 markets using ready screens like oversold RSI, golden cross, unusual volume and 52 week highs. Each stock has price, market cap, P/E, RSI, MACD, analyst consensus, price target upside and next earnings date, with daily alerts.",
    "version": "1.0",
    "x-build-id": "6kuOj6riUE7wN8Qwu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datamole~tradingview-stock-screener/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datamole-tradingview-stock-screener",
        "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/datamole~tradingview-stock-screener/runs": {
      "post": {
        "operationId": "runs-sync-datamole-tradingview-stock-screener",
        "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/datamole~tradingview-stock-screener/run-sync": {
      "post": {
        "operationId": "run-sync-datamole-tradingview-stock-screener",
        "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": {
          "screens": {
            "title": "Ready-made screens",
            "type": "array",
            "description": "Pick one or more classic screens. Each one adds its own conditions on top of your filters, and every stock shows which screens it matched in matchedScreens. Leave empty to screen with your filters only.",
            "items": {
              "type": "string",
              "enum": [
                "top-gainers",
                "top-losers",
                "most-active",
                "unusual-volume",
                "gap-up",
                "gap-down",
                "new-52-week-high",
                "new-52-week-low",
                "oversold-rsi",
                "overbought-rsi",
                "golden-cross",
                "death-cross",
                "macd-bullish-cross",
                "strong-uptrend",
                "technical-strong-buy",
                "analyst-strong-buy",
                "high-dividend",
                "low-pe-growth",
                "earnings-this-week"
              ],
              "enumTitles": [
                "Top gainers",
                "Top losers",
                "Most traded (dollar volume)",
                "Unusual volume (2x the 10-day average)",
                "Gap up (3% or more)",
                "Gap down (3% or more)",
                "At a 52-week high",
                "At a 52-week low",
                "Oversold (RSI under 30)",
                "Overbought (RSI over 70)",
                "Golden cross today (SMA 50 crosses above SMA 200)",
                "Death cross today (SMA 50 crosses below SMA 200)",
                "MACD bullish cross today",
                "Strong uptrend (price over SMA 50 over SMA 200)",
                "Technical rating Strong Buy",
                "Analyst consensus Strong Buy (5+ analysts)",
                "High dividend (yield 4% or more)",
                "Low P/E with growing EPS (P/E under 15)",
                "Reports earnings in the next 7 days"
              ]
            }
          },
          "markets": {
            "title": "Markets",
            "type": "array",
            "description": "Stock markets to scan. United States by default. Ignored when you pick an index or a watchlist.",
            "items": {
              "type": "string",
              "enum": [
                "america",
                "argentina",
                "australia",
                "austria",
                "bahrain",
                "bangladesh",
                "belgium",
                "brazil",
                "canada",
                "chile",
                "china",
                "colombia",
                "cyprus",
                "czech",
                "denmark",
                "egypt",
                "estonia",
                "finland",
                "france",
                "germany",
                "greece",
                "hongkong",
                "hungary",
                "iceland",
                "india",
                "indonesia",
                "ireland",
                "israel",
                "italy",
                "japan",
                "kenya",
                "korea",
                "ksa",
                "kuwait",
                "latvia",
                "lithuania",
                "luxembourg",
                "malaysia",
                "mexico",
                "morocco",
                "netherlands",
                "newzealand",
                "nigeria",
                "norway",
                "pakistan",
                "peru",
                "philippines",
                "poland",
                "portugal",
                "qatar",
                "romania",
                "russia",
                "serbia",
                "singapore",
                "slovakia",
                "rsa",
                "spain",
                "srilanka",
                "sweden",
                "switzerland",
                "taiwan",
                "thailand",
                "tunisia",
                "turkey",
                "uae",
                "uk",
                "venezuela",
                "vietnam"
              ],
              "enumTitles": [
                "United States",
                "Argentina",
                "Australia",
                "Austria",
                "Bahrain",
                "Bangladesh",
                "Belgium",
                "Brazil",
                "Canada",
                "Chile",
                "China",
                "Colombia",
                "Cyprus",
                "Czech Republic",
                "Denmark",
                "Egypt",
                "Estonia",
                "Finland",
                "France",
                "Germany",
                "Greece",
                "Hong Kong",
                "Hungary",
                "Iceland",
                "India",
                "Indonesia",
                "Ireland",
                "Israel",
                "Italy",
                "Japan",
                "Kenya",
                "South Korea",
                "Saudi Arabia",
                "Kuwait",
                "Latvia",
                "Lithuania",
                "Luxembourg",
                "Malaysia",
                "Mexico",
                "Morocco",
                "Netherlands",
                "New Zealand",
                "Nigeria",
                "Norway",
                "Pakistan",
                "Peru",
                "Philippines",
                "Poland",
                "Portugal",
                "Qatar",
                "Romania",
                "Russia",
                "Serbia",
                "Singapore",
                "Slovakia",
                "South Africa",
                "Spain",
                "Sri Lanka",
                "Sweden",
                "Switzerland",
                "Taiwan",
                "Thailand",
                "Tunisia",
                "Turkey",
                "United Arab Emirates",
                "United Kingdom",
                "Venezuela",
                "Vietnam"
              ]
            },
            "default": [
              "america"
            ]
          },
          "index": {
            "title": "Index",
            "enum": [
              "sp500",
              "nasdaq100",
              "dowjones",
              "russell2000",
              "ftse100",
              "dax40",
              "cac40",
              "ibex35",
              "aex",
              "smi",
              "nikkei225",
              "hangseng",
              "kospi",
              "nifty50",
              "asx200",
              "ibovespa",
              "ipc"
            ],
            "type": "string",
            "description": "Screen only the members of an index, like the S&P 500 or the IBEX 35. Replaces the markets above."
          },
          "symbols": {
            "title": "Watchlist",
            "type": "array",
            "description": "Your own tickers, like AAPL, MSFT or NASDAQ:NVDA. Use EXCHANGE:TICKER for stocks outside the chosen markets (BME:SAN, LSE:BP., TSE:7203). Screens and filters still apply, so you can ask \"which of my stocks are oversold today\".",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max stocks",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of stocks to return. Up to 10,000 per market and screen.",
            "default": 100
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "market-cap",
              "change-desc",
              "change-asc",
              "dollar-volume",
              "volume",
              "relative-volume",
              "rsi-asc",
              "rsi-desc",
              "pe-asc",
              "dividend-yield",
              "perf-ytd",
              "perf-year",
              "earnings-date"
            ],
            "type": "string",
            "description": "Order of the results. By default, the order of the only screen you picked (for example biggest gainers first), or market cap."
          },
          "assetTypes": {
            "title": "Asset types",
            "type": "array",
            "description": "Common stocks by default. Add ETFs, ADRs and other depositary receipts, or preferred shares.",
            "items": {
              "type": "string",
              "enum": [
                "common-stock",
                "etf",
                "depositary-receipt",
                "preferred-stock"
              ],
              "enumTitles": [
                "Common stocks",
                "ETFs",
                "Depositary receipts (ADRs)",
                "Preferred stocks"
              ]
            }
          },
          "exchanges": {
            "title": "US exchanges",
            "type": "array",
            "description": "For the United States market only. NASDAQ, NYSE, NYSE American and Cboe by default; add OTC to include over-the-counter stocks. Not used with an index or a watchlist.",
            "items": {
              "type": "string",
              "enum": [
                "NASDAQ",
                "NYSE",
                "AMEX",
                "CBOE",
                "OTC"
              ],
              "enumTitles": [
                "NASDAQ",
                "NYSE",
                "NYSE American (AMEX)",
                "Cboe",
                "OTC"
              ]
            }
          },
          "sectors": {
            "title": "Sectors",
            "type": "array",
            "description": "Keep only these sectors (TradingView sector names).",
            "items": {
              "type": "string",
              "enum": [
                "Commercial Services",
                "Communications",
                "Consumer Durables",
                "Consumer Non-Durables",
                "Consumer Services",
                "Distribution Services",
                "Electronic Technology",
                "Energy Minerals",
                "Finance",
                "Government",
                "Health Services",
                "Health Technology",
                "Industrial Services",
                "Miscellaneous",
                "Non-Energy Minerals",
                "Process Industries",
                "Producer Manufacturing",
                "Retail Trade",
                "Technology Services",
                "Transportation",
                "Utilities"
              ]
            }
          },
          "minMarketCap": {
            "title": "Min market cap",
            "minimum": 0,
            "type": "integer",
            "description": "In the company's own currency: USD for US stocks, EUR for Spain, GBP for the UK, JPY for Japan. 2000000000 = 2 billion."
          },
          "maxMarketCap": {
            "title": "Max market cap",
            "minimum": 0,
            "type": "integer",
            "description": "In the company's own currency."
          },
          "minPrice": {
            "title": "Min price",
            "type": "string",
            "description": "Last price, in the quote currency. Decimals allowed, like 0.5 or 12.75."
          },
          "maxPrice": {
            "title": "Max price",
            "type": "string",
            "description": "Last price, in the quote currency."
          },
          "minChangePercent": {
            "title": "Min change % today",
            "type": "string",
            "description": "For example 5 for stocks up 5% or more today, or -100 to leave it open."
          },
          "maxChangePercent": {
            "title": "Max change % today",
            "type": "string",
            "description": "For example -5 for stocks down 5% or more today."
          },
          "minVolume": {
            "title": "Min volume today",
            "minimum": 0,
            "type": "integer",
            "description": "Shares traded today."
          },
          "minAvgVolume": {
            "title": "Min average volume (10 days)",
            "minimum": 0,
            "type": "integer",
            "description": "Average shares traded per day over the last 10 days. Useful to skip illiquid stocks."
          },
          "minRelativeVolume": {
            "title": "Min relative volume",
            "type": "string",
            "description": "Today's volume against the 10-day average. 2 = twice the usual volume."
          },
          "minRsi": {
            "title": "Min RSI (14)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Relative Strength Index, from 0 to 100."
          },
          "maxRsi": {
            "title": "Max RSI (14)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Relative Strength Index, from 0 to 100. Under 30 is usually read as oversold."
          },
          "minPe": {
            "title": "Min P/E",
            "type": "string",
            "description": "Price to earnings, trailing twelve months. Use 0.01 to drop loss-making companies."
          },
          "maxPe": {
            "title": "Max P/E",
            "type": "string",
            "description": "Price to earnings, trailing twelve months."
          },
          "minDividendYield": {
            "title": "Min dividend yield %",
            "type": "string",
            "description": "Current dividend yield in percent, like 3.5."
          },
          "analystRating": {
            "title": "Analyst consensus",
            "enum": [
              "strong-buy",
              "buy",
              "hold"
            ],
            "type": "string",
            "description": "Keep stocks whose Wall Street analyst consensus is at least this good."
          },
          "technicalRating": {
            "title": "Technical rating",
            "enum": [
              "strong-buy",
              "buy",
              "neutral"
            ],
            "type": "string",
            "description": "TradingView's technical rating, built from moving averages and oscillators."
          },
          "aboveSma200": {
            "title": "Only above the 200-day moving average",
            "type": "boolean",
            "description": "Keep only stocks trading above their 200-day simple moving average (long-term uptrend).",
            "default": false
          },
          "earningsWithinDays": {
            "title": "Reports earnings within (days)",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "Keep only companies with their next earnings report in the next N days."
          },
          "monitorMode": {
            "title": "Monitor mode",
            "type": "boolean",
            "description": "Return only the stocks that entered the screen since the last run with the same settings. Schedule it daily to get alerts like \"new stocks at a 52-week high\" or \"S&P 500 stocks that just turned oversold\".",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional. Name this monitor to keep its memory even if you later change the limit or the order."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}