Project
DeFi Protocol Ranking
Returns a DeFi protocol leaderboard (e.g. Aave, Uniswap, Lido) ranked by TVL, fees, revenue, or users. For individual pool/vault yields, use onchain-yield-ranking instead.
Available metrics: tvl, revenue, fees, volume, users.
get/gateway/v1/project/defi/ranking
Request
- Base URLhttps://api.asksurf.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
metric'tvl' | 'revenue' | 'fees' | 'volume' | 'users' required
Ranking metric. Can be tvl, revenue, fees, volume, or users.
Example:tvl
limitinteger
Results per page
Example:20
offsetinteger
Pagination offset
Response
OK
Example response
{
"$schema": "https://example.com/schemas/DataResponseProjectTopRankItem.json"
}Changes
No recorded changes to this operation across all 13 revisions of this API.