Agent skill

Dexscreener API

by agiprolabs in agiprolabs/claude-trading-skills

Free, no-auth multi-chain DEX pair data — prices, volume, liquidity, transactions, and token profiles

MITAuto-check passedBackend & APIs

Install Dexscreener API

skills CLI
$ npx skills add agiprolabs/claude-trading-skills --skill dexscreener-api -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install agiprolabs/claude-trading-skills dexscreener-api --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/agiprolabs/claude-trading-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/dexscreener-api .claude/skills/dexscreener-api && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
dexscreener-api
GitHub stars
410
Token cost
~1.8k tokens
SKILL.md length
308 words
Files
5 (incl. scripts, references)
Skills in repo
68
Repo updated
First seen
Licence
MIT

At a glance

Free, no-auth multi-chain DEX pair data — prices, volume, liquidity, transactions, and token profiles

  • Backend & APIs work in your project
  • SKILL.md covers Quick Start, Base URL, Core Endpoints and Pair Response Schema, plus 5 more sections
  • Runs Python scripts from its folder; calls curl; reaches api.dexscreener.com and dexscreener.com

What it does

Dexscreener API is an agent skill from agiprolabs/claude-trading-skills. Free, no-auth multi-chain DEX pair data — prices, volume, liquidity, transactions, and token profiles

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts and reference files (for example `references/endpoints.md`, `references/error_handling.md` and `scripts/boost_monitor.py`).

It sits in Backend & APIs. The repository describes itself as: 68 trading, DeFi, and quantitative finance Agent Skills. Works with Claude Code, Cursor, Codex, Gemini CLI, and 30+ other tools. The licence is MIT.

When your agent uses it

  • Backend & APIs work in your project

Example prompts

  • “/dexscreener-api”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 981e1d7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • curl

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.dexscreener.com
    • dexscreener.com
    • cdn.dexscreener.com
    • x.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Dexscreener API loads about 1.8k tokens when it runs, and up to ~4k if it reads all its reference files. Until then it costs about 29 tokens; SKILL.md has 308 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~29
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from agiprolabs/claude-trading-skills at commit 981e1d7, republished under its MIT licence (© agiprolabs). 308 words, ~1,827 tokens.

Download SKILL.mdSave it as .claude/skills/dexscreener-api/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
dexscreener-api
description
Free, no-auth multi-chain DEX pair data — prices, volume, liquidity, transactions, and token profiles

DexScreener API — Free Multi-Chain DEX Data

DexScreener provides DEX pair data across 80+ chains with no API key required. Prices, volume, liquidity, transaction counts, and token profiles — all free. Best for quick lookups, cross-chain comparison, and lightweight monitoring.

Quick Start

No authentication needed. Just make requests:

python
import httpx

# Search for a token
resp = httpx.get("https://api.dexscreener.com/latest/dex/search", params={"q": "BONK"})
pairs = resp.json()["pairs"]
for p in pairs[:3]:
    print(f"{p['baseToken']['symbol']}/{p['quoteToken']['symbol']} on {p['chainId']}: ${p['priceUsd']}")
bash
# Or with curl
curl "https://api.dexscreener.com/latest/dex/search?q=BONK"

Base URL

https://api.dexscreener.com

No API key, no headers required. Rate limits: ~300 req/min for DEX data endpoints, 60 req/min for profile/boost endpoints.

Core Endpoints

Search Pairs
python
# Search by token name, symbol, or address (returns ~30 pairs across all chains)
GET /latest/dex/search?q=BONK
GET /latest/dex/search?q=So11111111111111111111111111111111111111112
Get Pairs by Chain + Pair Address
python
# Single pair
GET /latest/dex/pairs/solana/PAIR_ADDRESS

# Multiple pairs (comma-separated)
GET /latest/dex/pairs/solana/PAIR1,PAIR2,PAIR3
Get Pairs by Token Address
python
# All pairs containing this token across all chains
GET /latest/dex/tokens/TOKEN_MINT_ADDRESS

# Chain-specific (v1)
GET /token-pairs/v1/solana/TOKEN_MINT

