GET /pine/translate/{script_id}/{version}

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

Compiled translation of a script.

Parameters

nameintypedescription
script_idpathstrrequiredScript id
example: STD;RSI
versionpathstrrequiredVersion or last
example: last

Response

type: object
pagination: none
sample: {
  "success": "bool",
  "reason2": "object",
  "result": "object"
}

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