
DefiLlama Scraper
hipersoft/defillama-scraper
Scrape DefiLlama for DeFi protocols (TVL, category, chains, market cap), yield pools (APY, TVL), blockchain TVL rankings and stablecoins. Filter by chain, category, TVL or APY.
Total users
1Monthly users
1Total runs
119Per item scraped
$0.0008Last rebuilt
Oct 28, 2026Overview
Pull DeFi market data and export it as clean, structured JSON, CSV, Excel or XML. In one run you can scrape the full protocol universe (TVL, category, chains), yield pools with live APY, blockchain TVL rankings, or the stablecoin landscape — filtered by chain, category, minimum TVL or minimum APY. Fast and reliable, with no account to manage.

What does DefiLlama Scraper do?
This DefiLlama scraper turns DeFi analytics into a structured dataset. Choose one of four datasets — protocols, yields, chains or stablecoins — apply filters, and it returns a flat record per item with TVL, category, chain coverage, price changes and direct links. Use it to build dashboards, screen yields and feed research models, and export the results in any format the Apify platform supports.
What data can you scrape from DefiLlama?
| Data point | Description |
|---|---|
| Protocol name & symbol | Name and token symbol of the protocol. |
| Category | DefiLlama category (e.g. Dexs, Lending, Liquid Staking). |
| Chain & chains | Primary chain and the full list of chains a protocol runs on. |
| TVL | Total value locked in USD. |
| Price changes | 1h, 1d and 7d change percentages. |
| Description & logo | Short description and logo URL. |
| Links | Project URL and a direct DefiLlama page URL. |
| Yields fields | For the yields dataset: APY, base/reward APY, pool id and risk flags. |
| Stablecoin fields | For the stablecoins dataset: peg type, price and circulating supply. |
Use cases
- TVL dashboards — build a DeFi TVL leaderboard that refreshes on a schedule.
- Yield screening — surface pools above a target APY on specific chains.
- Stablecoin monitoring — track circulating supply and peg mechanisms across the market.
- Research pipelines — feed clean protocol and chain data into models or internal analytics.
- Dataset building — assemble a structured snapshot of the DeFi market.
How to scrape DefiLlama data
- Add DefiLlama Scraper to your Apify account and open its input.
- Pick a dataset:
protocols,yields,chainsorstablecoins. - Set filters — chains, categories, minTvl, minApy — and a maxItems cap.
- Click Run.
- Export the results as JSON, CSV, Excel or XML, or fetch them through the Apify API.
Input
{
"dataset": "protocols",
"chains": ["Ethereum", "Arbitrum"],
"categories": ["Dexs", "Lending"],
"minTvl": 1000000,
"minApy": 0,
"maxItems": 200
}
| Field | Description |
|---|---|
dataset |
Which dataset to scrape: protocols, yields, chains or stablecoins. |
chains |
Only include items on these chains (e.g. Ethereum, Solana). Empty = all chains. |
categories |
For protocols: keep only these exact DefiLlama categories. Empty = all. |
minTvl |
Minimum total value locked (USD) an item must have. |
minApy |
For the yields dataset: minimum APY % a pool must have. |
maxItems |
Cap on output items (0 = all). Highest TVL/APY kept first. |
What you get
Each record is a flat JSON object; the example below is from the protocols dataset. Ready to export to CSV, Excel, JSON or XML.

