APIHub
Back to Explore

DefiLlama

It hosts the documentation for the DefiLlama API.

Cryptocurrency
none
HTTPS
CORS: Yes
Description enriched
Visit official documentation

Latency

1042ms p95

Uptime

100.0% 30d

Playground

Verified

live

Endpoints

REST · JSON
GET

/protocols

List all protocols on DefiLlama along with their TVL.

GET

/protocol/{protocol}

Get historical TVL of a protocol and breakdowns by token and chain.

  • protocol (path, required) — The protocol identifier (e.g., name or slug).
GET

/v2/historicalChainTvl

Get historical TVL (excludes liquid staking and double counted TVL) of DeFi on all chains.

GET

/v2/historicalChainTvl/{chain}

Get historical TVL (excludes liquid staking and double counted TVL) of a chain.

  • chain (path, required) — The blockchain chain name.
GET

/tvl/{protocol}

Simplified endpoint to get current TVL of a protocol.

  • protocol (path, required) — The protocol identifier.
GET

/v2/chains

Get current TVL of all chains.

GET

/api/tokenProtocols/{symbol}

Lists the amount of a certain token within all protocols. Data for the Token Usage page.

  • symbol (path, required) — The token symbol.
GET

/api/inflows/{protocol}/{timestamp}

Lists the amount of inflows and outflows for a protocol at a given date.

  • protocol (path, required) — The protocol identifier.
  • timestamp (path, required) — The timestamp (date) for which inflow/outflow data is requested.
GET

/api/chainAssets

Get assets of all chains.

GET

/api/v2/metrics/tvl/protocol/{protocol}

Get aggregate TVL metrics for a protocol.

  • protocol (path, required) — The protocol identifier.
GET

/api/v2/chart/tvl/protocol/{protocol}

Get historical TVL chart for a protocol.

  • protocol (path, required) — The protocol identifier.
GET

/api/v2/chart/tvl/protocol/{protocol}/chain-breakdown

Get historical TVL chart for a protocol broken down by chain.

  • protocol (path, required) — The protocol identifier.
GET

/api/v2/chart/tvl/protocol/{protocol}/token-breakdown

Get historical TVL chart for a protocol broken down by token.

  • protocol (path, required) — The protocol identifier.

13 endpoints auto-detected

curl -X GET \
  "https://defillama.com/docs/api/protocols"

defillama.com · HTTPS only