DeFi Protocols TVL & Yield Scraper avatar

DeFi Protocols TVL & Yield Scraper

Pricing

from $10.20 / 1,000 results

Go to Apify Store
DeFi Protocols TVL & Yield Scraper

DeFi Protocols TVL & Yield Scraper

Scrape DeFi protocols with current TVL, category, chains, 1d/7d change, market cap and mcap/TVL ratio. Switch modes to get total value locked per blockchain or liquidity pools with APY. Filter by category, chain or minimum TVL and sort by TVL or momentum. Export to JSON, CSV or Excel.

Pricing

from $10.20 / 1,000 results

Rating

0.0

(0)

Developer

Scrapers Lat

Scrapers Lat

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

14 hours ago

Last modified

Share

DeFi Protocols TVL & Yield Scraper

DeFi Protocols TVL & Yield Scraper

Here is one real result, with every field the actor returns in protocols mode (chains trimmed to the first 6 of 11 for length; all other values are exactly as returned):

{
"name": "PancakeSwap AMM",
"slug": "pancakeswap-amm",
"category": "Dexs",
"symbol": "CAKE",
"tokenAddress": "bsc:0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82",
"chains": ["Binance", "Ethereum", "Aptos", "zkSync Era", "Base", "Arbitrum"],
"chainCount": 11,
"tvl": 1733995842.0122418,
"change1d": 2.54,
"change7d": 2.33,
"change1h": -0.12,
"staking": 37252823.87,
"pool2": null,
"mcap": null,
"mcaptvl": null,
"chainTvl": {
"Binance": 1730695097.32,
"Ethereum": 1345223.01,
"Aptos": 896771.49,
"Base": 345865.5,
"zkSync Era": 363970.37,
"Arbitrum": 203348.37,
"staking": 37252823.87
},
"audits": 2,
"auditLinks": ["https://docs.pancakeswap.finance/#is-it-safe"],
"oracles": null,
"governanceIds": null,
"github": null,
"tags": ["AMM"],
"parentProtocol": "pancakeswap",
"forkedFrom": null,
"rugged": null,
"deprecated": null,
"deadUrl": null,
"deadFrom": null,
"url": "https://pancakeswap.finance/",
"twitter": "https://twitter.com/PancakeSwap",
"geckoId": null,
"cmcId": null,
"listedAt": null,
"description": "The #1 AMM and yield farm on Binance Smart Chain",
"logo": "https://icons.llamao.fi/icons/protocols/pancakeswap-amm",
"aiSummary": "PancakeSwap is a leading automated market maker (AMM) and yield farming platform primarily operating on the Binance Smart Chain, with a total value locked (TVL) of approximately $1.73 billion.",
"aiRiskFlags": [],
"aiRiskLevel": "low",
"source": "DefiLlama",
"observedAt": "2026-08-14T07:10:15.564Z"
}

The most complete DeFi protocols scraper available. It returns every field DefiLlama exposes for each protocol, including TVL, per-chain TVL, momentum, audits, tokens and links, plus opt-in AI summaries and risk red-flags, and gives you category, chain, minimum-TVL and sort filters across three modes (protocols, chains, and yield pools).

📥 Input · 📤 Output · 💰 Pricing · ▶️ Examples

Apify Coverage Output Billing

Table of contents

What it does

The actor reads DeFi data from DefiLlama in one of three modes. protocols returns DeFi protocols with TVL, per-chain TVL, momentum (1h/1d/7d change), category, audits, tokens and links. chains returns total value locked per blockchain. yields returns liquidity pools with APY. Filters for category (or project in yields mode), chain, minimum TVL and sort order narrow the results, sorted by TVL or by momentum. Missing source values are returned as null, never invented.

Two opt-in AI add-ons (protocols mode only) attach a plain-English protocol summary and DeFi due-diligence risk red-flags (rugged, deprecated, unaudited, forked, sharp TVL drop) with an overall risk level. They are off by default and only run for paying Apify users.

Quickstart

Open the actor, paste this into the input, and press Run. It returns the two largest DEX protocols above 1M TVL, with AI summary and risk.

{
"mode": "protocols",
"category": "dexs",
"maxProtocols": 2,
"minTvl": 1000000,
"sort": "tvl",
"withSummary": true,
"withRisk": true
}

