# DeFi Rate Yields Scraper (`parseforge/defirate-yields-scraper`) Actor

Scrapes DeFi lending and borrowing rates from DeFi Rate. Filter by token symbol or protocol slug and get APY and TVL data in a flat row.

- **URL**: https://apify.com/parseforge/defirate-yields-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Developer tools, 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 Rate Yields Scraper

**Scrape DeFi lending and borrowing yields across protocols, filtered by token or protocol, up to a million rates per run.** Every rate comes with its APY, TVL, protocol name, and token pair. No API key. Export to CSV, JSON, Excel, or XML.

Tracking DeFi yields across dozens of protocols and tokens is a manual grind. DeFi Rate aggregates supply and borrow rates from major lending markets, and this Actor reads that public data directly. Filter by token symbol or protocol slug, and get a clean dataset of current APYs and total value locked.

| Who uses it | What they scrape DeFi Rate for |
|---|---|
| Yield farmers | Find the highest current APY for a specific stablecoin across all tracked protocols. |
| DeFi analysts | Monitor total value locked and rate changes across lending markets over time. |
| Protocol operators | Benchmark their own pool rates against competitors listed on DeFi Rate. |
| Crypto data platforms | Ingest a normalized feed of DeFi yields to power dashboards or newsletters. |

### What it does

This Actor collects DeFi lending or borrowing rates from DeFi Rate, filtered by token or protocol, and returns each rate as a flat row.

- 📈 **Supply or borrow rates:** choose to scrape lending APYs or borrowing APYs in one run.
- 🪙 **Token filter:** return rates only for a single token symbol like USDC, ETH, or DAI.
- 🏦 **Protocol filter:** limit results to one protocol slug, such as aave-v3 or compound-v3.
- ⚙️ **Configurable volume:** set a maximum number of rates from 1 up to 1,000,000 per run.

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

### What you can do with DeFi Rate data

**💰 Find the best stablecoin yield.**

A yield farmer sets the token filter to USDC and the rate type to lend, then runs the Actor daily to spot the protocol offering the highest supply APY.

**📊 Monitor DeFi lending market trends.**

A research analyst scrapes all supply rates every week, loads the CSV into a notebook, and tracks TVL and APY shifts across Aave, Compound, and Morpho.

**🏦 Benchmark a new lending pool.**

A protocol team filters by their own slug and a competitor's slug in separate runs, then compares the average borrow rates side by side.

**🤖 Feed a rates alert bot.**

A developer schedules the Actor to run hourly, pipes the JSON output to a script, and sends a Discord alert when any tracked APY crosses a threshold.

### Why choose this scraper

| | What you get |
|---|---|
| **No API registration** | Reads public DeFi Rate data with no account or key required. |
| **Fixed flat schema** | Every rate row has the same fields: protocol, token, APY, and TVL. |
| **Multi-format export** | Download results as CSV, JSON, Excel, or XML for any pipeline. |
| **Resumable runs** | Apify proxies and auto-retry keep long-running scrapes stable. |

### How it compares

This Actor focuses on DeFi lending and borrowing yields from DeFi Rate, while the CoinMarketCap Scraper targets market cap and price data across the broader crypto market.

| Feature | ParseForge | CoinMarketCap Scraper |
|---|---|---|
| DeFi lending and borrowing rates | Yes | Not listed |
| Filter by token symbol | Yes | Not listed |
| Filter by protocol slug | Yes | Not listed |
| Total value locked per pool | Yes | Not listed |
| Market cap and price data | Not listed | Yes |

### Configure the run

Drive the Actor by selecting the rate type, and optionally narrow results with a token symbol or protocol slug. Filters apply as data is read so only matching rates 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 Rate Yields Scraper](https://apify.com/parseforge/defirate-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 Rate 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/defirate-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 token or protocol filter spelling. The filter is case-sensitive and must match DeFi Rate's symbol or slug exactly. Try running without filters first to see available values.

**The Actor returns fewer rates than my maxItems setting.**

This is normal. The Actor stops when it has collected your requested number of rates or when no more rates match your filters, whichever comes first.

**My token filter is not working.**

Ensure you are using the correct token symbol as listed on DeFi Rate, for example USDC not USD Coin. Run the Actor once without a filter to confirm the exact symbol.

**The run timed out.**

Try lowering the maximum rates value. If you need a very large dataset, consider splitting the work into multiple runs with different protocol or token filters.

### FAQ

| Question | Answer |
|---|---|
| What data source does this Actor use? | It reads the public yield data aggregated by DeFi Rate, a site that tracks lending and borrowing rates across many DeFi protocols. |
| Can I get both supply and borrow rates in one run? | No, each run returns either supply rates or borrow rates. Run the Actor twice with different rate type selections to collect both. |
| How do I filter for a specific token? | Enter the token symbol in the Token Filter field, for example USDC, DAI, or ETH. The Actor will return only rates for that token. |
| What is a protocol slug and where do I find it? | A protocol slug is the short identifier used by DeFi Rate, like aave-v3 or compound-v3. You can find them by running the Actor once without a filter and checking the protocol column in your results. |
| How many rates can I scrape at once? | You can set the maximum from 1 up to 1,000,000 rates per run. The Actor will stop once it reaches your limit. |
| Does this Actor require an API key or login? | No. It reads publicly available data from DeFi Rate, so no account, API key, or wallet connection is needed. |
| What output formats are supported? | You can export your dataset as CSV, JSON, Excel, or XML directly from the Apify run console. |
| Can I schedule this Actor to run automatically? | Yes, Apify schedules let you run it every hour, day, or week. Combined with a webhook or an integration, you can build a fully automated yield tracker. |
| What fields does each rate row contain? | Each row includes the protocol name, token symbol, current APY, and total value locked, among other fields. The exact schema is shown in the sample output on the Actor's page. |
| Is the data real-time? | The Actor scrapes whatever DeFi Rate displays at the moment of the run. Rates update frequently, so schedule runs to match your required freshness. |

### Related actors

- [coinmarketcap-scraper](https://apify.com/parseforge/coinmarketcap-scraper?fpr=vmoqkp): Use this instead when you need cryptocurrency market cap, price, and volume data rather than DeFi lending yields.

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 Rate. 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

## `page` (type: `string`):

Whether to scrape supply (lending) rates or borrow rates.

## `token` (type: `string`):

Optional. Only return rates for this token symbol (for example USDC, ETH, DAI). Leave empty for all tokens.

## `protocol` (type: `string`):

Optional. Only return rates for this protocol slug (for example aave-v3, compound-v3, morpho-blue). Leave empty for all protocols.

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

How many yield rates to collect per run.

## Actor input object example

```json
{
  "page": "lend",
  "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 = {
    "token": "",
    "protocol": "",
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/defirate-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 = {
    "token": "",
    "protocol": "",
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/defirate-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 '{
  "token": "",
  "protocol": "",
  "maxItems": 10
}' |
apify call parseforge/defirate-yields-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parseforge/defirate-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/sKFVYWFd3RC9wjJEJ/builds/hzInKkvWrUTYLhS7s/openapi.json
