DefiLlama Yields Scraper
Pricing
from $3.50 / 1,000 results
DefiLlama Yields Scraper
Scrape DeFi yield & APY pools from DefiLlama β APY, TVL, base/reward yield, 1d/7d/30d APY trend, impermanent-loss risk and volume for 20,000+ pools across every chain. Filter by chain, protocol, TVL and APY. Schedule it daily to track the best yields.
Pricing
from $3.50 / 1,000 results
Rating
0.0
(0)
Developer
Logiover
Maintained by CommunityActor stats
0
Bookmarked
804
Total users
27
Monthly active users
2 days ago
Last modified
Categories
Share
π° DefiLlama Yields Scraper β DeFi APY & TVL Pool Data Across All Chains

Bulk export of 20,000+ DeFi yield pools from DefiLlama β the most trusted DeFi data source β in one run, with one flat dataset. APY breakdown (total, base, reward, 30-day mean), 1d / 7d / 30d APY trend, TVL, 1d / 7d USD volume, impermanent-loss risk, stablecoin flag, exposure type, reward tokens, project, chain and pool URL β for every yield-bearing pool across Ethereum, Arbitrum, Solana, Base, Optimism, Polygon, BSC, Avalanche, Sui, TON and every other DefiLlama-indexed chain.
Built for yield farmers, yield-farming bots, DeFi strategy researchers, treasury managers, stablecoin yield aggregators, DeFi index products, dashboards and newsletters, risk desks, quant teams running carry / basis / yield strategies, and on-chain product teams that need the full DefiLlama yields feed on a recurring schedule β without writing pagination, retry, filter and sort logic by hand.
π’ No login. No API key required. No headless browser. Pure official DefiLlama public API.
What this scraper does
DefiLlama's yields database is the canonical cross-protocol, cross-chain source of truth for DeFi APYs. It covers:
- Money markets (Aave, Compound, Morpho, Spark, Radiant, Benqi, Venus)
- Liquid staking (Lido, Rocket Pool, Frax, Jito, Marinade, Coinbase cbETH, Binance WBETH)
- Liquid restaking (EigenLayer LRTs β ether.fi, Renzo, Kelp, Puffer, Swell)
- DEX LPs (Uniswap V2/V3, PancakeSwap, Curve, Balancer, Aerodrome, Velodrome, Raydium, Orca, Meteora)
- Stablecoin-only pools (Curve 3pool, Maker DSR, sky.money sUSDS, Ethena sUSDe, Sky USDS, Frax sFrxUSD)
- Vaults and yield optimizers (Yearn, Beefy, Convex, Pendle, Spectra)
- Real-world-asset (RWA) yields (Ondo USDY, Maple, Goldfinch, Centrifuge)
- Real-yield perpetuals (GMX, Gains, Drift)
- LP boosts, reward token incentives, gauge bribes
The raw DefiLlama yields endpoint returns 20,000+ pool rows in deeply nested JSON. This DefiLlama yields scraper filters them by chain, protocol, minimum TVL, APY range and stablecoin-only flag, sorts by your preferred metric, flattens to clean rows, and exports to JSON / CSV / Excel β ready for your yield-farming bot, your strategy spreadsheet, or your DeFi research notebook.
β¨ Key features
| Feature | What it gives you |
|---|---|
| π° 20,000+ yield pools | Every yield-bearing pool DefiLlama tracks, across every chain, in one run |
| π Full APY breakdown | Total APY + base APY + reward APY + 30-day mean APY β see exactly where the yield comes from |
| π APY trend data | 1d / 7d / 30d APY change % so you can spot rising or fading pools before others do |
| π΅ TVL and volume | Total value locked + 1-day and 7-day USD volume per pool |
| β οΈ Risk signals | Stablecoin flag, impermanent-loss risk classification, exposure type (single / multi) |
| π Reward token data | Which tokens each pool pays as incentives (the rewardTokens array) |
| π Powerful filters | By chain, protocol, minimum TVL, APY range (min/max), stablecoin-only β combine freely |
| π Sort the output | Rank by tvlUsd, apy, apyBase, apyReward or volumeUsd1d |
| π Multichain coverage | Ethereum, Arbitrum, Optimism, Base, BSC, Polygon, Avalanche, Solana, Sui, TON, Aptos, Scroll, Linea, zkSync, Blast, Mode, Berachain, Sonic, Monad and every other DefiLlama-indexed chain |
| π€ Flat structured rows | 22 columns, no nested JSON wrangling |
| πΎ JSON, CSV, Excel exports | Direct Apify Dataset β any format |
| π Public API only | No login, no API key, no Cloudflare bypass |
| β° Schedule-ready | Designed for hourly / daily recurring runs |
π― Built for these use cases
1. Yield farmers and yield-farming bots
Daily (or hourly) refresh of the highest-APY pools above your TVL and risk thresholds. Filter to your chain whitelist, set minApy=5, maxApy=100 (kill obvious scams), stablecoinOnly=true for low-IL plays β sort by apy desc. One clean ranked table you can drive your bot from.
2. DeFi strategy researchers
Pull all pools, filter to a specific protocol family (e.g. aave-v3, compound-v3, morpho-blue) across all chains, compare base APY vs. reward APY to see which chain offers the best risk-adjusted yield for the same protocol.
3. Stablecoin yield aggregators and treasury management
Set stablecoinOnly=true, minTvlUsd=1000000, and surface the highest-yielding stablecoin pools across every chain for treasury deployment. Ideal for DAO treasuries, stablecoin issuers and on-chain neobanks.
4. Liquid staking and restaking dashboards
Filter projects to lido, rocket-pool, ether.fi, renzo, kelp-dao, puffer-finance, swell-network, jito, marinade, frax-ether etc. Compare APYs across LSTs and LRTs in one view.
5. DeFi index and structured products
Build composable yield indexes (e.g. "top 10 stablecoin pools by 30d mean APY"). The 30-day mean APY field is specifically designed for index construction so you don't chase noisy daily spikes.
6. APY backtesting and quant research
Schedule daily runs to build a longitudinal record of APY, TVL and reward APY for every pool. Backtest yield-rotation strategies on real historical data instead of relying on protocol-specific exports.
7. DeFi dashboards and newsletters
Power an always-fresh yield leaderboard. Daily "biggest APY movers" sections for crypto newsletters. "New high-yield pool" alerts via Slack / Discord / Telegram.
8. Risk and IL-screening tools
Use the ilRisk classification and exposure field to filter out high-IL exposures. Combine with apyMean30d (vs. spot APY) to detect "fake" yields that exist only on the day of scraping.
π₯ Inputs
| Field | Type | Required | Description |
|---|---|---|---|
chains | string[] | No | Filter to specific chains. Examples: Ethereum, Arbitrum, Optimism, Base, BSC, Polygon, Avalanche, Solana, Sui, TON, Aptos, Scroll, Linea, zkSync Era, Blast, Berachain, Sonic, Monad. Leave empty for all chains. |
projects | string[] | No | Filter to specific protocols. Examples: aave-v3, compound-v3, morpho-blue, lido, rocket-pool, ether.fi, renzo, pendle, uniswap-v3, curve-dex, pancakeswap-amm, aerodrome-v1, velodrome-v2, yearn-finance, beefy, convex-finance. Leave empty for all. |
minTvlUsd | int | No | Drop pools below this TVL β filters out tiny / risky pools. Default 10000. |
minApy | int | No | Only pools with APY at or above this percentage. 0 = no filter. Default 0. |
maxApy | int | No | Only pools with APY at or below this percentage β filters out unrealistic / scam APYs. 0 = no filter. Default 0. |
stablecoinOnly | boolean | No | Only stablecoin pools (lower impermanent-loss risk). Default false. |
sortBy | string (enum) | No | Rank pools by this metric. One of tvlUsd, apy, apyBase, apyReward, volumeUsd1d. Default tvlUsd. |
maxPools | int | No | Maximum pools to save. 0 = all (20,000+). |
Example inputs
Stablecoin yield hunt β Ethereum & Arbitrum, $1M+ TVL, 5β100% APY:
{"chains": ["Ethereum", "Arbitrum"],"projects": [],"minTvlUsd": 1000000,"minApy": 5,"maxApy": 100,"stablecoinOnly": true,"sortBy": "apy","maxPools": 200}
Aave V3 across all chains, sorted by TVL:
{"chains": [],"projects": ["aave-v3"],"minTvlUsd": 0,"sortBy": "tvlUsd"}
Top 50 highest base-APY pools across all chains and all protocols, $100k+ TVL:
{"minTvlUsd": 100000,"sortBy": "apyBase","maxPools": 50}
π€ Output
Each yield pool is saved as one structured row in the Apify Dataset. Export to JSON, CSV, Excel (XLSX), HTML or JSONL.
Sample row
{"poolId": "aa70268e-4b52-42bf-a116-608b370f9501","project": "aave-v3","symbol": "USDC","chain": "Ethereum","tvlUsd": 1487291344,"apy": 5.42,"apyBase": 4.91,"apyReward": 0.51,"apyPct1D": 0.03,"apyPct7D": -0.22,"apyPct30D": 1.18,"apyMean30d": 5.11,"stablecoin": true,"ilRisk": "no","exposure": "single","rewardTokens": ["0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9"],"volumeUsd1d": 184729311,"volumeUsd7d": 1198283471,"poolMeta": null,"url": "https://defillama.com/yields/pool/aa70268e-4b52-42bf-a116-608b370f9501","scrapedAt": "2026-05-16T12:42:18.000Z"}
Full field reference (21 fields)
| Field | Type | Meaning |
|---|---|---|
poolId | string | DefiLlama's unique pool UUID |
project | string | Protocol slug (e.g. aave-v3, lido, uniswap-v3, pendle) |
symbol | string | Pool token symbol (USDC, ETH-USDC, STETH, etc.) |
chain | string | Blockchain (Ethereum, Arbitrum, Solana, Base, β¦) |
tvlUsd | number | Total value locked in this pool, USD |
apy | number | Total annualized yield, % |
apyBase | number | Base APY from the underlying activity (lending interest, swap fees, staking rewards) |
apyReward | number | Additional APY from reward-token incentives (LP boosts, gauges, emissions) |
apyPct1D | number | Change in total APY over the last 1 day, percentage points |
apyPct7D | number | Change in total APY over the last 7 days |
apyPct30D | number | Change in total APY over the last 30 days |
apyMean30d | number | Mean total APY over the last 30 days β use this instead of spot APY for index construction |
stablecoin | boolean | true if the pool exposure is stablecoin-only |
ilRisk | string | Impermanent-loss risk classification (no, yes) |
exposure | string | Exposure type (single for single-asset, multi for LP pools) |
rewardTokens | string[] | Contract addresses of tokens paid as reward incentives |
volumeUsd1d | number | 1-day USD trading volume in the pool (where applicable, e.g. DEX LPs) |
volumeUsd7d | number | 7-day USD trading volume |
poolMeta | string | Extra pool description / metadata |
url | string | DefiLlama pool page URL |
scrapedAt | string | ISO 8601 timestamp when this row was saved |
βοΈ How it works
- Reads input β chain / project filters, TVL floor, APY range, stablecoin-only flag, sort key, pool cap.
- Pulls the DefiLlama
yields/poolsendpoint β returns the full 20,000+ pool snapshot in one response. - Filters in-stream β drops pools that fail your chain / project / TVL / APY / stablecoin filters.
- Sorts the filtered list by your chosen metric (
tvlUsd,apy,apyBase,apyReward,volumeUsd1d). - Trims to
maxPoolsif a cap was set. - Flattens every pool into a 21-field row.
- Streams rows into the Apify Dataset.
The scraper uses ONLY DefiLlama's officially-supported public API (yields.llama.fi/pools). No HTML scraping, no headless browser, no proxy, no anti-bot bypass. Endpoint is documented at api-docs.defillama.com.
β‘ Performance
| Workload | Time | API calls |
|---|---|---|
| All 20,000+ pools (no filter) | ~8β12 seconds | 1 |
| All Ethereum pools | ~8β12 seconds | 1 |
| All stablecoin pools, $1M+ TVL | ~8β12 seconds | 1 |
| Top 200 highest APY | ~8β12 seconds | 1 |
DefiLlama's yields endpoint returns the full snapshot in one large response, so every run is essentially the same cost regardless of filters.
π° Cost model
This actor uses Pay-Per-Result pricing β you pay only for the pool rows actually saved (after filters). Pools dropped by your filters are not billed.
Typical run sizes:
- Top 50 highest-APY pools β 50 rows
- All Aave V3 pools across all chains β ~50β80 rows
- Stablecoin pools above $1M TVL β ~300β600 rows
- All pools above $10k TVL β ~8,000β12,000 rows
- All pools, no filter β ~20,000 rows
π Schedule for continuous monitoring
This scraper plays nicely with Apify's scheduler. Common patterns:
- Every 15 minutes for active yield-farming bots (fast pool rotation)
- Every hour for yield dashboards and Discord / Telegram alert bots
- Every 4 hours for treasury rebalancing
- Daily for APY archives and longitudinal quant research
- Weekly for newsletter "best yields of the week" reports
Use Apify Webhooks to push the dataset into TimescaleDB, BigQuery, Snowflake, Postgres, Google Sheets, Slack, Discord, Make.com, n8n, or your own yield-farming infrastructure.
π οΈ FAQ
Do I need a DefiLlama API key? No. DefiLlama's yields endpoint is public, free, and requires no authentication.
How many pools are in there? 20,000+ at the time of writing, growing as new protocols are listed. The free public endpoint returns all of them in one response.
What's the difference between apy, apyBase and apyReward?
apy = total annualized yield. apyBase = the "real" yield from the underlying activity (lending interest, swap fees, staking rewards). apyReward = additional yield from token emissions / incentives. A pool with high apyReward and low apyBase is incentive-dependent β when incentives end, APY collapses.
Why use apyMean30d instead of apy?
Spot APY can spike or crash on the day of scraping. The 30-day mean smooths out noise and is the right input for index construction, strategy backtests and "real" yield comparisons.
What does ilRisk mean?
Impermanent-loss risk classification. no for single-asset pools (lending, single-sided staking, LRT vaults). yes for multi-token LPs where token-pair divergence creates IL exposure.
What chains are covered? Every chain DefiLlama indexes β Ethereum, Arbitrum, Optimism, Base, BSC, Polygon, Avalanche, Solana, Sui, TON, Aptos, Tron, Cronos, Fantom, Sonic, Berachain, Monad, Linea, Mantle, Scroll, zkSync Era, Blast, Mode, PulseChain, Manta, Sei, Celo, Gnosis, Moonbeam, Cosmos, Osmosis, Injective and many more.
How fresh is the data? DefiLlama refreshes its yields snapshot every ~1 hour. So scheduling more frequently than hourly gives you the same data multiple times β schedule hourly or longer for fresh updates.
Can I get historical APYs?
Not from a single run β this returns the current snapshot. To build a time series, schedule this scraper hourly / daily and aggregate. DefiLlama also offers a separate chartLendBorrow time-series endpoint for individual pools (not covered by this scraper).
Can I filter to a specific category (e.g. only lending pools)?
Not via input β project filters by protocol slug, not category. Filter by protocol downstream (aave-v3, compound-v3, morpho-blue, spark, radiant-v2, benqi-lending, venus-core-pool are the main lending protocols).
Does the actor respect DefiLlama's rate limits? Yes β one request per run, built-in backoff on HTTP 429. You can run unattended without getting throttled.
Can I export to CSV or Excel? Yes. Apify Dataset exports support JSON, CSV, Excel (XLSX), HTML and JSONL.
Can I integrate via webhook / API? Yes. Apify provides REST API access to runs and datasets. Trigger from Zapier, Make.com, n8n, custom code, or any HTTP client.
π Related scrapers
Combine this yields scraper with other crypto data scrapers in the suite to build a complete DeFi + spot + derivatives + on-chain stack:
| Scraper | Purpose |
|---|---|
defillama-yields-scraper | You are here. 20,000+ DeFi yield pools with APY breakdown, TVL, IL risk, 1d/7d/30d APY trend. |
defillama-protocols-scraper | All 7,000+ DeFi protocols with TVL, 1h/1d/7d TVL change, category, chains. |
coingecko-coins-market-scraper | Full crypto market table β 17,000+ coins with price, market cap, volume, supply, ATH/ATL. |
coingecko-derivatives-scraper | All 22,000+ derivative tickers (perpetuals + futures) with funding, OI, basis, volume. |
geckoterminal-dex-pools-scraper | On-chain DEX liquidity pools across 100+ networks (price, FDV, reserve, volume, txns). |
dexscreener-token-pairs-scraper | Token contract β every live DEX pair across every chain. |
dexscreener-search-pairs-scraper | Free-text symbol/name search β matching DEX pairs. |
crypto-exchange-tickers-scraper | CEX spot ticker tables across exchanges. |
π Keyword cloud
Core: defillama api, defillama scraper, defillama yields scraper, defi yields api, defi apy scraper, defi yield data, yield farming data, defi tvl data, defi pool scraper, crypto yield aggregator data, defi analytics, defi yield feed.
Per niche / protocol: aave yield data, compound yield data, morpho blue data, lido staking apy, rocket pool apr, eigenlayer restaking yield, ether.fi yield, renzo yield, pendle yield data, curve pool apy, uniswap v3 lp apr, balancer pool apy, pancakeswap apy, aerodrome lp apr, velodrome lp apr, gmx real yield, yearn vault apy, beefy vault apy, convex pool apy, ondo usdy yield, ethena susde yield, sky usds dsr.
Per use case: yield farming bot data, stablecoin yield search, defi treasury management, dao treasury yield, defi index construction, yield rotation strategy, defi strategy backtest, real yield search, low il yield search, yield dashboard data, yield alerting bot, defi research data, structured yield product data.
Per audience: defi data for yield farmers, defi data for analysts, defi data for treasury teams, defi data for index products, yield data for quants, yield data for newsletter operators, yield data for risk desks, yield data for portfolio dashboards.
Changelog
- 2026-06-01 β Maintenance & reliability pass: pulled the latest source and rebuilt the Actor on the current base image; build verified.
-
2026-05-25 β Maintenance & reliability pass: pulled the latest source and rebuilt the Actor on the current base image; build verified.
-
2026-05-20 β Maintenance pass: reviewed the input schema and default values for a smooth one-click start, and rebuilt the Actor on the latest base image.
Last reviewed: 2026-06-01.