# DefiLlama API

Category: [Crypto](https://free-web-services.com/web-services/unit-convertors/crypto/)  
Page: https://free-web-services.com/web-services/unit-convertors/crypto/defillama-api.html  
Documentation: https://api-docs.defillama.com/

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.

- API key: Not needed
- 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

Example request:

```sh
curl 'https://coins.llama.fi/prices/current/coingecko:bitcoin'
```

The JavaScript works in a web page as well as in Node.js 18 or newer.

