Skip to main content

DefiLlama Revenue Details

/api/v1/defillama/revenue/detail

Description

Get detailed historical revenue data for given protocol and/or chain parameters. All revenues are denominated in USD.

Method

GET

Source

Database

Parameters

ParameterTypeRequiredDescription
protocolstringnoSpecifies the protocol name.
chainstringnoSpecifies the chain name.
dailyboolnoSpecifies whether to get daily (true) or accumulated data (default false).

Response Status Codes

StatusDescription
200 OKSuccess. Returns detailed historical revenue data.
400 Bad Request

Example: Get detailed historical revenue data for Lido protocol

Request

GET /api/v1/defillama/revenue/detail?protocol=lido

Response

[
[
"Date",
"Chain",
"Platform",
"Usd"
],
[
"12/20/2020 00:00:00",
"ethereum",
"lido",
"0.000000"
],
[
"12/21/2020 00:00:00",
"ethereum",
"lido",
"0.000000"
],
[
"12/22/2020 00:00:00",
"ethereum",
"lido",
"0.000000"
],
[
"12/23/2020 00:00:00",
"ethereum",
"lido",
"0.000000"
],
...
]

Example: Get detailed historical revenue data on Ethereum blockchain

Request

GET /api/v1/defillama/revenue/detail?chain=ethereum

Response

[
[
"Date",
"Platform",
"Usd"
],
[
"10/11/2019 00:00:00",
"Opensea API/V1",
"93263.610594"
],
[
"10/11/2019 00:00:00",
"Uniswap API/V1",
"0.000000"
],
[
"10/12/2019 00:00:00",
"Opensea API/V1",
"90112.426944"
],
[
"10/12/2019 00:00:00",
"Uniswap API/V1",
"0.000000"
],
[
"10/13/2019 00:00:00",
"Opensea API/V1",
"88717.336239"
],
...
]