# DeFi Protocol TVL, Capital Flow & Yield Pool Intelligence (`lucacelli/defi-protocol-yield-tvl-whale-intel`) Actor

Institutional Crypto & DeFi intelligence Actor: tracks protocol TVL, 1d/7d/30d capital inflows/outflows, multi-chain exposure, Mcap/TVL valuation multiples, and audit status via DeFiLlama.

- **URL**: https://apify.com/lucacelli/defi-protocol-yield-tvl-whale-intel.md
- **Developed by:** [Ömürsel Ocakcı](https://apify.com/lucacelli) (community)
- **Categories:** Business, Developer tools, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.50 / 1,000 extracted defi protocol tvl & capital flow record (all-inclusive)s

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## DeFi Protocol TVL, Capital Flow & High-Yield Pool Intelligence (MCP Ready)

> **DeFiLlama TVL Scraper, Crypto Capital Flow & Protocol Valuation Tool** — Institutional Crypto & DeFi intelligence Actor: tracks protocol TVL, 1d/7d/30d capital inflows/outflows, multi-chain exposure, Mcap/TVL valuation multiples, and audit status via DeFiLlama.

***

### 🚀 Why Choose This Actor?

1. **Ultra-Low Compute Cost (No Headless Browser Overhead)**: Built on a high-efficiency HTTP & structured-data parsing engine instead of heavy Chromium instances. Runs **10x faster** and consumes minimal Apify platform RAM/CPU.
2. **Transparent Pay-Per-Event Pricing**: You only pay for actual results delivered (`protocol-analyzed`), never for wasted idle time.
3. **100% MCP & AI Agent Ready**: Designed with strict JSON schemas so **Claude Desktop, Cursor, OpenAI Agents, LangChain, n8n, Make.com, Zapier, and Clay** can call this Actor autonomously as a tool.
4. **Clean, Structured Export**: Download results in **JSON, CSV, Excel, XML, or RSS** directly from the Apify dataset tab or via REST API.

***

### 🎯 Target Industries & High-ROI Use Cases

- **Crypto Hedge Funds & Liquid Token Investors**
- **Web3 Security Auditors & Smart Contract Firms**
- **B2B Crypto Infrastructure Sales (RPC, Oracles, Custody)**
- **Autonomous AI Trading & Research Agents**

#### Popular Workflows

- **Automated B2B Prospecting & Enrichment**: Feed a list of targets from Clay, HubSpot, Salesforce, or Google Sheets and enrich every record automatically.
- **Autonomous AI Agent Tooling (MCP)**: Connect this Actor to Claude or Cursor via the official `@apify/actors-mcp-server` so your AI assistant can gather real-time live web intelligence on demand.
- **Scheduled Monitoring**: Schedule recurring runs (daily/weekly) on Apify and push fresh intelligence to Slack, Webhook, Email, or PostgreSQL/Supabase.

***

### 📥 Input Parameters Example

```json
{
  "categoryFilter": "Dexes",
  "chainFilter": "Ethereum",
  "minTvlUsd": 10000000,
  "maxProtocols": 25
}
```

***

### 📤 Output Dataset Sample

Each extracted record is pushed to the default Apify Dataset in clean JSON format:

```json
{
  "name": "Aave",
  "symbol": "AAVE",
  "category": "Lending",
  "tvlUsd": 18500000000,
  "mcapToTvlRatio": 0.12,
  "change1dPct": 2.45,
  "chains": [
    "Ethereum",
    "Arbitrum",
    "Base",
    "Polygon"
  ]
}
```

***

### 🤖 How to Use with AI Agents (Claude / Cursor MCP) & Automation

#### 1. Model Context Protocol (MCP)

Add this Actor to your `claude_desktop_config.json` or Cursor MCP settings using the Apify MCP Server:

```json
{
  "mcpServers": {
    "apify": {
      "command": "npx",
      "args": [
        "-y",
        "@apify/actors-mcp-server",
        "--actors",
        "lucacelli/defi-protocol-yield-tvl-whale-intel"
      ],
      "env": {
        "APIFY_TOKEN": "YOUR_APIFY_API_TOKEN"
      }
    }
  }
}
```

#### 2. Call via Apify REST API (cURL / n8n / Make / Clay)

```bash
curl -X POST "https://api.apify.com/v2/acts/lucacelli~defi-protocol-yield-tvl-whale-intel/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"categoryFilter":"Dexes","chainFilter":"Ethereum","minTvlUsd":10000000,"maxProtocols":25}'
```

#### 3. Node.js SDK

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('lucacelli/defi-protocol-yield-tvl-whale-intel').call({"categoryFilter":"Dexes","chainFilter":"Ethereum","minTvlUsd":10000000,"maxProtocols":25});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

***

### ❓ Frequently Asked Questions (FAQ)

#### Does this Actor require paid external API keys or residential proxies?

No! It works out of the box with zero external API keys required.

#### Can I export the data to CSV, Excel, or Google Sheets?

Yes. Every run stores structured records in an Apify Dataset that can be exported with one click to **CSV, XLSX (Excel), JSON, or JSONL**, or synced directly to Google Sheets via Make/Zapier/n8n.

#### Keywords & Tags

`DeFiLlama scraper, crypto TVL tracker, Web3 B2B lead generation, DeFi protocol valuation, institutional crypto data, blockchain analytics MCP`

# Actor input Schema

## `categoryFilter` (type: `string`):

Optional category filter (e.g. "Liquid Staking", "Dexes", "Lending", "Yield", "RWA").

## `chainFilter` (type: `string`):

Optional chain filter (e.g. "Ethereum", "Solana", "Arbitrum", "Base").

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

Minimum Total Value Locked in USD.

## `maxProtocols` (type: `integer`):

Maximum number of protocols to analyze (1 to 250).

## Actor input object example

```json
{
  "categoryFilter": "",
  "chainFilter": "",
  "minTvlUsd": 10000000,
  "maxProtocols": 25
}
```

# Actor output Schema

## `dataset` (type: `string`):

Link to the extracted JSON items stored in the default dataset

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("lucacelli/defi-protocol-yield-tvl-whale-intel").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("lucacelli/defi-protocol-yield-tvl-whale-intel").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 '{}' |
apify call lucacelli/defi-protocol-yield-tvl-whale-intel --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lucacelli/defi-protocol-yield-tvl-whale-intel"
        }
    }
}
```

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/EDuGdmijfOdG7lp63/builds/qDRlDDp4goK9kOVZi/openapi.json
