DefiLlama API
by api-docs.defillama.com
Crypto
Added on November 9th, 2026
Visit api-docs.defillama.com →
What it does
The DefiLlama API gives total value locked per blockchain and DeFi protocol, plus token prices, for example to chart how much is deposited on a network. Requests are GET calls with JSON answers. Free, no key needed for the public endpoints; a paid Pro key adds more endpoints.
At a glance
- API key
- Not needed · More APIs with no key
- Pricing
- Free, no key needed for the public endpoints; a paid Pro key adds more endpoints.
- From the browser
- Yes (CORS)
- Formats
- JSON
- Interface
- REST, HTTP-GET
- Provider
- api-docs.defillama.com
More information: https://api-docs.defillama.com/
Is this your service? Show that it is listed
Put this badge on your website or in your README; it links to this page. About the badge
Example request
curl
curl 'https://coins.llama.fi/prices/current/coingecko:bitcoin'
JavaScript
const response = await fetch("https://coins.llama.fi/prices/current/coingecko:bitcoin");
const data = await response.json();
console.log(data);
Python
import requests
response = requests.get(
"https://coins.llama.fi/prices/current/coingecko:bitcoin",
timeout=30,
)
print(response.json())
The JavaScript works in a web page as well as in Node.js 18 or newer.