# Dexscreener Top Traders Scraper (`crypto-scraper/dexscreener-top-traders-scraper`) Actor

Scrape the top traders from a token. It works with Hyperioliquid, Solana, Ethereum and other chains. Find insider and top traders for a token.

- **URL**: https://apify.com/crypto-scraper/dexscreener-top-traders-scraper.md
- **Developed by:** [Crypto Scraper](https://apify.com/crypto-scraper) (community)
- **Categories:** Developer tools, Automation, Lead generation
- **Stats:** 126 total users, 2 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 actor starts

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 Scraper

Uncover insider trading behavior and identify top-performing wallets with our **Dexscreener Top Traders Scraper**. This tool gives you a direct view into the strategies of the most successful traders on any given token, allowing you to make smarter, data-driven decisions.

### Why Choose Dexscreener Top Traders Scraper?

For traders who want to move beyond the charts, this scraper provides crucial intelligence on market movers. By analyzing the trading patterns of top wallets, you can gain insights into token accumulation, profit-taking, and overall sentiment from those in the know.

### 💎 Key Benefits

- **Track "Smart Money"**: See who is buying and selling and at what volumes.
- **Identify Top Wallets**: Find and monitor the most profitable traders for a specific token.
- **Gain a Competitive Edge**: Use insider knowledge to inform your own trading strategy.
- **Simple & Fast**: Get a clean, structured list of top traders with a simple input.

### ⚙️ Input Parameters

The actor expects a list of tokens to scrape. Each token should have the following fields:

| Parameter   | Type   | Required | Description                                    |
|-------------|--------|----------|------------------------------------------------|
| `chain`     | string | Yes      | The name of the blockchain (e.g., `solana`) |
| `address`   | string | Yes      | The address of the token to scrape.            |
| `timeframe` | string | Yes      | Timeframe: `30d`, `7d`, `3d`, `1d`. |

#### Example Input

```json
{
    "tokens": [
        {
            "chain": "solana",
            "address": "4gmic8GGP6q4R3W2yAjASg2et2Ty8swrA2vLe1f421aY",
            "timeframe": "7d"
        },
        {
            "chain": "ethereum",
            "address": "0x1234567890abcdef1234567890abcdef12345678",
            "timeframe": "30d"
        }
    ]
}
```

### 📊 Comprehensive Data Fields

The actor will output a list of top traders with the following information:

- `token`: The token address that was scraped.
- `sol_scan_url`: The URL to the trader's wallet on a block explorer (e.g., Solscan).
- `wallet`: The trader's wallet address.
- `buy_usd_amount`: The total USD amount of tokens bought.
- `sell_usd_amount`: The total USD amount of tokens sold.
- `pnl`: The profit and loss in USD.
- `buy_token_amount`: The amount of tokens bought.
- `buy_txns`: The number of buy transactions.
- `sell_token_amount`: The amount of tokens sold.
- `sell_txns`: The number of sell transactions.

### 📈 Example Output Structure

```json
{
  "token": "4gmic8GGP6q4R3W2yAjASg2et2Ty8swrA2vLe1f421aY",
  "sol_scan_url": "https://solscan.io/account/ADj7cSMTyoB4cyx2puLN5uTyzZDJdtwQ1KxST5GRtkTL",
  "wallet": "ADj7cSMTyoB4cyx2puLN5uTyzZDJdtwQ1KxST5GRtkTL",
  "buy_usd_amount": 15400.0,
  "sell_usd_amount": 97800.0,
  "pnl": 82300.0,
  "buy_token_amount": 36000000.0,
  "buy_txns": 10.0,
  "sell_token_amount": 36000000.0,
  "sell_txns": 4.0
}
```

### 🔍 TypeScript Type

```typescript
interface TopTrader {
  token: string;
  sol_scan_url: string;
  wallet: string;
  buy_usd_amount: number;
  sell_usd_amount: number;
  pnl: number;
  buy_token_amount: number;
  buy_txns: number;
  sell_token_amount: number;
  sell_txns: number;
}
```

### 🐍 Pydantic Model

```python
from pydantic import BaseModel

class TopTrader(BaseModel):
    token: str
    sol_scan_url: str
    wallet: str
    buy_usd_amount: float
    sell_usd_amount: float
    pnl: float
    buy_token_amount: float
    buy_txns: float
    sell_token_amount: float
    sell_txns: float
```

# Actor input Schema

## `tokens` (type: `array`):

List of tokens to scrape for top traders data.

## Actor input object example

```json
{
  "tokens": [
    {
      "chain": "solana",
      "address": "9qppy1kxrtfeewkfaysyhd7eu9glg5pgxdlkdl51p7ex",
      "timeframe": "7d"
    }
  ]
}
```

# 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 = {
    "tokens": [
        {
            "chain": "solana",
            "address": "9qppy1kxrtfeewkfaysyhd7eu9glg5pgxdlkdl51p7ex",
            "timeframe": "7d"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("crypto-scraper/dexscreener-top-traders-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 = { "tokens": [{
            "chain": "solana",
            "address": "9qppy1kxrtfeewkfaysyhd7eu9glg5pgxdlkdl51p7ex",
            "timeframe": "7d",
        }] }

# Run the Actor and wait for it to finish
run = client.actor("crypto-scraper/dexscreener-top-traders-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 '{
  "tokens": [
    {
      "chain": "solana",
      "address": "9qppy1kxrtfeewkfaysyhd7eu9glg5pgxdlkdl51p7ex",
      "timeframe": "7d"
    }
  ]
}' |
apify call crypto-scraper/dexscreener-top-traders-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,crypto-scraper/dexscreener-top-traders-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/FxDBnFzNj5ZMhIbZe/builds/HlLGE08lpRR3k5E3H/openapi.json
