# Beefy Scraper (`dadhalfdev/beefy-scraper`) Actor

Scrape Beefy yield vaults from app.beefy.com. Use filters or paste a Beefy URL — the URL wins when set. Returns TVL, APY, chain, platform, and vault URL.

- **URL**: https://apify.com/dadhalfdev/beefy-scraper.md
- **Developed by:** [Marco Rodrigues](https://apify.com/dadhalfdev) (community)
- **Categories:**
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 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

## 🐮 Beefy Scraper

Want [Beefy](https://app.beefy.com/) yield vaults in a spreadsheet? This scraper makes it easy.

Use **structured filters** (chain, active vs retired, platform, TVL, APY) — structured filters work better for AI agents — **or** paste an **`input_url`** from Beefy once you've already filtered in the browser. When `input_url` is set it overrides the filters below.

Beefy currently lists about **4,000 vaults** across many chains. Most of those are retired (EOL). The app defaults to **active** vaults (~550). This actor returns up to 2000 rows per run — pick **All vaults** if you want the retired catalog too.

### 💡 Perfect for...

- **Farmers:** Compare Beefy vault APY and TVL across Ethereum, Base, BNB Chain, and the rest.
- **Dashboards:** Track live vaults without clicking through the app table.
- **Market research:** Slice by platform (Aerodrome, PancakeSwap, Velodrome, Curve) or include retired vaults.
- **Data analysts:** Export structured Beefy vault rows with public vault URLs.
- **🤖 AI Agents:** Power bots and OpenClaw workflows with live Beefy results.
- **📚 RAG Systems:** Feed vault titles, APY, and TVL into retrieval pipelines.
- **🔗 AI Workflows:** Plug into LangChain, AutoGPT, CrewAI, and similar stacks.

### ✨ Why you'll love this scraper

- 🔗 **Input URL or Filters:** Paste a Beefy app or `/vault/{id}` URL (`input_url`) if you already filtered in the browser, or use structured filters (better for AI agents). `input_url` always wins when set.
- 🎯 **Website-Matched Filters:** Same chain, status, and search idea as app.beefy.com.
- 🌐 **Multichain yield optimizer:** Active vaults by default, or the full ~4k catalog including retired.

### 📦 What's inside the data?

Every row includes all of these fields:

- **Core:** `id`, `url`, `title`, `token`, `chain`, `chain_id`, `platform`, `status`, `vault_type`, `strategy_type`, `assets`
- **Liquidity / yield:** `tvl_usd`, `apy`, `vault_apr`, `trading_apr`, `performance_fee`
- **Contracts:** `earn_address`, `token_address`, `strategy`, `oracle_id`, `add_liquidity_url`, `risks`
- **Dates:** `created_at`, `last_harvest_at`

### 🚀 Quick start

**Option A — Input URL**

1. Open [Beefy](https://app.beefy.com/), apply filters, copy the URL — e.g. `https://app.beefy.com/?search=wbtc&chain=ethereum&status=active`.
2. Paste it into `input_url`.
3. Set `max_results` and click **Start**.

**Option B — Structured filters (better for AI agents)**

1. Leave `input_url` empty.
2. Optionally pick chain, platform, and min TVL / APY. Leave status on Active unless you want retired vaults.
3. Set `max_results` (up to 2000) and click **Start**.

***

#### Tech details for developers 🧑‍💻

**Input Example (filters):**

```json
{
  "chain_name": "ethereum",
  "status": "active",
  "min_tvl": 10000,
  "sort": "tvl",
  "max_results": 100
}
```

**Input Example (URL override):**

```json
{
  "input_url": "https://app.beefy.com/?chain=base&status=active&search=usdc",
  "max_results": 50
}
```

**Output Example:**

```json
{
  "id": "yb-wbtc",
  "url": "https://app.beefy.com/vault/yb-wbtc",
  "title": "WBTC",
  "token": "WBTC",
  "chain": "Ethereum",
  "chain_id": "ethereum",
  "platform": "yearn",
  "status": "active",
  "vault_type": "standard",
  "strategy_type": "single",
  "assets": ["WBTC"],
  "tvl_usd": 131466.48,
  "apy": 5.78,
  "vault_apr": 5.62,
  "trading_apr": null,
  "performance_fee": 0.095,
  "earn_address": "0x...",
  "token_address": "0x...",
  "strategy": "0x...",
  "oracle_id": "yb-wbtc",
  "add_liquidity_url": null,
  "risks": ["COMPLEXITY_LOW", "BATTLE_TESTED"],
  "created_at": "2024-11-08T13:00:00+00:00",
  "last_harvest_at": "2026-08-29T12:00:00+00:00"
}
```

**Output fields:**

| Field | Description |
|-------|-------------|
| `id` | Beefy vault id. |
| `url` | Public vault page on app.beefy.com. |
| `title` | Vault name. |
| `token` | Deposit token symbol. |
| `chain` | Human chain name. |
| `chain_id` | Beefy chain slug, e.g. `ethereum`. |
| `platform` | Underlying protocol, e.g. `aerodrome`. |
| `status` | `active`, `eol`, or `paused`. |
| `vault_type` | Vault type from Beefy. |
| `strategy_type` | Strategy type, e.g. `lp` or `single`. |
| `assets` | Underlying asset symbols. |
| `tvl_usd` | Total value locked in USD. |
| `apy` | Total APY as a percent. |
| `vault_apr` | Vault APR as a percent. |
| `trading_apr` | Trading APR as a percent when Beefy publishes it. |
| `performance_fee` | Beefy performance fee as a decimal. |
| `earn_address` | Beefy vault / earn contract. |
| `token_address` | Deposit token contract. |
| `strategy` | Strategy contract. |
| `oracle_id` | Beefy oracle id. |
| `add_liquidity_url` | Add-liquidity link when set. |
| `risks` | Beefy risk tags. |
| `created_at` | Vault created time (UTC ISO). |
| `last_harvest_at` | Last harvest time (UTC ISO). |

### 📋 Input reference (detailed)

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `input_url` | string | No | — | Paste a Beefy app or `/vault/{id}` URL; overrides filters when set. |
| `search` | string | No | — | Name, token, or platform text. |
| `chain_name` | string enum | No | all | Chain slug, e.g. `ethereum`, `base`, `bsc`. |
| `status` | string enum | No | `active` | `active`, `eol`, `paused`, or `all`. |
| `platform` | string enum | No | all | e.g. `aerodrome`, `pancakeswap`, `curve`. |
| `min_tvl` | integer | No | — | Minimum TVL in USD. |
| `min_apy` | number | No | — | Minimum APY percent. |
| `sort` | string enum | No | `tvl` | `tvl`, `apy`, `name`, or `created`. |
| `sort_direction` | string enum | No | `desc` | `desc` or `asc`. |
| `max_results` | integer | No | `50` | Maximum rows (`1`–`2000`). |

#### Notes on filters

- Prefer exact enum strings from the Apify input dropdowns (same labels as Beefy).
- `input_url` always wins over filters when provided.
- `app.beefy.finance` and `app.beefy.com` URLs are both accepted.
- Default status is **active**, matching the live app. Use `all` or `eol` for the retired catalog.

# Actor input Schema

## `input_url` (type: `string`):

Paste a Beefy app URL (e.g. https://app.beefy.com/?search=wbtc\&chain=ethereum\&status=active) or a vault URL like https://app.beefy.com/vault/yb-wbtc. Overrides every filter when set.

## `search` (type: `string`):

Same idea as the Beefy vault search box (name, token, or platform). Ignored when input\_url is set.

## `chain_name` (type: `string`):

Same network filter as on app.beefy.com. Ignored when input\_url is set.

## `status` (type: `string`):

Same live vs retired filter as on Beefy. The app defaults to active vaults.

## `platform` (type: `string`):

Same protocol / platform chips as on Beefy (top platforms plus All).

## `min_tvl` (type: `integer`):

Only vaults at or above this TVL. Ignored when input\_url is set.

## `min_apy` (type: `number`):

Only vaults at or above this APY. Ignored when input\_url is set.

## `sort` (type: `string`):

Same idea as sorting the Beefy vault table (TVL or APY).

## `sort_direction` (type: `string`):

High to low or low to high.

## `max_results` (type: `integer`):

How many rows to return (1–2000). Beefy has about 4,000 vaults including retired; about 550 are active.

## Actor input object example

```json
{
  "chain_name": "",
  "status": "active",
  "platform": "",
  "sort": "tvl",
  "sort_direction": "desc",
  "max_results": 50
}
```

# Actor output Schema

## `overview` (type: `string`):

Table view of scraped vaults using the dataset 'overview' view.

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

All scraped vaults from the default dataset without view transformation.

# 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("dadhalfdev/beefy-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("dadhalfdev/beefy-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 '{}' |
apify call dadhalfdev/beefy-scraper --silent --output-dataset

```

## MCP server setup

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