{
"name": "Lido",
"symbol": "LDO",
"category": "Liquid Staking",
"chain": "Ethereum",
"chains": ["Ethereum", "Moonbeam", "Moonriver"],
"tvl": 32150000000,
"change1h": 0.12,
"change1d": -1.45,
"change7d": 3.88,
"url": "https://lido.fi",
"description": "Lido is a liquid staking solution.",
"logo": "https://icons.llama.fi/lido.png",
"geckoId": "lido-dao",
"defillamaUrl": "https://defillama.com/protocol/lido"
}
Output schema (protocols dataset)
| Field | Type | Description |
|---|---|---|
name |
string | Protocol name. |
symbol |
string | Token symbol for the protocol. |
category |
string | DefiLlama category (e.g. Dexs, Lending). |
chain |
string | Primary chain for the protocol. |
chains |
array | All chains the protocol runs on. |
tvl |
number | Total value locked in USD. |
change1h |
number | Price/TVL change over the last hour (%). |
change1d |
number | Change over the last day (%). |
change7d |
number | Change over the last 7 days (%). |
url |
string (URL) | The protocol's own website. |
description |
string | Short description of the protocol. |
logo |
string (URL) | URL of the protocol's logo. |
geckoId |
string | Associated CoinGecko id, when available. |
defillamaUrl |
string (URL) | Direct link to the DefiLlama page. |
The yields, chains and stablecoins datasets return their own relevant fields (for example apy, apyBase, poolId for yields, and pegType, price, circulating for stablecoins).
Need more market data?
- CoinGecko Scraper — live crypto prices, market cap, volume and ATH/ATL.
- Yahoo Finance Scraper — live quotes and OHLCV history for stocks, ETFs, crypto and forex.
- SEC EDGAR Filings Scraper — 10-K, 10-Q and 8-K filings by ticker or CIK.
FAQ
Do I need an account or API key? No. There is no login or key — just set your inputs and click Run.
How many items can I get per run?
Set maxItems to cap the output, or use 0 to fetch everything in the chosen dataset. Results are sorted by TVL (or APY for yields), so a cap keeps the largest entries first.
Which datasets can I scrape?
Protocols, yields, chains and stablecoins — selectable with the dataset input.
How fresh is the data? It reflects DefiLlama's latest published values at the moment the run starts.
What export formats are available? JSON, CSV, Excel and XML, plus programmatic access through the Apify API.
Can I connect this to my other tools? The DefiLlama Scraper can be connected with almost any cloud service or web app thanks to integrations on the Apify platform. It works with Make, Zapier, Slack, Airbyte, GitHub, Google Drive and many more, plus the Apify API, JavaScript/Python clients and MCP. Or use webhooks to trigger an action whenever a run finishes.
Is this official DefiLlama data? The data reflects public DefiLlama analytics, but this actor is an independent tool and is not affiliated with or endorsed by DefiLlama.
Notes
Original clean-room implementation. Returns only public market data; you are responsible for compliant use. Not affiliated with DefiLlama; all trademarks belong to their respective owners.
Input
| Field | Type | Description |
|---|---|---|
datasetDataset | string · protocols, yields, chains, stablecoins | Which DefiLlama dataset to scrape. Default: "protocols" |
chainsFilter by chains | array | Only include items on these chains, e.g. "Ethereum", "Arbitrum", "Solana". Empty = all chains. |
categoriesFilter by category (protocols) | array | Only include protocols in these DefiLlama categories (exact names), e.g. "Dexs", "Lending", "Liquid Staking", "Derivatives", "CDP", "Yield". Empty = all. |
minTvlMinimum TVL (USD) | integer | Only include items with at least this total value locked. Default: 0 |
minApyMinimum APY % (yields) | integer | For the yields dataset: only include pools with at least this APY. Default: 0 |
maxItemsMax items | integer | Maximum items to output (0 = all). Default: 0 |
API
curl -X POST "https://api.apify.com/v2/acts/hipersoft~defillama-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"chains": [
"Ethereum",
"Arbitrum"
],
"categories": [
"Dexs",
"Lending"
]
}'from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("hipersoft/defillama-scraper").call(run_input={
"chains": [
"Ethereum",
"Arbitrum"
],
"categories": [
"Dexs",
"Lending"
]
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('hipersoft/defillama-scraper').call({
"chains": [
"Ethereum",
"Arbitrum"
],
"categories": [
"Dexs",
"Lending"
]
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);Pricing
| Event | Price | Paid plans from |
|---|---|---|
| Item scraped One DeFi protocol, yield pool, chain or stablecoin with its metrics | $0.0008 | $0.0004 |
| API request One DefiLlama dataset fetch (protocols, yields, chains or stablecoins) | $0.001 | $0.001 |
You pay only for what the run returns. Set a maximum cost per run and it stops cleanly at that limit.
Related scrapers
Carousell Scraper
Scrape Carousell search listings: title, price, condition, location, seller, photo and URL. Requires your own Carousell app token.
242 runs · 2 users · $0.003 / listing scrapedGoogle Flights Scraper
Scrape flight options from Google Flights by route and date: airline, flight number, departure and arrival times, duration, stops, layovers and price. One-way or round-trip, any cabin and currency. For travel and price monitoring.
216 runs · 4 users · $0.004 / flight scrapedPinterest Scraper
Search Pinterest and scrape pins (title, description, destination link, image, pinner, board, saves), boards and users. Fast. For visual research, e-commerce, trend and marketing analysis.
151 runs · 2 users · $0.0034 / item scrapedGoogle Trends Scraper
Scrape Google Trends for any keyword: interest over time, related and rising queries, and interest by region. Per country and timeframe. For SEO, market and trend research. No setup.
139 runs · 6 users · $0.001 / keyword scrapedAliExpress Product Search Scraper
Search AliExpress by keyword and export one clean row per product — title, sale price, original price, image and product URL. Export to JSON, CSV or Excel.
135 runs · 3 users · $0.003 / product scrapedGoogle Maps Scraper
Search Google Maps and scrape places: name, category, full address, city, coordinates, rating, phone, website, Place ID and map link. Fast browser-free via Google's internal endpoint, no setup. For local lead generation and market research.
130 runs · 2 users · $0.005 / place scrapedSend the site and the fields. We build it and you get it first.