# Dexscreener Top Traders (`agenscrape/dexscreener-top-traders`) Actor

Extract top traders with detailed PNL data and holder distribution from DexScreener.
Supports 70+ blockchains including Solana, Ethereum, BSC, Base, and Arbitrum. Perfect for
tracking whale movements, analyzing holder concentration, and building trading strategies.

- **URL**: https://apify.com/agenscrape/dexscreener-top-traders.md
- **Developed by:** [Agenscrape](https://apify.com/agenscrape) (community)
- **Categories:** Other, Developer tools
- **Stats:** 20 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.001 / actor start

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/platform/actors/running/actors-in-store#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

## DexScreener Top Traders & Holders - Apify Actor

Extract top traders and holder distribution data from DexScreener across 70+ supported blockchains.

### Features

- **Top Traders Analysis** - Get detailed PNL (Profit & Loss) data for top traders
- **Holder Distribution** - Analyze token holder concentration and distribution
- **Multi-Chain Support** - Works with 70+ blockchains (Solana, Ethereum, BSC, Base, Arbitrum, and more)
- **Real-time Data** - Fresh data directly from DexScreener

### Input

The actor accepts the following input parameters:

#### Required Parameters

- **wallet\_url** (string) - Full DexScreener URL for the token pair
  - Example: `https://dexscreener.com/solana/AW526gmdn3wvhxa4D5FngY1HH3zAyYBpCSJnkYdXyqpx`

#### Optional Parameters

- **days** (integer) - Time period for analysis (1, 3, 7, or 30 days)
  - Default: `30`
  - Options: 1, 3, 7, 30

- **mode** (string) - Choose what data to extract
  - Default: `top_traders`
  - Options:
    - `top_traders` - Get top traders with PNL data
    - `holders` - Get holder distribution data

- **max** (integer) - Maximum number of results to return
  - Default: `50`
  - Minimum: `10` (enforced as `20` for top\_traders mode for data quality)
  - Maximum: `100`

### Output

#### Top Traders Mode

Returns an array of trader objects, each containing:

- **rank** - Position in top traders list
- **pair\_address** - DexScreener pair address
- **blockchain** - Blockchain name (e.g., "solana", "ethereum")
- **wallet** - Wallet address and blockchain explorer URL
- **bought** - Token amount purchased, USD value, transaction count
- **sold** - Token amount sold, USD value, transaction count
- **pnl** - Realized profit/loss
- **unrealized\_pnl** - Unrealized gains from current holdings
- **balance** - Current token balance

#### Holders Mode

Returns an array of holder objects, each containing:

- **id** - Holder wallet address
- **balance** - Token balance held
- **percentage** - Percentage of total supply

### Example Input

```json
{
  "wallet_url": "https://dexscreener.com/solana/AW526gmdn3wvhxa4D5FngY1HH3zAyYBpCSJnkYdXyqpx",
  "days": 30,
  "mode": "top_traders"
}
```

### Supported Blockchains (70+)

**Layer 1 Chains:**
Solana, Ethereum, BSC, Polygon, Avalanche, Fantom, Cronos, Moonbeam, Moonriver, Celo, Harmony, Aurora, Canto, Kava, Metis, Klaytn, Boba, Oasys, Dogechain, Velas, Fuse, Meter

**Layer 2 Ethereum:**
Arbitrum, Optimism, Base, zkSync, Linea, Scroll, Mantle, Blast, Polygon zkEVM, Manta, Mode, Zora

**Other Ecosystems:**
TON, Aptos, Sui, Starknet, Injective, Osmosis, Flare, Songbird, Core, Conflux, PulseChain, ThunderCore, Energi, Syscoin, Telos, Milkomeda, Evmos, Godwoken, Shardeum, Shimmer, Wemix, Neon, Ronin, IoTeX, SmartBCH, HECO, OKC, Cube, FunctionX, DeFiChain, Bitgert, xDai, Step, Vision, EthereumPoW, EthereumFair, Shibarium, opBNB, ZetaChain, Rootstock

### Use Cases

- Track whale wallet movements
- Analyze holder concentration for investment decisions
- Monitor smart money trading patterns
- Build trading bots and algorithms
- Research token distribution metrics

# Actor input Schema

## `wallet_url` (type: `string`):

Full DexScreener URL for the token pair

## `days` (type: `integer`):

Time period for analysis (1, 3, 7, or 30 days)

## `mode` (type: `string`):

Choose what data to extract

## `max` (type: `integer`):

Maximum number of results to return (min: 20 for traders, 10 for holders)

## Actor input object example

```json
{
  "wallet_url": "https://dexscreener.com/solana/AW526gmdn3wvhxa4D5FngY1HH3zAyYBpCSJnkYdXyqpx",
  "days": 30,
  "mode": "top_traders",
  "max": 50
}
```

# 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 = {
    "wallet_url": "https://dexscreener.com/solana/AW526gmdn3wvhxa4D5FngY1HH3zAyYBpCSJnkYdXyqpx"
};

// Run the Actor and wait for it to finish
const run = await client.actor("agenscrape/dexscreener-top-traders").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 = { "wallet_url": "https://dexscreener.com/solana/AW526gmdn3wvhxa4D5FngY1HH3zAyYBpCSJnkYdXyqpx" }

# Run the Actor and wait for it to finish
run = client.actor("agenscrape/dexscreener-top-traders").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "wallet_url": "https://dexscreener.com/solana/AW526gmdn3wvhxa4D5FngY1HH3zAyYBpCSJnkYdXyqpx"
}' |
apify call agenscrape/dexscreener-top-traders --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=agenscrape/dexscreener-top-traders",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ULfylSRDbOmkEgGgJ/builds/1Q3l6lHJzpaUj0d6a/openapi.json
