# DexScreener Tokens Scraper (`cardinal_radiance_bce/dexscreener-tokens-scraper`) Actor

Scrapes live crypto token prices, pairs and volume from DexScreener's public API. Pay-per-event: $0.003 per token after the first 50 free.

- **URL**: https://apify.com/cardinal_radiance_bce/dexscreener-tokens-scraper.md
- **Developed by:** [Tristan Evans](https://apify.com/cardinal_radiance_bce) (community)
- **Categories:** Automation, Developer tools, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.00 / 1,000 per token extracteds

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 Tokens Scraper

Extract live crypto token pairs (price, liquidity, 24h volume and price change) from DexScreener's public API. Ideal for traders, analysts and dashboards that need real-time token market data.

### Features

- **Public data only**: uses DexScreener's open API — no API key, login or paid proxy needed
- **Chain filter**: scan a specific chain (ethereum, solana, base, arbitrum, …) or sample across popular tokens
- **Liquidity filter**: ignore dust pairs by setting a minimum USD liquidity
- **Dry run**: count how many pairs a query yields before paying for anything
- **Pay-per-event**: first 50 token pairs per run free, then $0.003 per pair

### Data fields

Each dataset record includes:

- `chainId` — blockchain the pair trades on (ethereum, solana, base, …)
- `pairAddress` — DexScreener pair address
- `baseToken` / `quoteToken` — address, name and symbol of each token
- `priceUsd` — current price of the base token in USD
- `liquidityUsd` — total pair liquidity in USD
- `volume24h` — 24h trading volume in USD
- `priceChange24h` — 24h price change percentage
- `pairUrl` — link to the pair on DexScreener
- `dexId` — decentralised exchange (uniswap, pancakeswap, …)
- `createdAt` — when the pair was first seen
- `scrapedAt` — when this record was extracted

### Pricing

**Pay-per-event**: $0.003 per token pair (after first 50 free per run)

Example costs:

- 100 pairs: $0.15 (50 free + 50 × $0.003)
- 500 pairs: $1.35 (50 free + 450 × $0.003)
- 1000 pairs: $2.85 (50 free + 950 × $0.003)

### Input

```json
{
  "chainId": "ethereum",
  "maxTokens": 100,
  "minLiquidityUsd": 1000,
  "dryRun": false
}
```

- `chainId` (optional): DexScreener chain slug. Leave empty to sample popular tokens.
- `maxTokens` (default 100, max 1000): maximum pairs to return.
- `minLiquidityUsd` (default 0): skip pairs below this USD liquidity.
- `dryRun` (default false): count only, push nothing to the dataset, charge nothing.

### Output

```json
{
  "chainId": "ethereum",
  "pairAddress": "0x1234...",
  "baseToken": { "address": "0xabcd…", "name": "Ethereum", "symbol": "ETH" },
  "quoteToken": { "address": "0x1234…", "name": "USD Coin", "symbol": "USDC" },
  "priceUsd": "3421.50",
  "liquidityUsd": 4500000,
  "volume24h": 120000000,
  "priceChange24h": 2.4,
  "pairUrl": "https://dexscreener.com/ethereum/0x1234…",
  "dexId": "uniswap",
  "createdAt": "2024-01-15T08:30:00Z",
  "scrapedAt": "2026-11-19T12:00:00+00:00"
}
```

### Example output

#### Example output (live DexScreener pairs, max 5 results)

| chainId | baseToken | quoteToken | priceUsd | liquidityUsd | dexId |
|---|---|---|---|---|---|
| tron | Bitcoin | USDT | 63543.65 | 2125860.49 | sunswap |
| solana | Bitcoin | USDC | 80864.88 | 808316179.36 | raydium |
| ethereum | Ether | USDC | 1803.49 | 1144791.17 | uniswap |

*Data from a live DexScreener API call matching the actor's output transform on 2026-11-19 (`scrapedAt` `2026-11-19T08:33:38.505215+00:00`), built to the same schema as the actor's `dexscreener-tokens-scraper` output (build `0.0.4`). DexScreener public API (`https://api.dexscreener.com/`).*

### Notes

- Data comes directly from DexScreener's public API (`https://api.dexscreener.com/`). Prices and volumes are live and update constantly.
- Without a `chainId` the actor samples popular symbols (BTC, ETH, SOL, USDT, USDC) rather than attempting an unsupported "all pairs" call.
- Results are de-duplicated by pair address.
- Respect DexScreener's rate limits; don't chain many rapid runs.

### FAQ

**Q: Why does my run return 0 results?**\
A: Check the chain ID is a valid DexScreener slug (e.g. `ethereum`, `solana`, `base`). With no chain ID the actor samples popular tokens — increase `maxTokens` or add a liquidity filter if you see too few results.

**Q: How are charges calculated?**\
A: Pay-per-event: the first 50 token pairs per run are free, then **$0.003 per pair** saved to the dataset, plus a tiny per-run start fee. Dry runs cost nothing.

**Q: Is DexScreener data free to use?**\
A: DexScreener provides public market data via its API. This actor only requests public endpoints that require no authentication.

### Price comparison

| Actor | Per pair | Per 1,000 pairs | Notes |
|---|---|---|---|
| **DexScreener Tokens Scraper** | ~$0.003 | **$3.00** | First 50 free/run, live DexScreener data |
| Generic crypto scrapers | $0.002–$0.005 | $2–5 | Usually need proxies/API keys, no DexScreener structure |

### Also see

- [career-site-jobs](https://apify.com/cardinal_radiance_bce/career-site-jobs) — Greenhouse, Lever, Ashby, Workable, SmartRecruiters, Recruitee ($3/1k jobs)
- [workday-jobs-api](https://apify.com/cardinal_radiance_bce/workday-jobs-api) — every job from any Workday career site ($1/1k jobs)
- [website-contact-extractor](https://apify.com/cardinal_radiance_bce/website-contact-extractor) — business emails, phones and socials per domain ($1.50/1k sites)
- [article-scraper](https://apify.com/cardinal_radiance_bce/article-scraper) — article titles, authors, dates, tags and CTA links from any site ($2/1k articles)
- [bulk-domain-check](https://apify.com/cardinal_radiance_bce/bulk-domain-check) — domain availability, RDAP, DNS and SPF/DMARC in bulk ($1/1k domains)
- [uk-food-hygiene-ratings](https://apify.com/cardinal_radiance_bce/uk-food-hygiene-ratings) — UK FSA food hygiene ratings ($0.003 per record)

### License

This actor uses public market data from DexScreener's public API.

# Actor input Schema

## `chainId` (type: `string`):

DexScreener chain to scan (ethereum, solana, base, arbitrum, ...). Leave empty to scan all chains.

## `maxTokens` (type: `integer`):

Maximum number of token pairs to return.

## `minLiquidityUsd` (type: `number`):

Only return pairs with liquidity above this USD value.

## `dryRun` (type: `boolean`):

Count how many tokens the query yields without pushing anything to the dataset or incurring pay-per-event charges.

## Actor input object example

```json
{
  "chainId": "ethereum",
  "maxTokens": 100,
  "minLiquidityUsd": 0,
  "dryRun": false
}
```

# Actor output Schema

## `tokens` (type: `string`):

All token pairs extracted in this run.

## `overview` (type: `string`):

Token pairs in a table view.

# 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 = {
    "chainId": "ethereum"
};

// Run the Actor and wait for it to finish
const run = await client.actor("cardinal_radiance_bce/dexscreener-tokens-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 = { "chainId": "ethereum" }

# Run the Actor and wait for it to finish
run = client.actor("cardinal_radiance_bce/dexscreener-tokens-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 '{
  "chainId": "ethereum"
}' |
apify call cardinal_radiance_bce/dexscreener-tokens-scraper --silent --output-dataset

```

## MCP server setup

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