# Multiple tokens on one chain (v1)
GET /tokens/v1/solana/TOKEN1,TOKEN2,TOKEN3
Token Profiles & Boosts
python
# Latest token profiles (60 req/min)
GET /token-profiles/latest/v1

# Latest boosted tokens
GET /token-boosts/latest/v1

# Top boosted tokens (sorted by total boost amount)
GET /token-boosts/top/v1

# Token orders (ads, profile claims)
GET /orders/v1/solana/TOKEN_ADDRESS

# Community takeovers
GET /community-takeovers/latest/v1

Pair Response Schema

json
{
  "chainId": "solana",
  "dexId": "raydium",
  "url": "https://dexscreener.com/solana/PAIR_ADDR",
  "pairAddress": "3nMFwZX...",
  "labels": ["CLMM"],
  "baseToken": { "address": "So11...", "name": "Wrapped SOL", "symbol": "SOL" },
  "quoteToken": { "address": "EPjF...", "name": "USD Coin", "symbol": "USDC" },
  "priceNative": "86.08",
  "priceUsd": "86.08",
  "txns": {
    "m5":  { "buys": 25, "sells": 18 },
    "h1":  { "buys": 916, "sells": 1282 },
    "h6":  { "buys": 11309, "sells": 12661 },
    "h24": { "buys": 27974, "sells": 31475 }
  },
  "volume": { "m5": 41680, "h1": 6773038, "h6": 71628073, "h24": 167164493 },
  "priceChange": { "m5": -0.01, "h1": -0.36, "h6": 0.82, "h24": 0.25 },
  "liquidity": { "usd": 28168478, "base": 232348, "quote": 8167805 },
  "fdv": 8171740,
  "marketCap": 8171740,
  "pairCreatedAt": 1688106058000,
  "info": {
    "imageUrl": "https://cdn.dexscreener.com/...",
    "websites": [{ "url": "https://...", "label": "Website" }],
    "socials": [{ "url": "https://x.com/...", "type": "twitter" }]
  }
}

Key notes:

  • priceNative and priceUsd are strings (preserves precision)
  • pairCreatedAt is milliseconds (divide by 1000 for unix timestamp)
  • labels: "CLMM" (concentrated), "DLMM" (dynamic), "wp" (whirlpool)
  • info is optional — only present if the token profile has been claimed
  • fdv/marketCap may be absent for tokens without supply data

Common Patterns

Quick Token Lookup
python
def lookup_token(address: str) -> dict | None:
    """Get the best pair for a token by liquidity."""
    resp = httpx.get(f"https://api.dexscreener.com/latest/dex/tokens/{address}")
    pairs = resp.json().get("pairs", [])
    if not pairs:
        return None
    # Sort by liquidity (highest first)
    pairs.sort(key=lambda p: p.get("liquidity", {}).get("usd", 0), reverse=True)
    return pairs[0]
Cross-Chain Price Check
python
def find_best_price(symbol: str) -> list[dict]:
    """Find a token across all chains and compare prices."""
    resp = httpx.get("https://api.dexscreener.com/latest/dex/search", params={"q": symbol})
    pairs = resp.json().get("pairs", [])
    results = []
    for p in pairs:
        if p["baseToken"]["symbol"].upper() == symbol.upper():
            results.append({
                "chain": p["chainId"],
                "dex": p["dexId"],
                "price": float(p.get("priceUsd", 0)),
                "liquidity": p.get("liquidity", {}).get("usd", 0),
                "volume_24h": p.get("volume", {}).get("h24", 0),
            })
    return sorted(results, key=lambda x: x["liquidity"], reverse=True)
Monitor New Tokens via Boosts
python
def get_newly_boosted() -> list[dict]:
    """Get tokens that were recently boosted (paid promotion)."""
    resp = httpx.get("https://api.dexscreener.com/token-boosts/latest/v1")
    return [
        {
            "chain": t["chainId"],
            "address": t["tokenAddress"],
            "boost_amount": t.get("amount", 0),
            "total_boost": t.get("totalAmount", 0),
            "description": t.get("description", ""),
        }
        for t in resp.json()
    ]