Switch mode to chains for per-blockchain TVL or yields for pools with APY. Default maxProtocols is 10.

Input reference

FieldTypeRequiredDefaultDescription
maxProtocolsintegerno10Maximum number of records to collect.
modeenumnoprotocolsWhat to collect: protocols (TVL, category, chains), chains (TVL per blockchain), or yields (pools with APY).
categorystringno(empty)In protocols mode keep only one category (for example Dexes, Lending, Liquid Staking, CDP). In yields mode keep only one project (for example aave-v3, lido).
chainstringno(empty)Keep only protocols, pools or the chain matching this blockchain (for example Ethereum, Solana, Base, Arbitrum).
minTvlintegerno(none)Keep only records whose total value locked is at least this many US dollars.
sortenumnotvlOrder by tvl (highest first) or change (biggest 1-day change / APY move first).
withSummarybooleannofalsePaid add-on (protocols mode). AI plain-English overview of each protocol. Billed per summary. Disabled on free plans.
withRiskbooleannofalsePaid add-on (protocols mode). AI due-diligence red flags and overall risk level. Billed per analysis. Disabled on free plans.

Output reference

One dataset item per record. The fields below cover protocols mode; chains and yields modes return their own record shapes. Types: string, number, integer, boolean, string[], object, or null when the source value is absent.

FieldTypeDescription
namestringProtocol name.
slugstringDefiLlama protocol slug.
categorystringProtocol category, for example Dexs, Lending.
symbolstringGovernance/token symbol, else null.
tokenAddressstringToken contract address (chain-prefixed), else null.
chainsstring[]Blockchains the protocol operates on.
chainCountintegerNumber of chains.
tvlnumberTotal value locked in USD.
change1dnumber1-day TVL change percentage.
change7dnumber7-day TVL change percentage.
change1hnumber1-hour TVL change percentage.
stakingnumberValue staked in the protocol's own token, else null.
pool2numberPool2 liquidity value, else null.
mcapnumberMarket cap in USD, else null.
mcaptvlnumberMarket cap to TVL ratio, else null.
chainTvlobjectTVL per chain as {chain: usd}.
auditsintegerAudit count indicator.
auditLinksstring[]Links to audit reports.
oraclesstring[]Oracles used, else null.
governanceIdsstring[]Governance identifiers, else null.
githubstring[]GitHub org handles, else null.
tagsstring[]Protocol tags.
parentProtocolstringParent protocol slug, else null.
forkedFromstring[]Protocols this one was forked from, else null.
ruggedbooleantrue if flagged as rugged, else null.
deprecatedbooleantrue if deprecated, else null.
deadUrlbooleantrue if the site is dead, else null.
deadFromstringDate the protocol went dead, else null.
urlstringProtocol website URL.
twitterstringTwitter / X URL, else null.
geckoIdstringCoinGecko ID, else null.
cmcIdstringCoinMarketCap ID, else null.
listedAtintegerUnix timestamp the protocol was listed, else null.
descriptionstringProtocol description.
logostringLogo image URL.
aiSummarystringAI protocol summary. null unless withSummary is enabled.
aiRiskFlagsstring[]AI due-diligence red flags. null unless withRisk is enabled.
aiRiskLevelstringAI overall risk level. null unless withRisk is enabled.
sourcestringData source label (DefiLlama).
observedAtstringISO 8601 timestamp of when the record was collected.
errorstringPresent only on a failed run, where a single item with a populated error field is written instead.

Example output record

Real record from a live run (input {"mode":"protocols","category":"dexs","maxProtocols":2,"minTvl":1000000,"withSummary":true,"withRisk":true,"sort":"tvl"}), with chains trimmed for length:

