DexScreener API - Complete Developer Guide
API Provider: DexScreener
Website: dexscreener.com
Overview
DexScreener provides real-time data for decentralized exchange (DEX) trading pairs. It's the go-to tool for DeFi traders looking for live price charts, pair analytics, and trending tokens.
Pricing
| Plan | Price | Features |
|---|---|---|
| Free | $0 | Basic data |
| Pro | $39/mo | Full API, alerts |
| Enterprise | Custom | Dedicated support |
Key Features
- Real-Time Pairs: Live DEX pair data across all major DEXs
- Price Charts: Candlestick and line charts
- Pair Analytics: Liquidity, volume, market cap
- Token Searches: Find pairs by token address
- Order Book: Current DEX order book depth
API Endpoints
GET https://api.dexscreener.com/latest/dex/pairs/{chain}/{pairAddress}
GET https://api.dexscreener.com/latest/dex/tokens/{tokenAddress}
GET https://api.dexscreener.com/latest/dex/search?q={query}
Response Example
{
"pair": {
"dexId": "uniswap",
"pairAddress": "0x...",
"baseToken": {
"symbol": "ETH",
"name": "Ethereum"
},
"quoteToken": {
"symbol": "USDC",
"name": "USD Coin"
},
"priceUsd": "3200.50",
"liquidity": {
"usd": 15000000
},
"volume": {
"h24": 5000000
}
}
}
Best Use Cases
- DeFi trading dashboards
- Token sniper tools
- Price alert applications
- Trading bot strategies
- Portfolio trackers