{
  "openapi": "3.0.1",
  "info": {
    "title": "TradingView Screener API: Stocks, Crypto & Forex Signals",
    "description": "Screen stocks, crypto, or forex across global markets using real-time technical indicators (RSI, MACD, SMA, ADX, Strong Buy rating) and fundamentals.",
    "version": "0.0",
    "x-build-id": "HjA2B3yHcFLzbuqaU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/topaz_anemone~tradingview-screener-mcp/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-topaz_anemone-tradingview-screener-mcp",
        "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/topaz_anemone~tradingview-screener-mcp/runs": {
      "post": {
        "operationId": "runs-sync-topaz_anemone-tradingview-screener-mcp",
        "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/topaz_anemone~tradingview-screener-mcp/run-sync": {
      "post": {
        "operationId": "run-sync-topaz_anemone-tradingview-screener-mcp",
        "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": [
          "market"
        ],
        "properties": {
          "market": {
            "title": "Market",
            "enum": [
              "america",
              "crypto",
              "forex",
              "china",
              "hongkong",
              "japan",
              "uk",
              "germany",
              "india",
              "canada",
              "australia",
              "korea",
              "taiwan",
              "brazil",
              "france",
              "singapore"
            ],
            "type": "string",
            "description": "Universe to screen. Market caps are reported in each market's own currency (see the 'currency' field).",
            "default": "america"
          },
          "preset": {
            "title": "Strategy preset",
            "enum": [
              "top_gainers",
              "top_losers",
              "unusual_volume",
              "oversold_rsi",
              "overbought_rsi",
              "new_52w_high",
              "new_52w_low",
              "golden_cross_trend",
              "macd_bullish",
              "strong_buy_momentum",
              "value_large_cap",
              "high_dividend",
              "earnings_this_week",
              "premarket_gainers",
              "custom"
            ],
            "type": "string",
            "description": "Built-in screen (can be combined with the filters below). Liquidity guards keep penny stocks and dead pairs out of every preset except 'Custom'.",
            "default": "top_gainers"
          },
          "timeframe": {
            "title": "Timeframe for technicals",
            "enum": [
              "1D",
              "4h",
              "1h",
              "15m",
              "5m",
              "1m",
              "1W",
              "1M"
            ],
            "type": "string",
            "description": "Chart timeframe used for RSI, MACD, moving averages, ADX, ATR, rating and change %. Use 1h or 4h for intraday crypto and momentum alerts.",
            "default": "1D"
          },
          "symbols": {
            "title": "Specific symbols (optional)",
            "type": "array",
            "description": "Look up specific symbols instead of running a screen, e.g. ['AAPL', 'NVDA', 'BRK.B'] or exchange-qualified ['NASDAQ:AAPL', 'BINANCE:BTCUSDT']. Overrides the preset when filled.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxResults": {
            "title": "Max symbols",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of symbols returned (and charged), 1-500.",
            "default": 15
          },
          "exchange": {
            "title": "Exchange",
            "type": "string",
            "description": "Optional exchange filter, e.g. 'NASDAQ', 'NYSE', 'BINANCE', 'COINBASE'."
          },
          "sector": {
            "title": "Sector (stocks)",
            "type": "string",
            "description": "Optional TradingView sector, e.g. 'Electronic Technology', 'Technology Services', 'Finance', 'Health Technology'."
          },
          "minMarketCapUsd": {
            "title": "Min market cap (approx. USD)",
            "minimum": 0,
            "type": "number",
            "description": "Minimum market capitalization in US dollars (converted with an approximate FX rate for non-US markets), e.g. 1000000000 for $1B+."
          },
          "minVolume": {
            "title": "Min daily volume",
            "minimum": 0,
            "type": "number",
            "description": "Minimum traded volume (shares or units). Overrides the default liquidity guard."
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "number",
            "description": "Minimum last price in the market's currency."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "number",
            "description": "Maximum last price in the market's currency."
          },
          "minRsi": {
            "title": "Min RSI (14)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Minimum 14-period RSI on the selected timeframe (0-100)."
          },
          "maxRsi": {
            "title": "Max RSI (14)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Maximum 14-period RSI on the selected timeframe (0-100)."
          },
          "maxPeRatio": {
            "title": "Max P/E (TTM)",
            "minimum": 0,
            "type": "number",
            "description": "Maximum trailing price/earnings ratio (stocks only)."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "change",
              "volume",
              "relative_volume_10d_calc",
              "market_cap_basic",
              "RSI",
              "Recommend.All",
              "price_earnings_ttm",
              "dividend_yield_recent",
              "Perf.1M",
              "Perf.YTD",
              "Volatility.D"
            ],
            "type": "string",
            "description": "Override the preset's ordering. Technical fields follow the selected timeframe."
          },
          "sortOrder": {
            "title": "Sort order",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "'desc' for highest first, 'asc' for lowest first.",
            "default": "desc"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}