GET /pine/get/{script_id}/{version}

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/tradingview/pine/get/{script_id}/{version}Cache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Script source and metadata.

Parameters

nameintypedescription
script_idpathstrrequiredScript id, e.g. STD;RSI
example: STD;RSI
versionpathstrrequiredVersion number or last
example: last

Response

type: object
pagination: none
sample: {
  "created": "str",
  "extra": "object",
  "lastVersionMaj": "str",
  "scriptAccess": "str",
  "scriptName": "str",
  "source": "str",
  "updated": "str",
  "version": "str"
}

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/pine/get/STD;RSI/last"