# DexScreener Pairs & Tokens API: Price, Liquidity, Volume (`apt_squirrel/dexscreener-pairs`) Actor

Search DexScreener for trading pairs or look up tokens by address on any chain: price, liquidity, volume, buys and sells, FDV, pair age and social links as flat JSON. Uses the official public API.

- **URL**: https://apify.com/apt_squirrel/dexscreener-pairs.md
- **Developed by:** [YDidkivskiy](https://apify.com/apt_squirrel) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.30 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Pairs & Tokens API

Get DEX trading pairs from DexScreener as flat, spreadsheet-ready JSON. Search by name or symbol, or look up every pair of a token by its contract address.

### What you get that other scrapers do not

- **Discovery feeds**: the most boosted tokens, the latest boosts, new token profiles and community takeovers, each with its most liquid pair.
- **Trader signals**: pair age in hours, 24h transactions, buy/sell ratio, volume-to-liquidity turnover, liquidity-to-market-cap ratio, buys and sells for 5m, 1h and 6h, active boosts.
- **Filters**: market cap range, minimum volume and transactions, pair age range, minimum price change, chains and DEXes.

### What you get for every pair

- chain, DEX, pair address, DexScreener link
- base and quote token (symbol, name, address)
- price in USD and in the quote token
- liquidity, FDV, market cap
- volume and price change for 5 minutes, 1 hour, 6 hours and 24 hours
- buys and sells in the last 24 hours
- pair creation time
- websites, socials and token image

### Input

```json
{ "queries": ["SOL USDC", "PEPE"], "minLiquidityUsd": 50000 }
```

or by address:

```json
{ "tokenAddresses": ["So11111111111111111111111111111111111111112"], "chain": "solana" }
```

### Good to know

- Data comes from DexScreener's official public API, so it is the same as on the site.
- A search returns up to 30 pairs per query. Use several queries or token addresses for wider coverage.
- The same pair is saved once even if several queries find it.

### Use it from code, no-code tools and AI agents

- **API**: start a run and get the results in one HTTP call, or use the Apify Python and JavaScript clients. Results download as JSON, CSV, Excel or XML.
- **Integrations**: Make, Zapier, n8n, Google Sheets, Slack and webhooks, from the run's Integrations tab.
- **AI agents**: the actor is available as a tool through the Apify MCP server, so AI assistants and agents can call it directly.

### Pricing

Pay per result: one result is one pair. Platform usage is included. Users on paid Apify plans get an automatic discount of up to 33%.

# Actor input Schema

## `feeds` (type: `array`):

Collect the tokens DexScreener is featuring right now. Each token comes with its most liquid pair, its boost amount and its description.

## `queries` (type: `array`):

Token names, symbols or pair names, for example SOL USDC or PEPE. Each query returns up to 30 pairs.

## `tokenAddresses` (type: `array`):

Token contract addresses. Returns every pair that trades the token on the chain below.

## `chain` (type: `string`):

Chain ID as DexScreener writes it: solana, ethereum, base, bsc, arbitrum and so on.

## `minLiquidityUsd` (type: `integer`):

Skip pairs with less liquidity than this. 0 keeps everything.

## `minMarketCap` (type: `integer`):

Skip pairs with a smaller market cap.

## `maxMarketCap` (type: `integer`):

Skip pairs with a bigger market cap: early gems only.

## `minVolume24h` (type: `integer`):

Skip pairs that traded less in the last 24 hours.

## `minTxns24h` (type: `integer`):

Skip pairs with fewer buys plus sells in the last 24 hours.

## `minAgeHours` (type: `integer`):

Skip pairs created more recently than this.

## `maxAgeHours` (type: `integer`):

Skip pairs older than this: new launches only.

## `minPriceChange24h` (type: `integer`):

Skip pairs that moved less (negative values allowed).

## `chains` (type: `array`):

For example solana, ethereum, base, bsc.

## `dexes` (type: `array`):

For example raydium, pumpswap, uniswap.

## `bestPairPerToken` (type: `boolean`):

Keep only the most liquid pair of each token. On by default for feeds.

## Actor input object example

```json
{
  "queries": [
    "SOL USDC"
  ],
  "chain": "solana",
  "minLiquidityUsd": 0
}
```

# Actor output Schema

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

No description

# 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 = {
    "queries": [
        "SOL USDC"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("apt_squirrel/dexscreener-pairs").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 = { "queries": ["SOL USDC"] }

# Run the Actor and wait for it to finish
run = client.actor("apt_squirrel/dexscreener-pairs").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 '{
  "queries": [
    "SOL USDC"
  ]
}' |
apify call apt_squirrel/dexscreener-pairs --silent --output-dataset

```

## MCP server setup

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

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/q0pEFdSzcciXGBjPb/builds/DJra8zUBpflBAWWu2/openapi.json
