API · /defillama-api

DeFiLlama API

healthy 4,311 Subscribers

Decentralized-finance analytics as an API, powered by DeFiLlama — the most-used, independent dashboard for tracking Total Value Locked (TVL) across the DeFi ecosystem. TVL is the dollar value of assets deposited in a protocol, the key measure of a DeFi protocol's size and health. This API wraps DeFiLlama's open data into clean, compact JSON. /v1/protocols ranks DeFi protocols by TVL and lets you filter by blockchain (chain=Ethereum) and by category (category=Lending, Dexes, Liquid Staking, CDP, Yield, Bridge and more) — each protocol with its slug, token symbol, category, the chains it runs on, its TVL in USD and 1-day and 7-day TVL change. /v1/protocol?slug=aave returns a single protocol's profile and its current TVL broken down by blockchain (real chains only, so the headline figure is not inflated by staking or borrowed aggregates). /v1/chains ranks every blockchain by the TVL deployed on it. /v1/stablecoins ranks stablecoins by circulating supply, with each coin's peg type and peg mechanism. All values are in US dollars and reflect the latest snapshot. Ideal for crypto and DeFi dashboards, portfolio and risk tools, market-research and analytics products, and Discord/Telegram bots. This is on-chain/DeFi analytics — distinct from token-price feeds. Use a protocol slug from /v1/protocols for the detail endpoint. Data from DeFiLlama (free and open).

api.oanor.com/defillama-api
Get an API key Try in playground → Contact provider

Machine-readable spec so AI agents can integrate this API.

/api/defillama-api/openapi.json
/api/defillama-api/llms.txt

Discovery: GET /api/index.json lists every API.

API health

healthy
Uptime
100.00%
Server probes · 24h
Avg latency
239 ms
Server probes · 24h
Subscribers
4,311
active
Total calls
10
last 7 days
status Full status page → · 15 probes/24h

Pricing

Pick a tier — billed monthly, cancel anytime.

Free

Free

  • 2,600 calls / month
  • 2 requests / second
  • Hard cap (429 above quota, no overage)
  • 2600 calls/month
  • 2 req/sec
  • Protocols, chains & stablecoins
  • No credit card
Sign in to subscribe

Starter

€9.00 /month

  • 54,000 calls / month
  • 5 requests / second
  • Hard cap (429 above quota, no overage)
  • 54k calls/month
  • 5 req/sec
  • TVL by chain
  • Email support
Sign in to subscribe

Pro

€29.00 /month

  • 250,000 calls / month
  • 12 requests / second
  • Hard cap (429 above quota, no overage)
  • 250k calls/month
  • 12 req/sec
  • DeFi dashboards & analytics
  • Priority support
Sign in to subscribe

Mega

€78.00 /month

  • 900,000 calls / month
  • 35 requests / second
  • Hard cap (429 above quota, no overage)
  • 900k calls/month
  • 35 req/sec
  • High-frequency market data
  • Dedicated SLA
Sign in to subscribe

Built by

Related APIs

Other APIs with overlapping tags.

DeFi Analytics API

Decentralized-finance analytics as an API, powered by DefiLlama. Track the Total Value Locked (TVL) across more than 7,000 DeFi protocols ranked and filterable by blockchain and category (Lending, DEXes, Liquid Staking, Bridges, CDP and more), drill into any single protocol for its current TVL, per-chain breakdown, category, market cap and links, see how much value is locked on each of 450+ blockchains, read the circulating supply and peg of every major stablecoin (USDT, USDC, DAI and the rest), and find the best yield-farming pools with their base and reward APY, filterable by chain and project. Every figure is live and denominated in USD. Perfect for DeFi dashboards and portfolio trackers, yield aggregators, research and analytics tools, trading bots and crypto data sites. No accounts, no upstream key. For token spot prices use the Crypto API.

api.oanor.com/defi-api

Bitcoin Blockchain API

The Bitcoin blockchain as an API, powered by mempool.space. Get live transaction-fee estimates in sat/vB (fastest, 30-minute, 1-hour, economy and minimum) plus a projection of the next mempool blocks, inspect the current mempool size and fee histogram, list recent blocks with their mining pool, size and fees, look up any block by height or hash, check any Bitcoin address for its confirmed balance, total received/sent and recent transactions, fetch any transaction with its inputs, outputs, fee and confirmation status, read the current difficulty adjustment and network hashrate, and get the live BTC price in major currencies. Every amount is in satoshis. Perfect for wallets and fee estimators, block explorers, address and payment monitoring, on-chain dashboards and analytics, and Bitcoin bots. No accounts, no upstream key. For coin market prices use the Crypto API and for DeFi TVL the DeFi API.

api.oanor.com/bitcoin-api

Hash API

Compute cryptographic hashes (MD5, SHA-1, SHA-256/384/512, SHA-3, RIPEMD-160) in hex or base64, generate HMAC signatures for webhook and message authentication, and mint v4 UUIDs. All server-side and deterministic. Handy for integrity checks, signing, cache keys, deduplication and id generation.

api.oanor.com/hash-api

Crypto API

Live cryptocurrency market data: prices, top coins & markets, price/OHLC charts, historical snapshots, trending coins, global stats, exchanges and categories.

api.oanor.com/crypto-api

Frequently asked questions

Quick answers about pricing, quotas, and integration.

How do I get an API key for DeFiLlama API?
Sign up for free at oanor.com, generate an API key from the developer dashboard, and call DeFiLlama API with the x-oanor-key header. No credit card needed for the free tier.
What's the rate limit for DeFiLlama API?
Free tier allows 1 request per second. Paid plans scale up to 50 requests per second on the Mega tier. Hard limits return HTTP 429 above the quota — no surprise overage charges.
How much does DeFiLlama API cost?
DeFiLlama API has a free tier with 100 calls / month. Paid plans start at €9.00 / month with higher quotas and faster rate limits.
Can I cancel my subscription anytime?
Yes. Plans are billed monthly and you can cancel anytime from your billing dashboard. No long-term contracts and no cancellation fee.
Is DeFiLlama API GDPR-compliant?
All requests to DeFiLlama API go through our EU-based gateway. Your upstream API key never leaves our server and no personal data is shared with the upstream provider beyond the request you send.

Pick an endpoint from the list on the left to see its details and try it.

Code snippets

Sign up to get an API key, then call any path under your slug.

curl https://api.oanor.com/defillama-api/SOME_PATH \
  -H "x-oanor-key: oanor_test_..."
const res = await fetch("https://api.oanor.com/defillama-api/SOME_PATH", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
const data = await res.json();
$ch = curl_init("https://api.oanor.com/defillama-api/SOME_PATH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
$response = curl_exec($ch);
import requests
r = requests.get(
    "https://api.oanor.com/defillama-api/SOME_PATH",
    headers={"x-oanor-key": "oanor_test_..."},
)
print(r.json())

Ratings

Sign in to rate.

No reviews yet.

Discussion

Ask questions, share usage tips, get answers from the provider and other developers. Public — anyone can read.

Sign in to start a thread or reply.

Sign in

New thread

/ 4000

📌 Pinned 🔒 Locked

·

· ·

/ 4000

🔒 This thread is locked — no new replies.

  • No threads yet — start the discussion.

Support

Private 1:1 support with the provider — billing questions, integration issues, account problems. Only you and the provider team can see these threads.

Sign in to open a support ticket.

Sign in

Open new ticket

Describe what you need help with. The provider team gets an email and replies on the ticket page.

  • No tickets yet for this API.

Subscription active — calls can start immediately.

Send your first request —

Subscription active — copy a snippet and fire off your first call.