# DeFi Llama Yield Pools Scraper (`parseforge/llama-yields-scraper`) Actor

Scrapes DeFi Llama yield pools by project, chain, token symbol, or minimum TVL. Returns each pool as a flat row with APY, TVL, and identifiers.

- **URL**: https://apify.com/parseforge/llama-yields-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Business, Automation, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $7.69 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

[![ParseForge](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner.jpg)](https://apify.com/parseforge?fpr=vmoqkp)

### DeFi Llama Yield Pools Scraper

**Scrape DeFi Llama yield pools by project, chain, or token symbol, up to a million per run.** Each pool comes with its APY, TVL, and pool identifiers. No API key. Export to CSV, JSON, Excel, or XML.

DeFi Llama's yield data is spread across hundreds of protocols and chains, and the official API needs you to know exact pool IDs. This reads the public yield pool listings directly, filtered by project, chain, token symbol, or minimum TVL, and returns each match in one fixed schema.

| Who uses it | What they scrape DeFi Llama for |
|---|---|
| Yield farmers | Which pools currently offer the highest APY for a given token |
| DeFi analysts | How TVL and yields shift across chains and protocols |
| Portfolio managers | Which yield opportunities meet a minimum TVL threshold |
| Crypto researchers | What yield products exist for a specific project or token |

### What it does

This Actor collects DeFi Llama yield pools by project, chain, token symbol, or minimum TVL, and returns each one as a flat row.

- 🔍 **Project filter:** substring match on protocol name, for example aave, lido, uniswap.
- ⛓️ **Chain filter:** substring match on blockchain, for example Ethereum, Arbitrum, Base.
- 🪙 **Token symbol filter:** substring match on token symbol, for example USDC, ETH, DAI.
- 💰 **Minimum TVL:** only return pools with total value locked at or above a USD amount.
- 📦 **Maximum pools:** cap the number of yield pools collected per run, up to one million.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

### What you can do with DeFi Llama data

**🌾 Find the best yield for a token.**

A yield farmer filters by token symbol USDC and minimum TVL $1,000,000 to see which pools offer the highest APY with enough liquidity.

**📊 Track yields across chains.**

A DeFi analyst runs the Actor with chain filter Arbitrum to compare yield opportunities on that chain against Ethereum.

**🔎 Monitor a protocol's pools.**

A researcher filters by project aave to list all Aave yield pools and their current APY and TVL.

**💼 Screen for institutional-grade pools.**

A portfolio manager sets minimum TVL to $10,000,000 to only see pools large enough for a meaningful allocation.

### Why choose this scraper

| | What you get |
|---|---|
| **No API key** | Reads the public yield pool listings directly, no registration or rate limits. |
| **One fixed schema** | Every pool returns as a flat row with the same fields, ready for analysis. |
| **Filter as you go** | Project, chain, symbol, and TVL filters run before data is written, so your dataset stays clean. |
| **Export anywhere** | CSV, JSON, Excel, or XML, straight from the Apify platform. |

### How it compares

This Actor focuses on DeFi Llama yield pools with simple filters and a flat schema, while the competitors below offer broader or different crypto data.

| Feature | ParseForge | DeFi Yield & APY Scraper | Crypto Intel | Crypto Whale Wallet Tracker - ETH USDT USDC Holdings |
|---|---|---|---|---|
| Scrapes DeFi Llama yield pools | Yes | Not listed | Not listed | Not listed |
| Filter by project name | Yes | Not listed | Not listed | Not listed |
| Filter by chain | Yes | Not listed | Not listed | Not listed |
| Filter by token symbol | Yes | Not listed | Not listed | Not listed |
| Filter by minimum TVL | Yes | Not listed | Not listed | Not listed |
| Returns APY data | Yes | Yes | Not listed | Not listed |
| Returns TVL data | Yes | Yes | Not listed | Not listed |

### Configure the run

Drive the Actor from project, chain, token symbol, and minimum TVL filters, alone or together, and filters run as each pool is read so only matches reach your dataset. The Input tab lists every parameter.

A first run with the defaults:

```json
{
 "maxItems": 10
}
```

A larger pull:

```json
{
 "maxItems": 200
}
```

### Pricing

Pay-per-result: **$0.0085 per result** collected. You pay only for the results written to your dataset.

| Results collected | Approximate cost |
|---|---|
| 100 results | $0.85 |
| 1,000 results | $8.50 |
| 10,000 results | $85.00 |

New Apify accounts start with $5 in free credit.

### Free users

Free-plan runs return up to 10 results as a preview. [Upgrade your Apify plan](https://console.apify.com/sign-up?fpr=vmoqkp) to collect up to 1,000,000 results per run.

### Run it

1. [Create a free Apify account with $5 in credit](https://console.apify.com/sign-up?fpr=vmoqkp).
2. Open the [DeFi Llama Yield Pools Scraper](https://apify.com/parseforge/llama-yields-scraper?fpr=vmoqkp).
3. Set your inputs and any filters, then click **Start**.
4. Export the results as CSV, Excel, JSON, or XML from the **Dataset** tab.

Run it programmatically through the [Apify API](https://docs.apify.com/api/v2) (`run-sync-get-dataset-items`) or the [ApifyClient](https://docs.apify.com/api/client/js) for JavaScript and Python.

### Use with AI agents (MCP)

Give an AI agent live access to DeFi Llama through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

```bash
claude mcp add --transport http apify "https://mcp.apify.com/?tools=parseforge/llama-yields-scraper"
```

Then prompt it in plain language to run the scraper and read back the results.

### Troubleshooting

**Why am I getting no results?**

Check your filters. If you set a project, chain, or symbol filter, make sure it matches an existing pool. Also, if you set a minimum TVL, lower it to see if any pools meet that threshold.

**Why is my run taking a long time?**

The Actor reads all matching pools up to your maximum pools setting. If you set a high maximum, it will take longer. Reduce the maximum or add filters to narrow the results.

**Why are some pools missing?**

DeFi Llama may not list every pool, especially very new or small ones. Also, check that your filters do not exclude them. The Actor only returns pools that are currently listed on DeFi Llama.

**Can I get historical yield data?**

No, this Actor only returns current yield data from DeFi Llama. For historical data, you would need to run the Actor periodically and store the results yourself.

**Why did I get an error about the input?**

Make sure your inputs are valid. Project, chain, and symbol are text fields, minimum TVL is a non-negative integer, and maximum pools is an integer between 1 and 1,000,000.

### FAQ

| Question | Answer |
|---|---|
| What is DeFi Llama? | DeFi Llama is a free and open data platform that tracks total value locked and yield pools across hundreds of DeFi protocols and blockchains. |
| Do I need a DeFi Llama API key? | No. This Actor reads the public yield pool listings directly, so no API key or registration is required. |
| What filters can I use? | You can filter by project name, chain, token symbol, and minimum TVL in USD. All filters are optional and can be combined. |
| How many pools can I scrape in one run? | You can set the maximum pools input up to 1,000,000. The default is 10. |
| What data does each pool include? | Each pool returns its APY, TVL, project, chain, token symbols, and pool identifiers. The exact fields are shown in the sample output. |
| Can I export the results? | Yes, you can export to CSV, JSON, Excel, or XML directly from the Apify platform. |
| Is this Actor free? | The Actor is free to use on the Apify platform, subject to Apify's standard usage limits. |
| How often is the data updated? | The Actor reads live data from DeFi Llama on each run, so you always get the current yields and TVL. |
| Can I schedule this Actor to run automatically? | Yes, you can set up a schedule in Apify to run the Actor at regular intervals, such as hourly or daily. |
| What is the difference between this and the DeFi Llama API? | This Actor provides a simplified interface with built-in filters and export options, without needing to handle API endpoints or pagination. |

### Related actors

Browse the full [ParseForge collection](https://apify.com/parseforge?fpr=vmoqkp) for more scrapers.

🆘 **Need help?** Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ **Disclaimer.** This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by DeFi Llama. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

# Actor input Schema

## `project` (type: `string`):

Optional. Filter pools by protocol/project (substring match, for example aave, lido, uniswap).

## `chain` (type: `string`):

Optional. Filter pools by blockchain (substring match, for example Ethereum, Arbitrum, Base).

## `symbol` (type: `string`):

Optional. Filter pools by token symbol (substring match, for example USDC, ETH, DAI).

## `minTvlUsd` (type: `integer`):

Optional. Only return pools with total value locked at or above this amount in US dollars.

## `maxItems` (type: `integer`):

How many yield pools to collect per run.

## Actor input object example

```json
{
  "maxItems": 10
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "project": "",
    "chain": "",
    "symbol": "",
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/llama-yields-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "project": "",
    "chain": "",
    "symbol": "",
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/llama-yields-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "project": "",
  "chain": "",
  "symbol": "",
  "maxItems": 10
}' |
apify call parseforge/llama-yields-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parseforge/llama-yields-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ZfhvPuADRJBETZsem/builds/8SGiG1EU9NhlRTZ4x/openapi.json
