DefiLlama Scraper: TVL, Yields, Stablecoins, Hacks
Pricing
from $12.00 / 1,000 results
DefiLlama Scraper: TVL, Yields, Stablecoins, Hacks
Scrape DefiLlama data on DeFi: protocols with TVL, fees, revenue and volume, yield pools with APY and risk flags, stablecoin supply and peg, chain rankings and the history of hacks. Valuation ratios and trends included. Export to CSV or Excel.
DefiLlama Scraper: DeFi Protocols, Yields, Stablecoins, Chains and Hacks
This DefiLlama scraper turns the open data of DefiLlama into clean tables for the whole DeFi market. Pick a mode and get one row per protocol, yield pool, stablecoin, blockchain or hack. Protocol rows carry the value locked, its change over an hour, a day and a week, fees, revenue and trading volume, and valuation ratios that DefiLlama does not give in one place: market cap to TVL, price to fees, price to revenue and the annual fees as a share of TVL. Yield rows carry the base yield, the reward yield, the 30 day average, the trend forecast and a rule based risk screen.
The other modes cover stablecoin supply with the peg deviation and the chains that hold each coin, a ranking of blockchains by TVL with the stablecoins on each, and the full history of hacks with amounts, techniques, targets and the funds returned.
DeFi investors, analysts, researchers, journalists, risk teams and tool builders use it to screen protocols, compare yields and track the market without opening dozens of pages.
What can you do with this DefiLlama scraper?
- Rank protocols by TVL, fees, revenue, volume or growth
- Find protocols that grew or shrank by a set percent in a week
- Find the newest protocols that already have fees
- Compare how expensive a token is against the fees and revenue it earns
- Find yield pools above a minimum APY, on stablecoins, without impermanent loss
- Drop pools whose yield comes mostly from reward tokens
- Watch which stablecoins lost their peg and how much supply moved
- See which chains hold the most TVL and the most stablecoins
- Study hacks by year, technique, chain and amount lost
- Export to CSV or Excel, or send the tables to your own tools
What data can you extract?
| Mode | One row is | Highlights |
|---|---|---|
| Protocols | One protocol | Name, category, chains and top chains with their share, TVL, change 1 hour, 1 day and 7 days, market cap, market cap to TVL, fees, revenue and volume for 24 hours, 7 days and 30 days, annualized revenue, annual fees to TVL, price to fees, price to revenue, listing date, age, audits, forks, links |
| Yield pools | One pool | Chain, project, symbol, pool note, TVL, APY, base APY, reward APY, reward share, 30 day average APY, APY versus average, APY change over 1, 7 and 30 days, impermanent loss risk, exposure, predicted trend with its probability, days of history, reward and underlying tokens, risk flags |
| Stablecoins | One stablecoin | Name, symbol, peg type and mechanism, price, deviation from the peg, off peg flag, supply, market share, supply change over 1, 7 and 30 days, number of chains, dominant chain, top chains with their share |
| Chains | One blockchain | Rank, name, token, chain id, TVL, share of all TVL, stablecoins on the chain, stablecoins to TVL |
| Hacks | One incident | Date, year, name, amount lost, funds returned, net loss, chains, classification, technique, target type, bridge flag, description, source |
How to scrape DefiLlama
- Choose Protocols, Yield pools, Stablecoins, Chains or Hacks.
- Add search words, chains, categories or projects.
- Add filters: minimum TVL, APY, supply, dates and more.
- Choose how to sort, set Max Items and click Start.
- Export the dataset as CSV, Excel or from the Apify console.
Input example
{"mode": "yields","chains": ["Ethereum", "Base", "Arbitrum"],"minTvlUsd": 5000000,"stablecoinsOnly": true,"noImpermanentLoss": true,"sortBy": "apy","maxItems": 100}
Protocol output example
{"name": "Aave V3","category": "Lending","chainCount": 21,"tvlUsd": 15346842379,"tvlChange7dPct": -7.5,"fees24hUsd": 1242729,"revenue24hUsd": 151284,"annualizedRevenueUsd": 87697448,"annualizedFeesToTvlPct": 4.09,"listedAt": "2022-04-01","auditCount": 2}
Stablecoin output example
{"name": "Tether","symbol": "USDT","pegMechanism": "fiat-backed","priceUsd": 0.99884,"depegPct": -0.116,"change30dPct": -3.11,"dominantChain": "Tron"}
How much does it cost to scrape DefiLlama?
You pay per result: $16 per 1,000 rows plus a tiny start fee. The free plan returns up to 10 rows per run.
Tips for better results
- TVL, fees and volume are what DefiLlama tracks and publishes. Methods differ by protocol, so compare within a category.
- Fees, revenue and volume come from separate lists and are joined by name, so a protocol without a match has empty columns. Turn off the earnings option to skip those three extra lists.
- Price to fees and price to revenue need the market cap, which many protocols do not have, and parent protocols hold the market cap of their versions.
- The default for yield pools drops pools that DefiLlama marks as outliers. Turn on keep outliers to see them.
- A high APY is often temporary reward tokens. The reward share and the risk flags help to see that.
- The predicted trend is DefiLlama's own model. Treat it as a hint, not a promise.
- Stablecoin deviation is the price against one dollar for dollar coins. A small gap is normal for the market price.
- Hacks include centralized exchanges and some very large incidents. Use the target type to keep what you need.
- DefiLlama keeps raises, bridge volumes and emissions behind a paid plan, so they are not in this Actor.
Who uses this data?
- DeFi investors and analysts screen protocols and yields.
- Risk and compliance teams watch pegs, hacks and concentration.
- Researchers and journalists study the market over time.
- Tool and dashboard builders feed charts and alerts.
- Token teams compare themselves with peers.
Automate and connect
Schedule the Actor every day and send the tables to Google Sheets, Slack, Telegram, Zapier, Make or n8n, or trigger a webhook when a run ends.
FAQ
Do I need an account or a login? No. The Actor works without any login.
Does it give financial advice? No. It collects public data and simple rule based flags. Do your own research.
How current is the data? The Actor reads DefiLlama when you run it. TVL and yields update many times a day.
Does it return history over time? No. It returns the current state and the changes over short periods. Schedule runs to build your own history.
Which blockchains are covered? All the chains that DefiLlama tracks, hundreds of them.
Legal note
This Actor collects information that is publicly visible on the website. The data belongs to DefiLlama and its sources, so credit DefiLlama when you publish results. Check the source site's terms and your local rules before using the data. Nothing here is investment advice.
Support
Missing a field or found a bug? Open an issue from the Actor page.