{
  "openapi": "3.0.1",
  "info": {
    "title": "TradingView Screener",
    "description": "Screen stocks, crypto and forex across 65+ global markets with 100+ fields per symbol: price, fundamentals, analyst consensus and price targets, estimates, next earnings, dividends and technicals (RSI, MACD, SMA). Filter by any field, use ready-made presets. No login.",
    "version": "1.0",
    "x-build-id": "sDCbnVZpanSVKHIxC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sheshinmcfly~tradingview-screener/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sheshinmcfly-tradingview-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/sheshinmcfly~tradingview-screener/runs": {
      "post": {
        "operationId": "runs-sync-sheshinmcfly-tradingview-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/sheshinmcfly~tradingview-screener/run-sync": {
      "post": {
        "operationId": "run-sync-sheshinmcfly-tradingview-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": {
          "markets": {
            "title": "Markets",
            "type": "array",
            "description": "Markets to scan. Stocks (one per country): america, uk, germany, france, canada, india, japan, china, hongkong, korea, australia, brazil, mexico, spain, italy, netherlands, switzerland, sweden, singapore, taiwan, and ~50 more country codes. Crypto: crypto or coin. Forex: forex. One market per entry.",
            "items": {
              "type": "string"
            }
          },
          "preset": {
            "title": "Preset screener (optional)",
            "enum": [
              "",
              "top_gainers",
              "top_losers",
              "most_active",
              "most_valuable",
              "overbought",
              "oversold",
              "high_dividend",
              "52w_high"
            ],
            "type": "string",
            "description": "Ready-made screen. Combines with your filters; leave empty for a plain scan.",
            "default": ""
          },
          "maxResults": {
            "title": "Max results per market",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of symbols to return per market.",
            "default": 100
          },
          "sortBy": {
            "title": "Sort by column",
            "type": "string",
            "description": "TradingView column to sort by (e.g. market_cap_basic, volume, change, price_earnings_ttm, RSI). Leave empty for a sensible default per market."
          },
          "sortOrder": {
            "title": "Sort order",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "Sort direction for the sort column.",
            "default": "desc"
          },
          "minMarketCap": {
            "title": "Min market cap",
            "type": "integer",
            "description": "Only symbols with market cap at least this value (in the market's currency)."
          },
          "maxMarketCap": {
            "title": "Max market cap",
            "type": "integer",
            "description": "Only symbols with market cap at most this value."
          },
          "minPrice": {
            "title": "Min price",
            "type": "number",
            "description": "Only symbols priced at or above this value."
          },
          "maxPrice": {
            "title": "Max price",
            "type": "number",
            "description": "Only symbols priced at or below this value."
          },
          "minPE": {
            "title": "Min P/E",
            "type": "number",
            "description": "Only symbols with a price-to-earnings ratio at or above this value."
          },
          "maxPE": {
            "title": "Max P/E",
            "type": "number",
            "description": "Only symbols with a price-to-earnings ratio at or below this value."
          },
          "minVolume": {
            "title": "Min volume",
            "type": "integer",
            "description": "Only symbols with trading volume at or above this value."
          },
          "minDividendYield": {
            "title": "Min dividend yield (%)",
            "type": "number",
            "description": "Only symbols with a dividend yield at or above this percentage."
          },
          "minRSI": {
            "title": "Min RSI",
            "type": "number",
            "description": "Only symbols with RSI (14) at or above this value."
          },
          "maxRSI": {
            "title": "Max RSI",
            "type": "number",
            "description": "Only symbols with RSI (14) at or below this value."
          },
          "sector": {
            "title": "Sectors",
            "type": "array",
            "description": "One or more exact TradingView sectors, e.g. 'Technology Services', 'Finance', 'Health Technology'. Several = OR.",
            "items": {
              "type": "string"
            }
          },
          "industry": {
            "title": "Industries",
            "type": "array",
            "description": "One or more exact TradingView industries. Several = OR.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Countries",
            "type": "array",
            "description": "One or more exact country names, e.g. 'United States', 'Germany'. Several = OR.",
            "items": {
              "type": "string"
            }
          },
          "exchange": {
            "title": "Exchanges",
            "type": "array",
            "description": "One or more exchange codes, e.g. NASDAQ, NYSE, LSE. Several = OR.",
            "items": {
              "type": "string"
            }
          },
          "filters": {
            "title": "Advanced filters",
            "type": "array",
            "description": "Filter by any TradingView field. Each item: {\"field\": \"RSI\", \"operation\": \"less\", \"value\": 30}. Operations: greater, less, egreater, eless, equal, nequal, in_range, not_in_range, match (text), crosses."
          },
          "customColumns": {
            "title": "Custom columns (advanced)",
            "type": "array",
            "description": "Return exactly these TradingView columns instead of the rich default set (100+ fields for stocks). Leave empty for the default.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}