# 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
- **Security:** Full permissions
- **Stats:** 21 total users, 0 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/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

## 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(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 '{
  "wallet_url": "https://dexscreener.com/solana/AW526gmdn3wvhxa4D5FngY1HH3zAyYBpCSJnkYdXyqpx"
}' |
apify call agenscrape/dexscreener-top-traders --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,agenscrape/dexscreener-top-traders"
        }
    }
}
```

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/ULfylSRDbOmkEgGgJ/builds/1Q3l6lHJzpaUj0d6a/openapi.json
