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 freeScript source and metadata.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
script_id | path | str | required | Script id, e.g. STD;RSI example: STD;RSI |
version | path | str | required | Version 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"