DefiLlama volumes and fees

GET https://api.api.sh/defillama/v1/volumes
1 credit / call finance & crypto try it in the playground →

DEX volume, protocol fees, options volume, DEX-aggregator volume or bridge-aggregator volume: market totals for 24 hours, 7 and 30 days, a year and all time with changes, and every protocol ranked with the same figures. All chains or one chain. Pass next_page back as page. type=revenue ranks protocol revenue; data_type picks the metric of a board (fees: fees, revenue or holders' revenue; options: premium or notional volume). The response carries the data_type used.

Every response includes credits_used: the credits this call cost.

Parameters

nametypedescription
type dexs | fees | revenue | options | aggregators | bridges dexs (default), fees, revenue (protocol revenue), options, aggregators or bridges. Example: dexs
chain string One chain (default all).
category string Only protocols of this category.
sort total_24h | total_7d | total_30d | total_1y | total_all_time | change_1d | change_7d | change_1m total_24h (default), total_7d, total_30d, total_1y, total_all_time, change_1d, change_7d or change_1m. Example: total_24h
order asc | desc asc or desc (default desc). Example: desc
limit integer Results per page, 1-500 (default 50). Example: 50
page integer Page number, starting at 1. Example: 1
data_type dailyVolume | dailyFees | dailyRevenue | dailyHoldersRevenue | dailyPremiumVolume | dailyNotionalVolume Metric to rank by: dailyVolume (dexs, aggregators, bridges); dailyFees, dailyRevenue or dailyHoldersRevenue (fees, revenue); dailyPremiumVolume (default) or dailyNotionalVolume (options).

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/defillama/v1/volumes?type=dexs" \
  -H "x-api-key: $APISH_KEY"

Response

A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).

The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.