POST /scanner/{market}/scan2

Auth X-Hub-Key from API_HUB_KEYExecute POST /run/tradingview/scanner/{market}/scan2Cache executed live on every call — a read-only POST answer is never cachedCost free · weight 2 · heavy rate classSource billing free

Scan variant returning symbols[{s, f}] and echoing the field list.

Option chains use this route with market=options and an index_filters body (underlying_symbol is required). Sort, filter and symbols are JSON values in the body, not JSON-encoded strings.

Parameters

nameintypedescription
marketpathstr
america | crypto | coin | forex | futures | bond | bonds | cfd | economics2 | global | uk | germany | france | italy | spain | japan | india | china | hongkong | korea | brazil | canada | australia | turkey | israel | uae | mexico | taiwan | thailand | indonesia | malaysia | vietnam | philippines | poland | sweden | norway | switzerland | netherlands | russia
requiredScanner market slug
example: america
columnsbodylist[str]optionalColumn names; list valid ones with the metainfo route
example: ["name","close"]
rangebodylist[int]optional[start, end) row window
example: [0,3]
sortbodyobjectoptionalSort object such as {"sortBy": column, "sortOrder": "asc|desc"}; not every market has every column
example: {"sortBy":"close","sortOrder":"desc"}
filterbodylist[dict]optionalArray of {left, operation, right} conditions
example: [{"left":"close","operation":"greater","right":10}]
symbolsbodyobjectoptionalObject {"tickers": ["EXCHANGE:TICKER"]} to select explicit symbols
example: {"tickers":["NASDAQ:AAPL"]}

Response

type: object
data key: fields
count key: totalCount
pagination: offset
sample: {
  "totalCount": "int",
  "fields": "array[2]",
  "symbols": "array[1]",
  "time": "str"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sX POST "https://openapihub.dev/run/tradingview/scanner/america/scan2" \
  -H "X-Hub-Key: $API_HUB_KEY" -H "Content-Type: application/json" \
  -d '{"market": "america", "columns": ["name", "close"], "range": [0, 3], "sort": {"sortBy": "close", "sortOrder": "desc"}, "filter": [{"left": "close", "operation": "greater", "right": 10}], "symbols": {"tickers": ["NASDAQ:AAPL"]}}'