{
  "openapi": "3.0.1",
  "info": {
    "title": "TradingView Scraper – Screener, Options, News & Calendars",
    "description": "Screen stocks, ETFs, futures, crypto and forex in 65+ markets with 100+ fields; get full option chains with greeks, the latest news and community ideas per ticker, and economic and earnings calendars from TradingView. Filters, presets, no login needed.",
    "version": "1.0",
    "x-build-id": "IThJLkNJZbkDa6skJ"
  },
  "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "screener",
              "options",
              "symbols",
              "calendars"
            ],
            "type": "string",
            "description": "Screener: stocks, ETFs, futures, crypto and forex with 100+ fields. Options: full option chains with greeks. Symbols: news and community trading ideas per ticker. Calendars: economic events and upcoming earnings.",
            "default": "screener"
          },
          "markets": {
            "title": "Markets",
            "type": "array",
            "description": "Markets to scan (Screener) or to take earnings from (Calendars). Stocks, one per country: america, uk, germany, france, canada, japan, india, brazil… (65+). Also: etf (US ETFs), futures, crypto, coin, forex, cfd.",
            "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 records per market (Screener), per underlying (Option chains), per symbol and kind (News & ideas) or per calendar (Calendars).",
            "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"
            }
          },
          "underlyings": {
            "title": "Underlyings (Option chains)",
            "type": "array",
            "description": "Tickers whose option chains you want, e.g. AAPL, NASDAQ:MSFT, SPY. Used in Option chains mode.",
            "items": {
              "type": "string"
            }
          },
          "optionType": {
            "title": "Option type",
            "enum": [
              "both",
              "call",
              "put"
            ],
            "type": "string",
            "description": "Calls, puts or both. Used in Option chains mode.",
            "default": "both"
          },
          "expiration": {
            "title": "Expiration date",
            "type": "string",
            "description": "Only contracts expiring on this date (YYYY-MM-DD). Leave empty for every expiration. Used in Option chains mode."
          },
          "symbols": {
            "title": "Symbols (News & ideas)",
            "type": "array",
            "description": "Tickers to get news and community ideas for, e.g. AAPL, TSLA, BINANCE:BTCUSDT, FX:EURUSD. Used in News & ideas mode.",
            "items": {
              "type": "string"
            }
          },
          "includeNews": {
            "title": "Include news",
            "type": "boolean",
            "description": "Latest news headlines for each symbol (News & ideas mode).",
            "default": true
          },
          "includeIdeas": {
            "title": "Include community ideas",
            "type": "boolean",
            "description": "Latest trading ideas published by the TradingView community for each symbol (News & ideas mode).",
            "default": true
          },
          "calendar": {
            "title": "Calendars",
            "type": "array",
            "description": "Which calendars to return: economic (macro events with actual, forecast and previous) and/or earnings (companies reporting, with EPS and revenue estimates). Used in Calendars mode.",
            "items": {
              "type": "string",
              "enum": [
                "economic",
                "earnings"
              ],
              "enumTitles": [
                "Economic events",
                "Earnings"
              ]
            },
            "default": [
              "economic",
              "earnings"
            ]
          },
          "days": {
            "title": "Days ahead",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "How many days the calendars cover, starting today or on Start date (Calendars mode).",
            "default": 7
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "First day of the calendars (YYYY-MM-DD). Leave empty for today (Calendars mode)."
          },
          "countries": {
            "title": "Countries (economic calendar)",
            "type": "array",
            "description": "Two-letter country codes for economic events, e.g. US, EU, GB, JP, CN. Leave empty for all (Calendars mode).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}