GET /protocol/{name}

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/defillama/protocol/{name}Cache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

One protocol's full TVL history, token and chain breakdown (heavy payload).

Parameters

nameintypedescription
namepathstrrequiredProtocol slug (lowercase, as in DefiLlama URLs), e.g. aave, lido, curve-dex
example: aave
includequerystr
chains | tokens | currentChainTvls
optionalProtocol sub-entities to include (query parameter; comma-separated for several): chains, tokens, currentChainTvls
example: chains

Response

type: object
data key: tokens
pagination: none
sample: {
  "id": "str",
  "name": "str",
  "url": "str",
  "description": "str",
  "logo": "str",
  "chains": "array[0]",
  "gecko_id": "str",
  "cmcId": "str",
  "treasury": "str",
  "twitter": "str",
  "governanceID": "array[2]",
  "wrongLiquidity": "bool",
  "github": "array[2]",
  "stablecoins": "array[1]",
  "symbol": "str",
  "address": "str",
  "currentChainTvls": "object",
  "chainTvls": "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/defillama/protocol/aave?include=chains"