{
  "openapi": "3.0.1",
  "info": {
    "title": "TradingView Screener Scraper | Stocks, Crypto, Forex",
    "description": "Run the TradingView screener on 25 markets: US, Europe, Poland and Asia stocks, crypto, forex, futures and CFDs. Filter by price, market cap, P/E, dividend yield, RSI and technical rating, pick any column, look up tickers, and monitor which symbols enter your screen.",
    "version": "1.0",
    "x-build-id": "YAqVKnlXsnfunCRKy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/trev0n~tradingview-screener-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-trev0n-tradingview-screener-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/trev0n~tradingview-screener-scraper/runs": {
      "post": {
        "operationId": "runs-sync-trev0n-tradingview-screener-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/trev0n~tradingview-screener-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-trev0n-tradingview-screener-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": {
          "markets": {
            "title": "🌍 Markets",
            "type": "array",
            "description": "Markets to screen. Each market is scanned separately and its rows are tagged with `market`. \"Everything\" covers every exchange and asset type at once (290,000+ rows; a full run needs 4 GB of memory).",
            "items": {
              "type": "string",
              "enum": [
                "america",
                "canada",
                "brazil",
                "uk",
                "germany",
                "france",
                "italy",
                "spain",
                "netherlands",
                "switzerland",
                "sweden",
                "poland",
                "turkey",
                "india",
                "japan",
                "china",
                "hongkong",
                "korea",
                "australia",
                "global",
                "coin",
                "crypto",
                "forex",
                "futures",
                "cfd"
              ],
              "enumTitles": [
                "USA",
                "Canada",
                "Brazil",
                "United Kingdom",
                "Germany",
                "France",
                "Italy",
                "Spain",
                "Netherlands",
                "Switzerland",
                "Sweden",
                "Poland",
                "Turkey",
                "India",
                "Japan",
                "China (mainland)",
                "Hong Kong",
                "South Korea",
                "Australia",
                "Everything (all exchanges, 290k+ instruments)",
                "Crypto coins (ranked by market cap)",
                "Crypto pairs (exchanges)",
                "Forex",
                "Futures",
                "CFDs and indices"
              ]
            },
            "default": [
              "america"
            ]
          },
          "tickers": {
            "title": "📋 Tickers (lookup mode)",
            "type": "array",
            "description": "Exact instruments instead of a screen, as EXCHANGE:SYMBOL (NASDAQ:AAPL, GPW:PKN, BINANCE:BTCUSDT, FX_IDC:EURPLN) or TradingView symbol URLs. When set, markets and filters are ignored.",
            "items": {
              "type": "string"
            }
          },
          "columnPreset": {
            "title": "🧩 Column set",
            "enum": [
              "overview",
              "performance",
              "technicals",
              "valuation",
              "dividends",
              "fundamentals"
            ],
            "type": "string",
            "description": "Which columns to return. Presets adapt to the asset class (crypto coins get rank and supply, bonds get coupon and yield). Valuation, dividends and fundamentals apply to stocks.",
            "default": "overview"
          },
          "extraColumns": {
            "title": "➕ Extra columns",
            "type": "array",
            "description": "Any additional TradingView screener field names, e.g. `Perf.W`, `RSI`, `EMA200`, `price_book_fq`, `return_on_equity_fq`. Unknown names come back empty and are flagged in the log.",
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "💲 Min price",
            "type": "number",
            "description": "Last price at or above this value."
          },
          "maxPrice": {
            "title": "💲 Max price",
            "type": "number",
            "description": "Last price at or below this value."
          },
          "minChangePercent": {
            "title": "📈 Min daily change %",
            "type": "number",
            "description": "Daily change in percent at or above this value (e.g. 5 for gainers above 5%)."
          },
          "maxChangePercent": {
            "title": "📉 Max daily change %",
            "type": "number",
            "description": "Daily change in percent at or below this value (e.g. -5 for losers)."
          },
          "minVolume": {
            "title": "📊 Min volume",
            "minimum": 0,
            "type": "number",
            "description": "Daily volume at or above this value (24h USD volume for crypto coins)."
          },
          "maxVolume": {
            "title": "📊 Max volume",
            "minimum": 0,
            "type": "number",
            "description": "Daily volume at or below this value."
          },
          "minMarketCap": {
            "title": "🏦 Min market cap",
            "minimum": 0,
            "type": "number",
            "description": "Market capitalisation at or above this value, in the instrument currency (stocks and crypto)."
          },
          "maxMarketCap": {
            "title": "🏦 Max market cap",
            "minimum": 0,
            "type": "number",
            "description": "Market capitalisation at or below this value (stocks and crypto)."
          },
          "minPeRatio": {
            "title": "🧮 Min P/E",
            "type": "number",
            "description": "Price to earnings (TTM) at or above this value (stocks)."
          },
          "maxPeRatio": {
            "title": "🧮 Max P/E",
            "type": "number",
            "description": "Price to earnings (TTM) at or below this value (stocks)."
          },
          "minDividendYield": {
            "title": "💰 Min dividend yield %",
            "minimum": 0,
            "type": "number",
            "description": "Current dividend yield in percent at or above this value (stocks)."
          },
          "maxDividendYield": {
            "title": "💰 Max dividend yield %",
            "minimum": 0,
            "type": "number",
            "description": "Current dividend yield in percent at or below this value (stocks)."
          },
          "minRsi": {
            "title": "📐 Min RSI (14)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "RSI(14) at or above this value, 0 to 100."
          },
          "maxRsi": {
            "title": "📐 Max RSI (14)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "RSI(14) at or below this value, e.g. 30 for oversold."
          },
          "technicalRatings": {
            "title": "🚦 Technical rating",
            "type": "array",
            "description": "TradingView's summary technical rating. Pick one or more adjacent buckets.",
            "items": {
              "type": "string",
              "enum": [
                "strong_buy",
                "buy",
                "neutral",
                "sell",
                "strong_sell"
              ],
              "enumTitles": [
                "Strong buy",
                "Buy",
                "Neutral",
                "Sell",
                "Strong sell"
              ]
            }
          },
          "sectors": {
            "title": "🏭 Sectors",
            "type": "array",
            "description": "Exact TradingView sector names, e.g. `Technology Services`, `Finance`, `Health Technology`, `Energy Minerals`. For forex: `Major`, `Minor`, `Exotic`.",
            "items": {
              "type": "string"
            }
          },
          "exchanges": {
            "title": "🏛️ Exchanges",
            "type": "array",
            "description": "Exchange codes, e.g. `NASDAQ`, `NYSE`, `GPW`, `XETR`, `LSE`, `BINANCE`, `COINBASE`.",
            "items": {
              "type": "string"
            }
          },
          "instrumentTypes": {
            "title": "🏷️ Instrument types (stocks)",
            "type": "array",
            "description": "Limit stock markets to these types. Empty = everything listed (shares, ETFs, depositary receipts, ...).",
            "items": {
              "type": "string",
              "enum": [
                "stock",
                "fund",
                "dr",
                "structured"
              ],
              "enumTitles": [
                "Shares",
                "Funds and ETFs",
                "Depositary receipts",
                "Structured products"
              ]
            }
          },
          "primaryListingOnly": {
            "title": "🎯 Primary listings only (stocks)",
            "type": "boolean",
            "description": "Skip secondary listings of the same company on other exchanges (Germany alone lists 40,000+ foreign shares). Ignored for non-stock markets.",
            "default": true
          },
          "customFilters": {
            "title": "🧪 Advanced filters (JSON)",
            "type": "array",
            "description": "Raw TradingView screener filters, e.g. `[{\"left\":\"EMA50\",\"operation\":\"greater\",\"right\":\"EMA200\"}, {\"left\":\"Perf.Y\",\"operation\":\"greater\",\"right\":20}]`. Operations: greater, egreater, less, eless, equal, nequal, in_range, not_in_range, crosses_above, crosses_below, match, empty, nempty."
          },
          "sortBy": {
            "title": "↕️ Sort by",
            "type": "string",
            "description": "TradingView field to sort by, e.g. `market_cap_basic`, `change`, `volume`, `Perf.Y`. Empty = sensible default per asset class (market cap for stocks, rank for coins)."
          },
          "sortOrder": {
            "title": "↕️ Sort order",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "Descending or ascending. Empty = default for the sort field."
          },
          "maxResults": {
            "title": "🔢 Max results (total)",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many rows across all markets. 0 = everything that matches. Ignored in monitoring mode, which always compares the full screen.",
            "default": 100
          },
          "maxResultsPerMarket": {
            "title": "🔢 Max results per market",
            "minimum": 0,
            "type": "integer",
            "description": "Cap per market, useful for a \"top 50 in each country\" run. 0 = no per-market cap.",
            "default": 0
          },
          "excludeEmptyFields": {
            "title": "🧹 Drop empty fields",
            "type": "boolean",
            "description": "Remove fields that are empty for a given row (e.g. P/E for a loss-making company).",
            "default": false
          },
          "monitorMode": {
            "title": "🔔 Monitoring mode",
            "type": "boolean",
            "description": "Remember which symbols matched last time and output only the ones that ENTERED the screen. The full screen is always compared (result limits are ignored). Schedule the actor to get a daily list of new breakouts, new oversold stocks or new dividend payers.",
            "default": false
          },
          "stateKey": {
            "title": "🗝️ Monitor name",
            "type": "string",
            "description": "Name of the saved screen state. Leave empty to derive it from markets and filters; set it to keep history while you tweak the screen."
          },
          "emitExited": {
            "title": "🚪 Also output symbols that left the screen",
            "type": "boolean",
            "description": "Add a row with status EXITED for every symbol that matched last time but not now.",
            "default": false
          },
          "emitUnchanged": {
            "title": "♻️ Also output symbols still in the screen",
            "type": "boolean",
            "description": "Output the full screen every run, each row tagged ENTERED or STILL_IN.",
            "default": false
          },
          "webhookUrl": {
            "title": "🌐 Webhook URL",
            "type": "string",
            "description": "POST the run results (JSON) to this URL."
          },
          "telegramBotToken": {
            "title": "✈️ Telegram bot token",
            "type": "string",
            "description": "Send a Telegram message with the symbols that entered the screen."
          },
          "telegramChatId": {
            "title": "✈️ Telegram chat ID",
            "type": "string",
            "description": "Chat or channel ID for the Telegram message."
          },
          "discordWebhookUrl": {
            "title": "🎮 Discord webhook URL",
            "type": "string",
            "description": "Post a summary to a Discord channel."
          },
          "slackWebhookUrl": {
            "title": "💬 Slack webhook URL",
            "type": "string",
            "description": "Post a summary to a Slack channel."
          },
          "notifyOnlyChanges": {
            "title": "🔕 Notify only on changes",
            "type": "boolean",
            "description": "Skip the message when nothing entered or left the screen.",
            "default": true
          },
          "notificationLimit": {
            "title": "🔢 Symbols per message",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many symbols to list in one message.",
            "default": 10
          },
          "proxyConfiguration": {
            "title": "🛡️ Proxy",
            "type": "object",
            "description": "Not needed for TradingView. Turn on only if you see repeated errors.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}