{
  "openapi": "3.0.1",
  "info": {
    "title": "TradingView Scraper - Screener, Quotes, Technicals & Ideas",
    "description": "Scrape TradingView: multi-market screener (stocks/crypto/forex/futures, 60+ countries) with fundamentals & technical ratings, full symbol quotes, multi-timeframe Buy/Sell technical analysis, trader ideas (sentiment), news & symbol search. Monitor new ideas, matches & price/rating changes.",
    "version": "0.1",
    "x-build-id": "qoc2ZJ4loy27nZM2x"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~tradingview-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-tradingview-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/scrapesage~tradingview-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-tradingview-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/scrapesage~tradingview-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-tradingview-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": {
          "mode": {
            "title": "What to scrape",
            "enum": [
              "screener",
              "quotes",
              "technicals",
              "ideas",
              "news",
              "search"
            ],
            "type": "string",
            "description": "<b>Screener</b> = scan a whole market (stocks/crypto/forex/futures across 60+ countries) with filters & technical ratings. <b>Quotes</b> = full snapshot for specific symbols (price + fundamentals + technicals). <b>Technicals</b> = multi-timeframe Buy/Sell gauge per symbol. <b>Ideas</b> = trader ideas (sentiment, long/short calls). <b>News</b> = symbol/market news headlines. <b>Symbol search</b> = discover tickers.",
            "default": "screener"
          },
          "market": {
            "title": "Market",
            "type": "string",
            "description": "Which market to scan in <b>Screener</b> mode. Asset classes: <code>america</code>, <code>crypto</code>, <code>forex</code>, <code>cfd</code>, <code>futures</code>, <code>bond</code>. Country stock markets: <code>uk</code>, <code>germany</code>, <code>india</code>, <code>japan</code>, <code>canada</code>, <code>brazil</code>, <code>australia</code>, and 50+ more.",
            "default": "america"
          },
          "signal": {
            "title": "Signal preset",
            "enum": [
              "",
              "topGainers",
              "topLosers",
              "mostActive",
              "mostVolatile",
              "unusualVolume",
              "overbought",
              "oversold",
              "strongBuy",
              "strongSell"
            ],
            "type": "string",
            "description": "Ready-made screens traders watch. Sets a sensible sort & filter automatically. Leave as None to use your own filters/sort.",
            "default": ""
          },
          "sortBy": {
            "title": "Sort by (field)",
            "type": "string",
            "description": "TradingView field id to sort the screener by, e.g. <code>market_cap_basic</code>, <code>change</code>, <code>volume</code>, <code>Value.Traded</code>, <code>Perf.YTD</code>, <code>Recommend.All</code>, <code>RSI</code>. Leave blank for a sensible default (market cap)."
          },
          "sortOrder": {
            "title": "Sort order",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "Sort direction for the screener.",
            "default": "desc"
          },
          "minMarketCap": {
            "title": "Min market cap (USD)",
            "type": "integer",
            "description": "Only include symbols with at least this market capitalization (e.g. 1000000000 = $1B)."
          },
          "maxMarketCap": {
            "title": "Max market cap (USD)",
            "type": "integer",
            "description": "Only include symbols with at most this market capitalization."
          },
          "minPrice": {
            "title": "Min price",
            "type": "number",
            "description": "Only include symbols trading at or above this price."
          },
          "maxPrice": {
            "title": "Max price",
            "type": "number",
            "description": "Only include symbols trading at or below this price."
          },
          "minVolume": {
            "title": "Min volume",
            "type": "integer",
            "description": "Only include symbols with at least this current-day volume."
          },
          "sectors": {
            "title": "Sectors",
            "type": "array",
            "description": "Restrict the screen to these sectors, e.g. <code>Technology Services</code>, <code>Electronic Technology</code>, <code>Finance</code>, <code>Health Technology</code>, <code>Energy Minerals</code>, <code>Retail Trade</code>.",
            "items": {
              "type": "string"
            }
          },
          "filtersRaw": {
            "title": "Raw TradingView filters (advanced)",
            "type": "array",
            "description": "Power-user filters in TradingView's native format, merged with the simple filters above. Each item is an object like <code>{\"left\":\"RSI\",\"operation\":\"eless\",\"right\":40}</code> or <code>{\"left\":\"sector\",\"operation\":\"in_range\",\"right\":[\"Finance\"]}</code>."
          },
          "symbols": {
            "title": "Symbols",
            "type": "array",
            "description": "Symbols for <b>Quotes</b>, <b>Technicals</b>, <b>Ideas</b> and <b>News</b> modes. Use <code>EXCHANGE:SYMBOL</code> (e.g. <code>NASDAQ:AAPL</code>, <code>BINANCE:BTCUSDT</code>, <code>FX:EURUSD</code>) or a bare ticker (<code>AAPL</code>) which is auto-resolved to its primary exchange.",
            "items": {
              "type": "string"
            }
          },
          "intervals": {
            "title": "Technical analysis timeframes",
            "type": "array",
            "description": "Timeframes for the multi-timeframe Buy/Sell gauge in <b>Technicals</b> mode.",
            "items": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "2h",
                "4h",
                "1D",
                "1W",
                "1M"
              ]
            },
            "default": [
              "15m",
              "1h",
              "4h",
              "1D",
              "1W"
            ]
          },
          "ideasFeed": {
            "title": "Ideas feed / category",
            "type": "string",
            "description": "For <b>Ideas</b> mode, scrape a feed instead of (or in addition to) per-symbol ideas. Use <code>all</code> for the global feed, or a category like <code>stocks</code>, <code>crypto</code>, <code>forex</code>, <code>bitcoin</code>, <code>futures</code>. Leave blank to use the Symbols list."
          },
          "ideaDirection": {
            "title": "Idea direction filter",
            "enum": [
              "",
              "long",
              "short",
              "neutral"
            ],
            "type": "string",
            "description": "Only keep ideas with this trade bias.",
            "default": ""
          },
          "maxIdeasPerSource": {
            "title": "Max ideas per symbol/feed",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum ideas to collect per symbol or feed (paginated ~10–24 per page).",
            "default": 25
          },
          "newsCategory": {
            "title": "Market news category",
            "type": "string",
            "description": "For <b>News</b> mode without symbols, the market news category, e.g. <code>stock</code>, <code>crypto</code>, <code>forex</code>, <code>economy</code>, <code>index</code>. Leave blank for the general feed."
          },
          "includeStoryContent": {
            "title": "Include full news article text",
            "type": "boolean",
            "description": "Fetch the full article body for each news headline (one extra request per item — slower).",
            "default": false
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Text queries for <b>Symbol search</b> mode (company name, ticker or keyword), e.g. <code>apple</code>, <code>BTC</code>, <code>S&P 500</code>.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs (any TradingView page)",
            "type": "array",
            "description": "Paste TradingView URLs — symbol pages (<code>/symbols/NASDAQ-AAPL/</code>), ideas pages (<code>/symbols/NASDAQ-NVDA/ideas/</code> or <code>/ideas/crypto/</code>), news (<code>/symbols/NASDAQ-AAPL/news/</code>) or technicals. Each is auto-routed to the right scraper.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of records to return for this run (0 = no limit). For the screener, results are fetched in pages of 200.",
            "default": 100
          },
          "monitorMode": {
            "title": "Monitor mode (only new data)",
            "type": "boolean",
            "description": "Remember records seen on previous runs (in a named key-value store) and output only NEW ones — perfect for alerting on new trader ideas, fresh screener matches, price/rating changes or new headlines. Combine with Apify <a href='https://docs.apify.com/platform/schedules'>Schedules</a> to poll automatically.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Name of the key-value store that holds the 'seen' fingerprints for monitor mode. Use different names to track different watchlists/screens independently.",
            "default": "tradingview-monitor"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "TradingView's data endpoints work on Apify's datacenter proxy. Datacenter is recommended (fast & cheap).",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}