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 freePublished Pine scripts, 20 per page.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
sort | query | strlatest_popular | week_popular | trending | suggested | recent | recent_extended | picked_time | optional | Sort order default: recentexample: recent |
page | query | int | optional | Page number example: 1 |
script_type | query | strall | strategies | indicators | libraries | optional | all or one of strategies, indicators, libraries example: strategies |
lang | query | str | optional | Language default: enexample: 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"