DefiLlama protocols

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

DeFi protocols ranked by total value locked: name, slug, category, chains with TVL on each, 1-hour, 1-day and 7-day TVL change, market cap, token symbol, parent protocol, audits, oracles, listing date, logo and description. Filter by chain (then ranked by TVL on that chain), category or name. Pass next_page back as page; null on the last page.

Every response includes credits_used: the credits this call cost.

Parameters

nametypedescription
chain string Only protocols on this chain (Ethereum, Solana, Arbitrum, Base, BSC ...). Example: Ethereum
category string Only this category (Lending, Dexs, Liquid Staking, Bridge, CDP, Yield, Derivatives, RWA ...). Example: Lending
q string Only protocols whose name, slug or symbol contains this text.
sort tvl | change_1h | change_1d | change_7d | mcap | listed_at tvl (default), change_1h, change_1d, change_7d, mcap or listed_at. Example: tvl
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

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

Example

curl "https://api.api.sh/defillama/v1/protocols?chain=Ethereum" \
  -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.