Skip to main content

GET /api/defi/tvl/{protocol}

Get Protocol TVL

Get Total Value Locked (TVL) for any DeFi protocol tracked by DefiLlama.

Supported Protocols​

Aave, Uniswap, Lido, MakerDAO, Curve, Compound, and 3000+ more

Response Includes​

  • Current TVL in USD
  • 24h and 7d change
  • TVL breakdown by chain
  • Historical data available

Pricing​

  • $0.01 per request

Endpoint​

GET https://api.web3identity.com/api/defi/tvl/{protocol}

Parameters​

NameInTypeRequiredDescription
protocolpathstringâś…Protocol slug (e.g., aave, uniswap, lido)
chainquerystring❌Filter by chain (ethereum, arbitrum, etc.)

Example Request​

curl -s "https://api.web3identity.com/api/defi/tvl/:protocol" | jq

Responses​

200 Protocol TVL data​

400 Bad Request - Invalid parameters or malformed request​

{
"error": "Invalid parameter format",
"code": "INVALID_PARAMETER"
}

402 Payment Required - Free tier exhausted​

{
"example": "response"
}

404 Not Found - Resource does not exist​

{
"error": "Resource not found",
"code": "NOT_FOUND"
}

429 Rate Limited​

{
"example": "response"
}

500 Internal Server Error - Something went wrong on our end​

{
"error": "Internal server error",
"code": "INTERNAL_ERROR"
}

Auto-generated from OpenAPI spec