# Polymarket Leaderboard & Top Traders Scraper (`copytop/polymarket-leaderboard-scraper`) Actor

Polymarket leaderboard by PnL or volume (day, week, month, all time, up to 5000 traders), plus positions, trades and activity for any wallet. Reads Polymarket's public data API v2. Read-only, no login, no key.

- **URL**: https://apify.com/copytop/polymarket-leaderboard-scraper.md
- **Developed by:** [copy.top](https://apify.com/copytop) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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

## Polymarket Leaderboard & Top Traders Scraper

Export the Polymarket leaderboard by profit or by volume, for the day, the week, the month or all time, up to 5000 traders per run. Then pull the positions, the trades and the activity of any wallet. Clean JSON, CSV or Excel. No login, no API key, no browser.

This actor reads **Polymarket's public data API v2** directly. It is read-only: nothing here places an order, moves funds or needs a wallet. It is published by copy.top, which tracks what top traders buy and sell on fomo, pumpfun and Hyperliquid, and lets people copy them. Every row carries a `copytop_url` that points to copy.top's Polymarket research page.

If you were looking for a Polymarket leaderboard scraper, a Polymarket API for top traders, or a way to see what Polymarket whales hold, this is the short path: pick a mode, press Start, download the dataset.

### Why other Polymarket scrapers break

Polymarket retired version 1 of its data API. The old paths without `/v2` (for example `data-api.polymarket.com/leaderboard`) now answer HTTP 410 with the message "Data API v1 has been retired". Tools built on those paths return nothing. This actor uses the v2 paths, with the v2 field names and cursor pagination. Checked on 2026-11-16.

A second trap: the API answers 403 to some default HTTP clients. The actor sends a browser-like User-Agent header, which is what the API expects.

### What it does

| Mode | What you get | Rows per run |
|---|---|---|
| `leaderboard` | Top traders ranked by PnL or volume over the day, week, month or all time, optionally inside one category | up to 5000 |
| `positions` | Positions of each wallet: market, outcome, size, average price, current value, realized and unrealized PnL | up to 5000 per wallet, up to 50 wallets |
| `trades` | Latest trades of each wallet: market, outcome, side, size, price, time, transaction hash | up to 5000 per wallet |
| `activity` | Latest activity of each wallet, with the activity type and the size in USDC | up to 5000 per wallet |

The actor reads pages of 500 rows, follows the cursor the API returns and waits 700 ms between pages.

### Who it is for

- **Prediction market traders** who want to see who is making money this week and on which markets.
- **Researchers and journalists** who study how large wallets are positioned on an election, a sports event or a crypto market.
- **Bot and dashboard builders** who need a Polymarket top traders feed that survived the move to v2.
- **Analysts** who want history: schedule the actor and keep every dataset to follow the ranking over time.
- **AI agent builders** who want a simple tool that returns structured Polymarket trader data.

### Input

| Field | Type | Used in mode | Default | Description |
|---|---|---|---|---|
| `mode` | string | all | `leaderboard` | `leaderboard`, `positions`, `trades` or `activity` |
| `timePeriod` | string | leaderboard | `WEEK` | `DAY`, `WEEK`, `MONTH` or `ALL` |
| `orderBy` | string | leaderboard | `PNL` | `PNL` or `VOLUME` |
| `category` | string | leaderboard | empty | Optional, one word, for example `politics`. Empty means the overall leaderboard. An unknown category returns no rows |
| `limit` | integer | all | `100` | Leaderboard: 1 to 5000 traders. Other modes: 1 to 5000 rows per wallet |
| `addresses` | array of strings | positions, trades, activity | none | Wallet addresses (0x and 40 hex characters). Up to 50. Use the `user_id` of the leaderboard rows |

Example input for the top 1000 traders of the month by profit:

```json
{
    "mode": "leaderboard",
    "timePeriod": "MONTH",
    "orderBy": "PNL",
    "limit": 1000
}
```

Example input for the positions of one wallet:

```json
{
    "mode": "positions",
    "addresses": ["0xad5353afe30c2da57709e2704ef3ccdcf67eef24"],
    "limit": 200
}
```

### Output

Every row has a `type`, a `copytop_url` and a `scraped_at` timestamp. The other fields keep the names of the Polymarket API, so the official documentation applies. Download the dataset as JSON, CSV, Excel, XML or HTML from the run page or the Apify API.

#### Leaderboard row (`type: "leaderboard"`)

| Field | Meaning |
|---|---|
| `rank` | Rank given by Polymarket for this period and order |
| `user_id` | The trader's wallet address |
| `user_name` | Display name |
| `pnl` | Profit and loss in USD over the period |
| `volume` | Traded volume in USD over the period |
| `profile_image` | Profile picture URL, can be empty |
| `x_username` | X username when the trader linked one, can be empty |
| `verified` | Verified badge, true or false |
| `time_period`, `order_by`, `category` | The query that produced the row. `category` is `overall` when none was set |
| `polymarket_url` | The trader's profile on Polymarket |
| `copytop_url` | https://copy.top/research/polymarket |
| `scraped_at` | When the actor read the data (ISO 8601, UTC) |

Real sample row, captured on 2026-11-16 (first of the week by PnL):

```json
{
    "type": "leaderboard",
    "rank": 1,
    "user_id": "0xad5353afe30c2da57709e2704ef3ccdcf67eef24",
    "pnl": 1171349.4391523763,
    "volume": 2302599.5110989977,
    "user_name": "xtxpleasecallme",
    "profile_image": "",
    "x_username": "",
    "verified": false,
    "time_period": "WEEK",
    "order_by": "PNL",
    "category": "overall",
    "polymarket_url": "https://polymarket.com/profile/0xad5353afe30c2da57709e2704ef3ccdcf67eef24",
    "copytop_url": "https://copy.top/research/polymarket",
    "scraped_at": "2026-11-16T16:50:55.375Z"
}
```

#### Position row (`type: "position"`)

`address`, `proxy_wallet`, `title`, `slug`, `event_slug`, `event_id`, `outcome`, `outcome_index`, `opposite_outcome`, `status`, `current_size`, `total_size`, `avg_price`, `current_price`, `current_value`, `entry_cost_usdc`, `entry_fees_usdc`, `total_cost_usdc`, `realized_pnl`, `unrealized_pnl`, `total_pnl`, `percent_pnl`, `percent_realized_pnl`, `redeemable`, `mergeable`, `negative_risk`, `archived`, `end_date`, `first_entry_at`, `last_event_at`, `token_id`, `opposite_token_id`, `condition_id`, `icon`, `name`, `profile_image`, `verified`, `copytop_url`, `scraped_at`.

Real sample row, captured on 2026-11-16 (trimmed to the main fields):

```json
{
    "type": "position",
    "address": "0xad5353afe30c2da57709e2704ef3ccdcf67eef24",
    "title": "Will Namibia vs. Cameroon end in a draw?",
    "outcome": "No",
    "status": "OPEN",
    "current_size": 3080.5183,
    "avg_price": 0.903,
    "current_price": 0.9995,
    "current_value": 3078.9781,
    "total_cost_usdc": 2788.010826,
    "realized_pnl": -21.1722,
    "unrealized_pnl": 297.2058,
    "total_pnl": 276.0336,
    "percent_pnl": 10.684,
    "end_date": "2026-11-16",
    "event_slug": "afcq-nam-cam-2026-11-16",
    "copytop_url": "https://copy.top/research/polymarket",
    "scraped_at": "2026-11-16T16:50:57.242Z"
}
```

#### Trade row (`type: "trade"`) and activity row (`type: "activity"`)

`address`, `proxy_wallet`, `side` (`BUY` or `SELL`), `title`, `slug`, `event_slug`, `outcome`, `outcome_index`, `size`, `price`, `timestamp` (seconds), `time` (the same moment in ISO 8601), `transaction_hash`, `token_id`, `condition_id`, `icon`, `name`, `pseudonym`, `profile_image`, `copytop_url`, `scraped_at`. Activity rows also have `activity_type` (for example `TRADE`) and `usdc_size`. The free text `bio` field of the profile is left out.

Real sample row, captured on 2026-11-16 (trimmed to the main fields):

```json
{
    "type": "trade",
    "address": "0xad5353afe30c2da57709e2704ef3ccdcf67eef24",
    "side": "BUY",
    "size": 5,
    "price": 0.88,
    "timestamp": 1794847825,
    "time": "2026-11-16T16:50:25.000Z",
    "title": "Will DeepSeek be the third-best AI lab at the end of November 2026?",
    "outcome": "No",
    "event_slug": "third-best-ai-lab-end-of-november",
    "transaction_hash": "0x13883711822e2c00eee555867e9614b7401ec34fba408b0a399d67de4838249e",
    "copytop_url": "https://copy.top/research/polymarket",
    "scraped_at": "2026-11-16T16:50:57.680Z"
}
```

### How to run it

#### From the Apify Console

Open the actor, pick a mode, press **Start**. When the run ends, open the **Output** tab and export the dataset.

#### From the Apify API

Run and get the rows in one call (replace the token with yours, from Apify Console, Settings, API and Integrations):

```bash
curl -X POST "https://api.apify.com/v2/acts/copytop~polymarket-leaderboard-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "content-type: application/json" \
  -d '{"mode":"leaderboard","timePeriod":"WEEK","orderBy":"PNL","limit":100}'
```

With the JavaScript client:

```js
import { ApifyClient } from "apify-client";

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const board = await client.actor("copytop/polymarket-leaderboard-scraper").call({ mode: "leaderboard", timePeriod: "MONTH", orderBy: "PNL", limit: 20 });
const { items: top } = await client.dataset(board.defaultDatasetId).listItems();

// then read what the top 20 hold
const run = await client.actor("copytop/polymarket-leaderboard-scraper").call({ mode: "positions", addresses: top.map((t) => t.user_id), limit: 100 });
const { items: positions } = await client.dataset(run.defaultDatasetId).listItems();
console.log(positions);
```

With the Python client:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("copytop/polymarket-leaderboard-scraper").call(run_input={"mode": "leaderboard", "timePeriod": "DAY", "orderBy": "VOLUME", "limit": 500})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["rank"], item["user_name"], item["pnl"], item["volume"])
```

#### On a schedule

In Apify Console open **Schedules**, create a schedule, add this actor with your input and pick a cron expression. Useful setups:

- `0 0 * * *` with mode `leaderboard`, period `DAY`: a daily snapshot, to build your own history of the ranking.
- `*/15 * * * *` with mode `positions` and your shortlist of wallets: see when a large trader enters or leaves a market.
- `*/5 * * * *` with mode `trades` and a small `limit`: a near real time feed of what your shortlist trades.

You can also connect the dataset to Google Sheets, Slack, Make, Zapier or a webhook from the **Integrations** tab of the actor.

### Limits

- Leaderboard: up to 5000 rows per run, read in pages of 500 with 700 ms between pages. A full run of 5000 rows is 10 calls.
- Positions, trades and activity: up to 5000 rows per wallet and 50 wallets per run.
- The actor retries when the API answers 429 or a server error. It stops with a clear message on 403 or 410.
- Categories are passed to the API as you type them. `politics` was checked on 2026-11-16. A category the API does not know returns an empty dataset.

### FAQ

#### Is there a Polymarket leaderboard API?

Yes. Polymarket has a public data API, and its leaderboard lives at `data-api.polymarket.com/v2/leaderboard`. This actor wraps it with pagination, retries and export, so you get up to 5000 traders in one run with no code.

#### Is this Polymarket scraper free?

The actor itself is free. You only pay Apify for the platform usage of your runs. It needs no Polymarket API key and no account.

#### Why does my Polymarket scraper return 410 or 403?

410 means it still calls the retired v1 paths, the ones without `/v2`. 403 often means the request was sent with the default User-Agent of an HTTP library. This actor uses the v2 paths and a browser-like User-Agent.

#### How do I find the top Polymarket traders and see their positions?

Run the actor in `leaderboard` mode ordered by `PNL` over the week, the month or all time. Take the `user_id` of the traders you care about, then run the `positions` mode with those addresses to see their markets, and the `trades` mode to see what they just bought or sold.

#### Can I copy trade Polymarket traders on copy.top?

No. Copy trading on Polymarket is not open on copy.top. This actor and copy.top's Polymarket research page are for reading data only. Copy trading on copy.top covers fomo, pumpfun and Hyperliquid traders.

### Need more?

- Polymarket research on copy.top: https://copy.top/research/polymarket
- Developer docs: https://copy.top/developers
- Polymarket API guide: https://copy.top/polymarket-api

### Good to know

- Read-only: nothing here places an order.
- Data source: Polymarket's public data API v2 (`data-api.polymarket.com/v2`), called directly.
- Copy trading on Polymarket is not open on copy.top.
- copy.top is independent. It is not affiliated with Polymarket.
- Published by copy.top. Contact: ana@copy.top. License: MIT.
- figures are data, not advice. trading memecoins is risky and past performance does not predict results. Prediction markets are risky too.

# Actor input Schema

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

What to fetch. leaderboard: top traders by PnL or volume. positions, trades, activity: rows for each wallet address you list.

## `timePeriod` (type: `string`):

Period the ranking covers.

## `orderBy` (type: `string`):

Rank by profit and loss or by traded volume.

## `category` (type: `string`):

Optional. One word, for example politics. Leave empty for the overall leaderboard. A category the API does not know returns no rows.

## `limit` (type: `integer`):

Leaderboard: number of traders, 1 to 5000. Other modes: rows per address, 1 to 5000. The actor reads pages of 500 and waits 700 ms between pages.

## `addresses` (type: `array`):

Polymarket wallet addresses: 0x followed by 40 hex characters. Up to 50 per run. Take them from the user_id field of the leaderboard rows.

## Actor input object example

```json
{
  "mode": "leaderboard",
  "timePeriod": "WEEK",
  "orderBy": "PNL",
  "limit": 100,
  "addresses": [
    "0xad5353afe30c2da57709e2704ef3ccdcf67eef24"
  ]
}
```

# Actor output Schema

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

Dataset items: one row per trader, position, trade or activity event, depending on the mode.

# 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 = {
    "addresses": [
        "0xad5353afe30c2da57709e2704ef3ccdcf67eef24"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("copytop/polymarket-leaderboard-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 = { "addresses": ["0xad5353afe30c2da57709e2704ef3ccdcf67eef24"] }

# Run the Actor and wait for it to finish
run = client.actor("copytop/polymarket-leaderboard-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 '{
  "addresses": [
    "0xad5353afe30c2da57709e2704ef3ccdcf67eef24"
  ]
}' |
apify call copytop/polymarket-leaderboard-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,copytop/polymarket-leaderboard-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/Xxvvg5SRtSpAE4cuK/builds/iUCmaPesfW2Hba10Z/openapi.json
