DefiLlama Scraper avatar

DefiLlama Scraper

Pricing

from $0.25 / 1,000 results

Go to Apify Store
DefiLlama Scraper

DefiLlama Scraper

Scrapes DeFi and blockchain data from DefiLlama public APIs, extracting chain TVL, historical TVL changes, on-chain fees, DEX volumes, protocol metrics, and stablecoin supply. Ideal for crypto market research, DeFi analytics, and portfolio tracking.

Pricing

from $0.25 / 1,000 results

Rating

0.0

(0)

Developer

FalconScrape

FalconScrape

Maintained by Community

Actor stats

1

Bookmarked

2

Total users

1

Monthly active users

8 days ago

Last modified

Share

πŸš€ DefiLlama Scraper

Extract comprehensive blockchain and DeFi data from DefiLlama's public API. The DefiLlama Scraper collects TVL, fees, DEX volumes, protocol metrics, and stablecoin data β€” all in structured JSON, ready for analysis.

✨ Features

  • πŸ”— Chain-Level Data: TVL, historical TVL changes (1d/7d/30d), and on-chain fee & revenue breakdowns for top blockchains.
  • 🏦 Protocol Data: ~4,000 DeFi protocols with TVL, category, multi-chain deployment info, and social links.
  • πŸ“ˆ DEX Volumes: Per-protocol trading volumes (24h/7d/30d) with period-over-period change metrics.
  • πŸ’° Fee & Revenue Data: Per-protocol fee generation across multiple time windows.
  • πŸͺ™ Stablecoin Analytics: Circulating supply, peg type, peg mechanism, price, and supply changes over time.

πŸ› οΈ How It Works

  1. Configure your scrape – Choose how many chains to include and which optional datasets to enable.
  2. Run the scraper – The Actor fetches data from DefiLlama's public API endpoints (no API key needed).
  3. Get structured results – All data lands in a single dataset with a type field (chain, protocol, dex, fee, stablecoin) so you can filter easily.

πŸ“₯ Input

FieldTypeDefaultDescription
maxChainsInteger100Maximum number of top chains (by TVL) to scrape. Range: 1–1000.
scrapeProtocolsBooleanfalseScrape protocol-level TVL data (~4,000 protocols with TVL, category, chains, and changes).
scrapeDexesBooleanfalseScrape DEX volume data (per-protocol 24h/7d/30d volumes and changes).
scrapeFeesBooleanfalseScrape per-protocol fee and revenue data (24h/7d/30d fees and changes).
scrapeStablecoinsBooleanfalseScrape stablecoin circulating supply, peg info, and price data.

πŸ“Š Sample Output Data

All records land in a single dataset with a type field so you can filter by category.

πŸ”— Chains (type: "chain")

Always scraped. Includes TVL, historical changes, and aggregated fee data per chain.

{
"type": "chain",
"name": "Ethereum",
"tvl": 62345678901,
"geckoId": "ethereum",
"tokenSymbol": "ETH",
"cmcId": "1027",
"chainId": 1,
"tvlChange1d": 1.23,
"tvlChange7d": -2.45,
"tvlChange30d": 5.67,
"fees24h": 4567890,
"fees7d": 31234567,
"fees30d": 128765432,
"feesChange7dover7d": 12.34,
"feesChange30dover30d": -3.21
}

🏦 Protocols (type: "protocol")

Enabled via scrapeProtocols. TVL, category, multi-chain info, and social links for ~4,000 DeFi protocols.

{
"type": "protocol",
"name": "Lido",
"slug": "lido",
"symbol": "LDO",
"category": "Liquid Staking",
"chains": ["Ethereum", "Solana", "Polygon"],
"chain": "Multi-Chain",
"tvl": 14567890123,
"tvlChange1h": 0.05,
"tvlChange1d": 1.12,
"tvlChange7d": -0.87,
"url": "https://lido.fi",
"description": "Liquid staking for Ethereum and other PoS blockchains",
"twitter": "LidoFinance",
"logo": "https://icons.llama.fi/lido.png"
}

πŸ“ˆ DEXes (type: "dex")

Enabled via scrapeDexes. Per-protocol trading volumes across multiple time windows.

{
"type": "dex",
"name": "Uniswap",
"slug": "uniswap",
"category": "Dexes",
"chains": ["Ethereum", "Arbitrum", "Polygon", "Optimism", "Base"],
"volume24h": 1234567890,
"volume7d": 8765432100,
"volume30d": 34567890123,
"volume1y": 456789012345,
"volumeAllTime": 1890567234000,
"volumeChange1d": 5.43,
"volumeChange7d": -2.10,
"volumeChange1m": 12.87,
"volumeChange7dover7d": 3.45,
"volumeChange30dover30d": -1.23
}

πŸ’° Fees (type: "fee")

Enabled via scrapeFees. Per-protocol fee and revenue generation data.

{
"type": "fee",
"name": "Aave",
"slug": "aave",
"category": "Lending",
"chains": ["Ethereum", "Avalanche", "Polygon", "Arbitrum"],
"fees24h": 987654,
"fees7d": 6543210,
"fees30d": 27654321,
"fees1y": 345678901,
"feesAllTime": 890123456,
"feesChange1d": 2.34,
"feesChange7d": -1.56,
"feesChange1m": 8.90,
"feesChange7dover7d": 4.12,
"feesChange30dover30d": -2.78
}

πŸͺ™ Stablecoins (type: "stablecoin")

Enabled via scrapeStablecoins. Circulating supply, peg details, and price data.

{
"type": "stablecoin",
"name": "Tether",
"symbol": "USDT",
"geckoId": "tether",
"pegType": "peggedUSD",
"pegMechanism": "fiat-backed",
"price": 0.9998,
"circulating": 118234567890,
"circulatingPrevDay": 118200000000,
"circulatingPrevWeek": 117890000000,
"circulatingPrevMonth": 115670000000,
"chains": ["Ethereum", "Tron", "BSC", "Solana", "Avalanche", "Arbitrum"]
}

Track blockchain metrics and DeFi trends with DefiLlama Scraper today! πŸš€