GET /community/scripts

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/tradingview/community/scriptsCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Published Pine scripts, 20 per page.

Parameters

nameintypedescription
sortquerystr
latest_popular | week_popular | trending | suggested | recent | recent_extended | picked_time
optionalSort order
default: recent
example: recent
pagequeryintoptionalPage number
example: 1
script_typequerystr
all | strategies | indicators | libraries
optionalall or one of strategies, indicators, libraries
example: strategies
langquerystroptionalLanguage
default: en
example: en

Response

type: object
data key: results
count key: count
cursor key: next
pagination: cursor
sample: {
  "count": "int",
  "page_size": "int",
  "page_count": "int",
  "next": "str",
  "previous": "null",
  "results": "array[20]"
}

Safe request

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

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/tradingview/community/scripts?sort=recent&page=1&script_type=strategies&lang=en"