# Velodrome Finance Scraper (`dadhalfdev/velodrome-finance-scraper`) Actor

Scrape Velodrome liquidity pools on Superchain. Use filters or paste a Liquidity URL — the URL wins when set. Returns TVL, APR, tokens, chain, and pool type.

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

## Pricing

from $2.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?

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

## 🏍️ Velodrome Finance Scraper

Want [Velodrome](https://velodrome.finance/liquidity) liquidity pools in a spreadsheet? This scraper makes it easy.

Use **structured filters** (chain, pool type, TVL, APR) — structured filters work better for AI agents — **or** paste an **`input_url`** from Velodrome Liquidity once you've already filtered in the browser. When `input_url` is set it overrides the filters below.

This actor is **Velodrome Superchain only**. For Aerodrome on Base use [Aerodrome Finance Scraper](https://apify.com/dadhalfdev/aerodrome-finance-scraper). For every DEX at once use [vfat Pools Scraper](https://apify.com/dadhalfdev/vfat-pools-scraper) or [vfat Yields Scraper](https://apify.com/dadhalfdev/vfat-yields-scraper).

### 💡 Perfect for...

- **LPs:** Compare Basic Volatile, Basic Stable, and Concentrated (Slipstream) pools on Optimism and Superchain.
- **Dashboards:** Track TVL and APR across Velodrome chains.
- **Market research:** Slice Velodrome by chain or pool type.
- **Data analysts:** Export structured Velodrome pool data.
- **🤖 AI Agents:** Power bots and OpenClaw workflows with live Velodrome results.
- **📚 RAG Systems:** Feed pool titles and metrics 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 Velodrome `/liquidity` 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 Superchain chips and pool types as the Liquidity page.
- 🌐 **Superchain DEX:** Optimism, Unichain, Ink, Mode, Celo, and the rest of Velodrome (~600 incentivized pools).

### 📦 What's inside the data?

Every row includes all of these fields:

- **Core:** `id`, `url`, `title`, `protocol`, `chain`, `chain_id`, `pool_type`, `type`, `subtype`
- **Contracts:** `farm_address`, `pool_address`, `tokens`, `token_addresses`, `token_1`, `token_2`
- **Flags:** `fee`, `is_stable`, `is_nft`, `has_incentives`, `is_killed`
- **Liquidity:** `tvl_usd`, `active_tvl_usd`, `pool_tvl_usd`
- **Returns:** `apr`, `avg_apr`, `max_apr`, `lp_apr`, `staking_apr`, `fees_or_rewards_7d_usd`, `first_seen_at`

### 🚀 Quick start

**Option A — Input URL**

1. Open [Velodrome Liquidity](https://velodrome.finance/liquidity), apply filters, copy the URL — e.g. `https://velodrome.finance/liquidity?filters=Optimism,basicVolatile`.
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, pool type, and TVL / APR ranges.
3. Set `max_results` (up to 2000) and click **Start**.

***

#### Tech details for developers 🧑‍💻

**Input Example (filters):**

```json
{
  "chain_name": "optimism",
  "pool_type": "volatile",
  "min_tvl": 100000,
  "max_results": 100
}
```

**Input Example (URL override):**

```json
{
  "input_url": "https://velodrome.finance/liquidity?filters=Optimism,concentrated&sort=tvl:desc",
  "max_results": 50
}
```

**Output Example:**

```json
{
  "id": "10:0x...:poolId=:poolIndex=",
  "url": "https://velodrome.finance/deposit?chain=10&chain0=10&chain1=10&token0=0x...&token1=0x...",
  "title": "WETH/USDC",
  "protocol": "Velodrome",
  "chain": "Optimism",
  "chain_id": 10,
  "pool_type": "Basic Volatile",
  "type": "VELODROME_V2",
  "subtype": "volatile",
  "farm_address": "0x...",
  "pool_address": "0x...",
  "tokens": ["WETH", "USDC"],
  "token_addresses": ["0x...", "0x..."],
  "token_1": "WETH",
  "token_2": "USDC",
  "fee": 30,
  "is_stable": false,
  "is_nft": false,
  "has_incentives": true,
  "is_killed": false,
  "tvl_usd": 12500000.0,
  "active_tvl_usd": 12500000.0,
  "pool_tvl_usd": 0,
  "apr": 18.4,
  "avg_apr": 18.4,
  "max_apr": 18.4,
  "lp_apr": 0,
  "staking_apr": 18.4,
  "fees_or_rewards_7d_usd": 42000.0,
  "first_seen_at": "2024-11-08T13:00:00.000Z"
}
```

**Output fields:**

| Field | Description |
|-------|-------------|
| `id` | Listing id. |
| `url` | Velodrome deposit link for the pair. |
| `title` | Token pair, e.g. `WETH/USDC`. |
| `protocol` | Always `Velodrome`. |
| `chain` | Superchain name, e.g. `Optimism`. |
| `chain_id` | Numeric chain id, e.g. `10`. |
| `pool_type` | `Basic Volatile`, `Basic Stable`, or `Concentrated`. |
| `type` | Internal type, e.g. `VELODROME_V2`. |
| `subtype` | `volatile`, `stable`, or `concentrated`. |
| `farm_address` | Gauge / farm contract. |
| `pool_address` | Liquidity pool contract. |
| `tokens` | Token symbols. |
| `token_addresses` | Token contracts. |
| `token_1` / `token_2` | First and second symbols. |
| `fee` | Pool fee (native units). |
| `is_stable` | Stable pool flag. |
| `is_nft` | Concentrated / NFT position flag. |
| `has_incentives` | Extra rewards flag. |
| `is_killed` | Killed / deprecated flag. |
| `tvl_usd` | Staked TVL in USD. |
| `active_tvl_usd` | Active liquidity in USD. |
| `pool_tvl_usd` | Active pool liquidity in USD. |
| `apr` | Current APR %. |
| `avg_apr` | Average APR %. |
| `max_apr` | Max APR %. |
| `lp_apr` | LP fee APR %. |
| `staking_apr` | Staking / emissions APR %. |
| `fees_or_rewards_7d_usd` | 7-day rewards (USD). |
| `first_seen_at` | When the pool was first listed. |

### 📋 Input reference (detailed)

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `input_url` | string | No | — | Paste a Velodrome `/liquidity` URL; overrides filters when set. |
| `search` | string | No | — | Token symbol or contract. |
| `chain_name` | string enum | No | all | Superchain name, e.g. `optimism`, `unichain`, `ink`. |
| `pool_type` | string enum | No | all | `volatile`, `stable`, or `concentrated`. |
| `min_tvl` / `max_tvl` | integer | No | — | TVL bounds in USD. |
| `min_apr` / `max_apr` | integer | No | — | APR bounds. |
| `min_fee` / `max_fee` | number | No | — | Pool fee bounds. |
| `sort_key` | string enum | No | `tvl` | `tvl`, `apr`, 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 Velodrome Liquidity).
- `input_url` always wins over filters when provided.
- Liquidity URL `filters=Optimism,basicVolatile` is mapped automatically.

# Actor input Schema

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

Paste a Velodrome Liquidity URL (e.g. https://velodrome.finance/liquidity?filters=Optimism,basicVolatile). Overrides every filter when set.

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

Token symbol or contract, same idea as the Liquidity search box. Ignored when input_url is set.

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

Same Superchain chips as on velodrome.finance/liquidity. Ignored when input_url is set.

## `pool_type` (type: `string`):

Same pool-type chips as on velodrome.finance/liquidity. Ignored when input_url is set.

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

Only pools at or above this TVL. Ignored when input_url is set.

## `max_tvl` (type: `integer`):

Only pools at or below this TVL. Ignored when input_url is set.

## `min_apr` (type: `integer`):

Only pools at or above this APR. Ignored when input_url is set.

## `max_apr` (type: `integer`):

Only pools at or below this APR. Ignored when input_url is set.

## `min_fee` (type: `number`):

Minimum pool fee (same units as the Liquidity table). Ignored when input_url is set.

## `max_fee` (type: `number`):

Maximum pool fee (same units as the Liquidity table). Ignored when input_url is set.

## `sort_key` (type: `string`):

Same idea as the Liquidity sort control (TVL or APR).

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

Ascending or descending.

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

How many rows to return (1–2000). There are about 600 Velodrome pools.

## Actor input object example

```json
{
  "chain_name": "",
  "pool_type": "",
  "sort_key": "tvl",
  "sort_direction": "desc",
  "max_results": 50
}
```

# Actor output Schema

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

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

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

All scraped pools 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/velodrome-finance-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/velodrome-finance-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/velodrome-finance-scraper --silent --output-dataset

```

## MCP server setup

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