# Dexscreener Token & Pair Data Scraper (`devilscrapes/dexscreener-scraper`) Actor

Bulk-resolve on-chain trading-pair data — price, liquidity, volume, FDV, market cap, buy/sell counts — from Dexscreener's public keyless JSON API. Batch-lookup by search query, token address, or exact chain+pair address.

- **URL**: https://apify.com/devilscrapes/dexscreener-scraper.md
- **Developed by:** [DevilScrapes](https://apify.com/devilscrapes) (community)
- **Categories:** Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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

<div align="center">
  <img src=".actor/icon.svg" width="160" alt="Devil Scrapes mark" />

## Dexscreener Token & Pair Data Scraper

**💰 $4.20 / 1 000 rows**  ·  pay only for results  ·  no credit card to try

*We do the dirty work so your dataset stays clean.* 😈

Bulk-resolve on-chain trading-pair data — price, liquidity, volume, FDV, market cap, buy/sell counts — from Dexscreener's public keyless JSON API. Batch-lookup by search query, token address, or exact chain+pair address.

</div>

***

### 🎯 What this scrapes

Dexscreener exposes live trading-pair data — price, liquidity, volume, FDV, market cap, and buy/sell transaction counts — through three public JSON endpoints, but each one only answers a single search query, address, or pair at a time. This Actor batches all three: free-text search queries, token contract addresses (chunked internally), and exact chain + pair-address lookups. Every trading pair Dexscreener returns becomes one dataset row — a search can surface many pairs, a token address returns every pair it trades in, and a pair lookup returns at most one. Nothing found for a given query, address, or pair is simply reported as zero rows, never a placeholder or a failed run.

### 🔥 What we handle for you

- 🔁 **Retries with exponential backoff** on 408 / 429 / 5xx and honours `Retry-After` — up to 5 attempts per call, with rotated browser impersonation on every retry.
- 🧩 **Three batch lookups in one run** — free-text search, token-address (auto-chunked), and exact pair lookups, no manual endpoint-juggling.
- 🫠 **One bad query never fails the run** — a failed or empty lookup is logged and skipped; the rest of your batch still ships.
- 🧊 **Clean, typed dataset rows** — Pydantic-validated, raw `price_usd` string preserved (no float precision loss), JSON / CSV / Excel export straight from the Apify Console.
- 💰 **Pay-Per-Event pricing** — you only pay for trading pairs actually returned. Empty search results and no-match lookups are free.

### 💡 Use cases

- Feed a trading bot or alert system with live price, liquidity, and volume for a watchlist of token addresses.
- Screen new or trending memecoins by batch-searching project names and comparing liquidity and FDV across results.
- Track a specific liquidity pool's price and transaction activity over time by pinning its chain and pair address.
- Build an on-chain analytics dashboard that ingests price/volume/market-cap snapshots across many tokens in one run.

### ⚙️ How to use it

1. Click **Try for free** at the top of the page.
2. Fill in the input form — most fields have sensible defaults.
3. Click **Start**. Output streams into the run's dataset.
4. Export from **Storage → Dataset** as JSON, CSV, or Excel — or fetch via the API.

### 📥 Input

| Field | Type | Required | Default | Notes |
|---|---|:--:|---|---|
| `search_queries` | `array` | no | \['pepe', 'doge'] | Free-text queries to Dexscreener's /search endpoint (token name, symbol, or pair). Each query returns up to ~30… |
| `token_addresses` | `array` | no | \['0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48'] | On-chain token contract addresses to look up via Dexscreener's /tokens endpoint. Chunked internally (≤30 addresses per… |
| `pairs` | `array` | no | \[{'chain\_id': 'ethereum', 'pair\_address': '0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640'}, {'chain\_id': 'ethereum', 'pair\_address': '0x0000000000000000000000000000000000dead'}] | Exact { chain\_id, pair\_address } lookups via Dexscreener's /pairs/{chainId}/{pairAddress} endpoint — one API call per… |
| `proxyConfiguration` | `object` | no | {'useApifyProxy': False} | Dexscreener's public JSON API is keyless with no anti-bot surface observed. Leave this off unless your account requires… |

#### Example input

```json
{
  "search_queries": [
    "pepe",
    "doge"
  ],
  "token_addresses": [
    "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
  ],
  "pairs": [
    {
      "chain_id": "ethereum",
      "pair_address": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640"
    },
    {
      "chain_id": "ethereum",
      "pair_address": "0x0000000000000000000000000000000000dead"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

### 📤 Output

Every row is one dataset item.

| Field | Type | Notes |
|---|---|---|
| `source_type` | `string` | Which input list produced this row (search / token\_address / pair). |
| `source_query` | `string` | Originating search string, token address, or "{chain\_id}/{pair\_address}". |
| `chain_id` | `string` | Dexscreener chain id (e.g. 'ethereum', 'solana'). |
| `pair_address` | `string` | On-chain trading-pair (pool) address. |
| `base_token_address` | `string` | Base token contract address. |
| `base_token_symbol` | `string` | Base token symbol. |
| `quote_token_symbol` | `string` | Quote token symbol. |
| `price_usd` | `string` | Current price in USD, kept as Dexscreener's raw string (no float precision loss). |
| `volume_h24` | `number` | 24-hour trading volume in USD. |
| `liquidity_usd` | `number` | Current pool liquidity in USD. |
| `fdv` | `number` | Fully diluted valuation in USD. |
| `market_cap` | `number` | Market capitalization in USD. |
| `price_change_h24` | `number` | 24-hour price change, percent. |
| `txns_buys_h24` | `integer` | Number of buy transactions in the last 24 hours. |
| `txns_sells_h24` | `integer` | Number of sell transactions in the last 24 hours. |
| `fetched_at` | `string` | ISO-8601 timestamp of this fetch. |

#### Example output

```json
{
  "source_type": "search",
  "source_query": "pepe",
  "chain_id": "solana",
  "pair_address": "FCEnSxyJfRSKsz6tASUENCsfGwKgkH6YuRn1AMmyHhZn",
  "base_token_address": "B5WTLaRwaUQpKk7ir1wniNB6m5o8GgMrimhKMYan2R6B",
  "base_token_symbol": "Pepe",
  "quote_token_symbol": "SOL",
  "price_usd": "0.001566",
  "volume_h24": 2889642.68,
  "liquidity_usd": 393803.33,
  "fdv": 658000000.0,
  "market_cap": 658000000.0,
  "price_change_h24": 4.2,
  "txns_buys_h24": 5210,
  "txns_sells_h24": 4830,
  "fetched_at": "2026-09-20T00:00:00Z"
}
```

### 💰 Pricing

Pay-Per-Event — you pay only when these events fire:

| Event | USD | What it is |
|---|---:|---|
| `actor-start` | $0.2 | One-off warm-up charge per run |
| `result-row` | $0.004 | Per unique dataset item |

Example: 1 000 rows at the rates above ≈ **$4.20**. No subscription, no minimum, no card to start — Apify gives every new account $5 of free credit.

### 🚧 Limitations

- Search queries return Dexscreener's own top matches (~30 per query) — this is a lookup, not a deep paginated crawl. Use token\_addresses or pairs for depth.
- Only chains and DEXs indexed by Dexscreener itself are covered.
- No historical/candlestick data, no wallet-level or top-trader data — only current pair snapshots.
- Discovering addresses you don't already have is limited to search\_queries' ~30-result cap per query.

### ❓ FAQ

**Do I need an API key or wallet connection?**

No. This Actor uses only Dexscreener's public, keyless JSON API — no auth, no login, no wallet connection.

**What happens if my search query, address, or pair has no matches?**

It comes back as zero rows for that item and is counted in the run's status message — the run still succeeds. No placeholder rows, no failure.

**How many token addresses or pairs can I look up in one run?**

Up to 50 search queries, 300 token addresses (chunked internally, ≤30 per API call), and 200 exact pairs per run.

**Does this return historical price charts or OHLCV data?**

No. The endpoints used here return current snapshot data only — price, 24h volume, liquidity, FDV, market cap, and 24h transaction counts. No candlestick or historical data is exposed by these endpoints.

### 💬 Your feedback

Spotted a bug, hit a weird edge case, or need a new field? Open an
issue on the Actor's **Issues** tab on Apify Console — we ship
fixes weekly and we read every report.

***

<div align="center">

Built by **[Devil Scrapes](https://apify.com/DevilScrapes)** 😈 — a small fleet of
opinionated public-data Actors. Honest pricing, real engineering, zero fine print.

</div>

# Changelog

This Actor's version history is a separate document: https://apify.com/devilscrapes/dexscreener-scraper/changelog.md

# Actor input Schema

## `search_queries` (type: `array`):

Free-text queries to Dexscreener's /search endpoint (token name, symbol, or pair). Each query returns up to ~30 matching trading pairs, one row per pair. Up to 50 queries per run.

## `token_addresses` (type: `array`):

On-chain token contract addresses to look up via Dexscreener's /tokens endpoint. Chunked internally (≤30 addresses per API call). Every pair involving any of these tokens is returned, one row per pair. Up to 300 addresses per run.

## `pairs` (type: `array`):

Exact { chain\_id, pair\_address } lookups via Dexscreener's /pairs/{chainId}/{pairAddress} endpoint — one API call per pair, zero or one row each. Up to 200 pairs per run.

## `proxyConfiguration` (type: `object`):

Dexscreener's public JSON API is keyless with no anti-bot surface observed. Leave this off unless your account requires egress through Apify Proxy.

## Actor input object example

```json
{
  "search_queries": [
    "pepe",
    "doge"
  ],
  "token_addresses": [
    "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
  ],
  "pairs": [
    {
      "chain_id": "ethereum",
      "pair_address": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640"
    },
    {
      "chain_id": "ethereum",
      "pair_address": "0x0000000000000000000000000000000000dead"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `datasetItems` (type: `string`):

All dataset items as JSON.

## `datasetItemsCsv` (type: `string`):

Same data exported to CSV.

## `datasetView` (type: `string`):

Open the run dataset in the Console.

# 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 = {
    "search_queries": [
        "pepe",
        "doge"
    ],
    "token_addresses": [
        "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
        "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
    ],
    "pairs": [
        {
            "chain_id": "ethereum",
            "pair_address": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640"
        },
        {
            "chain_id": "ethereum",
            "pair_address": "0x0000000000000000000000000000000000dead"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("devilscrapes/dexscreener-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 = {
    "search_queries": [
        "pepe",
        "doge",
    ],
    "token_addresses": [
        "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
        "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
    ],
    "pairs": [
        {
            "chain_id": "ethereum",
            "pair_address": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640",
        },
        {
            "chain_id": "ethereum",
            "pair_address": "0x0000000000000000000000000000000000dead",
        },
    ],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("devilscrapes/dexscreener-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 '{
  "search_queries": [
    "pepe",
    "doge"
  ],
  "token_addresses": [
    "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
  ],
  "pairs": [
    {
      "chain_id": "ethereum",
      "pair_address": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640"
    },
    {
      "chain_id": "ethereum",
      "pair_address": "0x0000000000000000000000000000000000dead"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call devilscrapes/dexscreener-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,devilscrapes/dexscreener-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/5ETN0A9GLP9wEAJrK/builds/EP2f3aeA7LPMs38ag/openapi.json
