GET /v2/chart/tvl/protocol/{p}
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/defillama/v2/chart/tvl/protocol/{p}Cache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeOne protocol's full TVL history as compact pairs (?key=borrowed selects active loans).
Parameters
| name | in | type | description | |
|---|---|---|---|---|
p | path | str | required | Protocol slug (lowercase, as in DefiLlama URLs), e.g. aave, lido, curve-dex example: aave |
key | query | strborrowed | optional | Series selector for the tvl adapter chart ('borrowed' = active loans) example: borrowed |
Response
type: array
pagination: none
sample: {
"[0]": "array"
}
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/defillama/v2/chart/tvl/protocol/aave?key=borrowed"