Buy/Sell Ratio Analysis
python
def analyze_pressure(pair: dict) -> dict:
    """Analyze buy/sell pressure from transaction counts."""
    txns = pair.get("txns", {})
    result = {}
    for tf in ["m5", "h1", "h6", "h24"]:
        data = txns.get(tf, {})
        buys = data.get("buys", 0)
        sells = data.get("sells", 0)
        total = buys + sells
        result[tf] = {
            "buys": buys, "sells": sells, "total": total,
            "buy_ratio": buys / total if total > 0 else 0.5,
        }
    return result

Supported Chains

Major chains: solana, ethereum, base, arbitrum, bsc, polygon, avalanche, optimism, zksync, scroll, linea, tron, near, aptos, ton, sui, hyperliquid

80+ chains total. The chainId matches the URL path on dexscreener.com.

Limitations

  • No OHLCV/candle data — Use Birdeye or SolanaTracker for historical candles
  • No pagination — Search returns ~30 results max
  • No wallet/trader data — Use Birdeye or Helius for wallet analysis
  • No token security data — Use Birdeye token_security endpoint
  • Snapshot data only — Current state, not historical time series
  • No WebSocket — Polling only

When to Use DexScreener vs Alternatives

NeedUse
Quick free token lookupDexScreener
Cross-chain comparisonDexScreener
Historical OHLCV for backtestingBirdeye or SolanaTracker
Wallet/trader analysisHelius or SolanaTracker
Real-time streamingYellowstone gRPC or Birdeye WebSocket
Token security checkBirdeye or SolanaTracker risk score

Files

References
  • references/endpoints.md — Complete endpoint listing with response schemas
  • references/error_handling.md — Rate limits, error codes, best practices
Scripts
  • scripts/token_lookup.py — Look up any token across all chains with liquidity analysis
  • scripts/boost_monitor.py — Monitor newly boosted/promoted tokens

© agiprolabs, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (scripts, references) in skills/dexscreener-api of agiprolabs/claude-trading-skills.

  • SKILL.md
  • references/endpoints.md
  • references/error_handling.md
  • scripts/boost_monitor.py
  • scripts/token_lookup.py

Open the folder on GitHubat commit 981e1d7

Compare with similar skills

Dexscreener API next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Dexscreener API compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dexscreener API this skillagiprolabs/claude-trading-skills410—~1.8kAutomated safety check: PassMIT
Binance Datatoollostleaf/binance-datatool148—~2.5kAutomated safety check: NotesBSD-3-Clause
Polymarket2025Emma/vibe-coding-cn23k1 repos~1.6kAutomated safety check: PassMIT
Okx Cex Authokx/agent-skills1872 repos~4.5kAutomated safety check: PassMIT
Trust Wallet APItrustwallet/tw-agent-skills106—~424Automated safety check: PassMIT
Bankr SignalsaAAaqwq/AGI-Super-Team1052 repos~3.3kAutomated safety check: PassMIT

Similar skills

  • Binance Datatool

    lostleaf/binance-datatool

    Manage Binance historical market data from data.binance.vision using the binance-datatool CLI.

    148 GitHub stars~2.5k tokensUpdated 5 mo ago
    Backend & APIsAuto-check: notes
  • Polymarket

    2025Emma/vibe-coding-cn

    Comprehensive Polymarket skill covering prediction markets, API, trading, market data, and real-time WebSocket data streaming.

    23k GitHub starsUsed in 1 repo~1.6k tokens
    Backend & APIsAuto-check passed
  • Okx Cex Auth

    okx/agent-skills

    A skill your agent uses when the user wants to 'login/log in/sign in', 'authenticate', 'authorize', 'connect OKX account', 'set up credentials', 'first time setup', 'configure okx', '登录', '授权'…

    187 GitHub starsUsed in 2 repos~4.5k tokens
    Backend & APIsAuto-check passed
  • Trust Wallet API

    trustwallet/tw-agent-skills

    Trust Wallet API for crypto data — token search, prices, trending tokens, swap quotes, market data, security checks, address validation, asset info, and coin status across 100+ blockchains.

    106 GitHub stars~424 tokensUpdated 4 mo ago
    Backend & APIsAuto-check passed
  • Bankr Signals

    aAAaqwq/AGI-Super-Team

    Transaction-verified trading signals on Base blockchain. An agent skill from aAAaqwq/AGI-Super-Team.

    105 GitHub starsUsed in 2 repos~3.3k tokens
    Backend & APIsAuto-check passed
  • Aave Integration

    ccashwell/evm-cortex

    A skill your agent uses when integrating with Aave V3 for lending, borrowing, flash loans, or building on top of Aave markets.

    131 GitHub stars~1.3k tokensUpdated 10 days ago
    Backend & APIsAuto-check passed

