DefiLlama Yields Scraper avatar

DefiLlama Yields Scraper

Pricing

from $3.50 / 1,000 results

Go to Apify Store
DefiLlama Yields Scraper

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

Logiover

Maintained by Community

Actor 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

DefiLlama Yields Scraper

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

FeatureWhat it gives you
πŸ’° 20,000+ yield poolsEvery yield-bearing pool DefiLlama tracks, across every chain, in one run
πŸ“Š Full APY breakdownTotal APY + base APY + reward APY + 30-day mean APY β€” see exactly where the yield comes from
πŸ“ˆ APY trend data1d / 7d / 30d APY change % so you can spot rising or fading pools before others do
πŸ’΅ TVL and volumeTotal value locked + 1-day and 7-day USD volume per pool
⚠️ Risk signalsStablecoin flag, impermanent-loss risk classification, exposure type (single / multi)
🎁 Reward token dataWhich tokens each pool pays as incentives (the rewardTokens array)
πŸ”Ž Powerful filtersBy chain, protocol, minimum TVL, APY range (min/max), stablecoin-only β€” combine freely
πŸ”ƒ Sort the outputRank by tvlUsd, apy, apyBase, apyReward or volumeUsd1d
🌐 Multichain coverageEthereum, 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 rows22 columns, no nested JSON wrangling
πŸ’Ύ JSON, CSV, Excel exportsDirect Apify Dataset β†’ any format
πŸ”“ Public API onlyNo login, no API key, no Cloudflare bypass
⏰ Schedule-readyDesigned 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

FieldTypeRequiredDescription
chainsstring[]NoFilter 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.
projectsstring[]NoFilter 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.
minTvlUsdintNoDrop pools below this TVL β€” filters out tiny / risky pools. Default 10000.
minApyintNoOnly pools with APY at or above this percentage. 0 = no filter. Default 0.
maxApyintNoOnly pools with APY at or below this percentage β€” filters out unrealistic / scam APYs. 0 = no filter. Default 0.
stablecoinOnlybooleanNoOnly stablecoin pools (lower impermanent-loss risk). Default false.
sortBystring (enum)NoRank pools by this metric. One of tvlUsd, apy, apyBase, apyReward, volumeUsd1d. Default tvlUsd.
maxPoolsintNoMaximum 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)

FieldTypeMeaning
poolIdstringDefiLlama's unique pool UUID
projectstringProtocol slug (e.g. aave-v3, lido, uniswap-v3, pendle)
symbolstringPool token symbol (USDC, ETH-USDC, STETH, etc.)
chainstringBlockchain (Ethereum, Arbitrum, Solana, Base, …)
tvlUsdnumberTotal value locked in this pool, USD
apynumberTotal annualized yield, %
apyBasenumberBase APY from the underlying activity (lending interest, swap fees, staking rewards)
apyRewardnumberAdditional APY from reward-token incentives (LP boosts, gauges, emissions)
apyPct1DnumberChange in total APY over the last 1 day, percentage points
apyPct7DnumberChange in total APY over the last 7 days
apyPct30DnumberChange in total APY over the last 30 days
apyMean30dnumberMean total APY over the last 30 days β€” use this instead of spot APY for index construction
stablecoinbooleantrue if the pool exposure is stablecoin-only
ilRiskstringImpermanent-loss risk classification (no, yes)
exposurestringExposure type (single for single-asset, multi for LP pools)
rewardTokensstring[]Contract addresses of tokens paid as reward incentives
volumeUsd1dnumber1-day USD trading volume in the pool (where applicable, e.g. DEX LPs)
volumeUsd7dnumber7-day USD trading volume
poolMetastringExtra pool description / metadata
urlstringDefiLlama pool page URL
scrapedAtstringISO 8601 timestamp when this row was saved

βš™οΈ How it works

  1. Reads input β€” chain / project filters, TVL floor, APY range, stablecoin-only flag, sort key, pool cap.
  2. Pulls the DefiLlama yields/pools endpoint β€” returns the full 20,000+ pool snapshot in one response.
  3. Filters in-stream β€” drops pools that fail your chain / project / TVL / APY / stablecoin filters.
  4. Sorts the filtered list by your chosen metric (tvlUsd, apy, apyBase, apyReward, volumeUsd1d).
  5. Trims to maxPools if a cap was set.
  6. Flattens every pool into a 21-field row.
  7. 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

WorkloadTimeAPI calls
All 20,000+ pools (no filter)~8–12 seconds1
All Ethereum pools~8–12 seconds1
All stablecoin pools, $1M+ TVL~8–12 seconds1
Top 200 highest APY~8–12 seconds1

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.


Combine this yields scraper with other crypto data scrapers in the suite to build a complete DeFi + spot + derivatives + on-chain stack:

ScraperPurpose
defillama-yields-scraperYou are here. 20,000+ DeFi yield pools with APY breakdown, TVL, IL risk, 1d/7d/30d APY trend.
defillama-protocols-scraperAll 7,000+ DeFi protocols with TVL, 1h/1d/7d TVL change, category, chains.
coingecko-coins-market-scraperFull crypto market table β€” 17,000+ coins with price, market cap, volume, supply, ATH/ATL.
coingecko-derivatives-scraperAll 22,000+ derivative tickers (perpetuals + futures) with funding, OI, basis, volume.
geckoterminal-dex-pools-scraperOn-chain DEX liquidity pools across 100+ networks (price, FDV, reserve, volume, txns).
dexscreener-token-pairs-scraperToken contract β†’ every live DEX pair across every chain.
dexscreener-search-pairs-scraperFree-text symbol/name search β†’ matching DEX pairs.
crypto-exchange-tickers-scraperCEX 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.