{
"name": "PancakeSwap AMM",
"slug": "pancakeswap-amm",
"category": "Dexs",
"symbol": "CAKE",
"tokenAddress": "bsc:0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82",
"chains": ["Binance", "Ethereum", "Aptos"],
"chainCount": 11,
"tvl": 1733995842.0122418,
"change1d": 2.54,
"change7d": 2.33,
"change1h": -0.12,
"staking": 37252823.87,
"chainTvl": { "Binance": 1730695097.32, "Ethereum": 1345223.01, "staking": 37252823.87 },
"audits": 2,
"auditLinks": ["https://docs.pancakeswap.finance/#is-it-safe"],
"tags": ["AMM"],
"parentProtocol": "pancakeswap",
"url": "https://pancakeswap.finance/",
"twitter": "https://twitter.com/PancakeSwap",
"description": "The #1 AMM and yield farm on Binance Smart Chain",
"logo": "https://icons.llamao.fi/icons/protocols/pancakeswap-amm",
"aiSummary": "PancakeSwap is a leading automated market maker (AMM) and yield farming platform primarily operating on the Binance Smart Chain, with a TVL of approximately $1.73 billion.",
"aiRiskFlags": [],
"aiRiskLevel": "low",
"source": "DefiLlama",
"observedAt": "2026-08-14T07:10:15.564Z"
}

Run via API and CLI

Start a run and wait for it to finish, then read the dataset. Replace <TOKEN> with your Apify API token.

Run synchronously and get dataset items in one call:

curl -X POST "https://api.apify.com/v2/acts/scrapers_lat~defillama-protocols-scraper/run-sync-get-dataset-items?token=<TOKEN>" \
-H "Content-Type: application/json" \
-d '{"mode":"protocols","category":"Lending","chain":"Ethereum","minTvl":10000000,"maxProtocols":25}'

Start a run asynchronously:

curl -X POST "https://api.apify.com/v2/acts/scrapers_lat~defillama-protocols-scraper/runs?token=<TOKEN>" \
-H "Content-Type: application/json" \
-d '{"mode":"yields","category":"aave-v3","sort":"change","maxProtocols":100}'

Apify CLI:

apify call scrapers_lat/defillama-protocols-scraper \
--input '{"mode":"chains","sort":"tvl","maxProtocols":20}'

Fetch results

Every run writes to a dataset. Fetch items as JSON, CSV, or Excel by changing format:

# JSON
curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<TOKEN>&clean=true&format=json"
# CSV
curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<TOKEN>&clean=true&format=csv"
# Paginate large datasets
curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<TOKEN>&offset=1000&limit=1000"

<DATASET_ID> is returned as defaultDatasetId in the run object. Use offset and limit to page through large result sets. clean=true drops empty and internal fields.

Billing and limits

  • Pay per result. You are charged per record returned (result event). See the pricing tab for the current per-result price.
  • Opt-in add-ons. The two AI add-ons (withSummary, withRisk) are billed as separate events only when they run and succeed, and only in protocols mode. They are off unless enabled on a paid plan.
  • No charge on failure. If a run errors, the actor writes a single item with a populated error field and does not charge for it. Empty runs cost nothing.
  • Spend cap respected. Set maxTotalChargeUsd on the run; once reached, the actor stops emitting and charging further billable results.
  • Free Apify plans are capped at 10 records per run. Upgrade for higher maxProtocols.

FAQ and troubleshooting

A run returned 0 records. Why? The filter combination matched nothing. Loosen minTvl, remove chain or category, or check the spelling. Zero-result runs are not charged.

What is the difference between the three modes? protocols returns DeFi protocols with TVL and fundamentals, chains returns TVL per blockchain, and yields returns liquidity pools with APY.

How do I filter one project's pools? Use mode: "yields" and set category to the project slug, for example aave-v3 or lido.

Why are mcap or github null? DefiLlama did not publish that value for the protocol. Missing source values are returned as null, never invented.

Why are the AI fields null? The AI add-ons are opt-in, protocols-mode only, and run only for paying Apify users. Enable withSummary or withRisk on a paid plan.

Is this an official DefiLlama tool? No. This actor is independent and reads only data that is publicly available through DefiLlama. Always do your own research before interacting with any protocol.

More scrapers at scrapers.lat

Built and maintained by scrapers.lat, where we publish scrapers for US and Latin American public platforms: company registries, government data, finance, e-commerce and more. Browse the catalog or request a custom scraper at scrapers.lat.


Independent tool, not affiliated with DefiLlama or any protocol. Accesses only publicly available data. Always do your own research before interacting with any protocol.