More from agiprolabs/claude-trading-skills

All 68 skills in this repo
  • Backtrader

    agiprolabs/claude-trading-skills

    Event-driven backtesting with bar-by-bar execution, complex order types, multiple analyzers, and custom indicators

    410 GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Birdeye API

    agiprolabs/claude-trading-skills

    Solana token market data via Birdeye — prices, OHLCV, trades, token metadata, security checks, and trader activity

    410 GitHub stars~1.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Coingecko API

    agiprolabs/claude-trading-skills

    Broad crypto market data from CoinGecko covering 13,000+ tokens.

    410 GitHub stars~1.6k tokensUpdated 1 mo ago
    Auto-check passed
  • Cointegration Analysis

    agiprolabs/claude-trading-skills

    Cointegration testing for pairs trading using Engle-Granger, Johansen, and rolling stability analysis

    410 GitHub stars~2.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Copy Trading

    agiprolabs/claude-trading-skills

    Wallet evaluation, monitoring, and copy-trade strategy design for Solana DEX trading

    410 GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Correlation Analysis

    agiprolabs/claude-trading-skills

    Cross-asset correlation analysis including rolling correlation, hierarchical clustering, tail dependence, and regime-dependent correlation

    410 GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check passed

Questions about Dexscreener API

What does Dexscreener API do?

Free, no-auth multi-chain DEX pair data — prices, volume, liquidity, transactions, and token profiles. Dexscreener API is an agent skill from agiprolabs/claude-trading-skills.

When should I use Dexscreener API?

Dexscreener API fits situations like: backend & APIs work in your project.

How do I install Dexscreener API in Claude Code?

Run `npx skills add agiprolabs/claude-trading-skills --skill dexscreener-api -a claude-code`. Or copy the skill folder (skills/dexscreener-api in agiprolabs/claude-trading-skills) into .claude/skills/dexscreener-api in your project. Claude Code loads it when a task matches its description.

How do I install Dexscreener API in Codex?

Run `npx skills add agiprolabs/claude-trading-skills --skill dexscreener-api -a codex`. Or copy the skill folder (skills/dexscreener-api in agiprolabs/claude-trading-skills) into .agents/skills/dexscreener-api in your project. Codex loads it when a task matches its description.

Can I use Dexscreener API in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add agiprolabs/claude-trading-skills --skill dexscreener-api -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dexscreener-api, .gemini/skills/dexscreener-api, .github/skills/dexscreener-api and .opencode/skills/dexscreener-api in your project.

What does Dexscreener API need to run?

Going by SKILL.md and its folder, Dexscreener API needs Python for the scripts in its folder and the command-line tools its instructions call (curl). Our summary lists: Python 3.

Does Dexscreener API access the network?

SKILL.md names 4 domains. In commands or code: api.dexscreener.com, dexscreener.com, cdn.dexscreener.com and x.com; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Dexscreener API safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Dexscreener API use?

Dexscreener API is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Dexscreener API use?

About 1.8k tokens (SKILL.md is roughly 7.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.2k tokens, read only when the agent opens those files.

What are the alternatives to Dexscreener API?

Skills that share tags, products or a category with Dexscreener API: Binance Datatool (lostleaf/binance-datatool, 148 stars), Polymarket (2025Emma/vibe-coding-cn, 23k stars), Okx Cex Auth (okx/agent-skills, 187 stars) and Trust Wallet API (trustwallet/tw-agent-skills, 106 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dexscreener API?

agiprolabs (a GitHub user) maintains it in agiprolabs/claude-trading-skills, which has 410 GitHub stars. The repository holds 68 skills in this directory. The repository was last updated on September 3, 2026.

Source: agiprolabs/claude-trading-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.