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 freeCompiled translation of a script.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
script_id | path | str | required | Script id example: STD;RSI |
version | path | str | required | Version 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"