Skip to main content
X Layer logo
REST + SSE STREAMING · FREE API KEY · NO CREDIT CARD

X Layer DEX API: token prices, pools, OHLCV and swaps

Token prices, liquidity pools, OHLCV and swaps for every X Layer DEX we index, updated when a swap moves the pool, delivered over REST or pushed to you over SSE. 100K requests a month on the free plan, no credit card.

X Layer DEXes indexed
4
active liquidity pools
180+
24h DEX volume
$4.35M
24h swap transactions
31.66K

Data as of , source: api.dexpaprika.com

X Layer coverage

What you get the moment you call the API: every endpoint except pool transactions and token OHLCV, no quota negotiation.

DEXes indexed4, incl. Uniswap V3, QuickSwap V3, PotatoSwap V2
Liquidity pools180+ active, reserves updated per block
24h DEX volume$4.35M
24h swap transactions31.66K
Update cadencewhen a swap moves the pool
HistoryOHLCV candles from 1-minute to 1-day; interval and history depth depend on your plan
DeliveryREST JSON + SSE push streams

Data as of , source: api.dexpaprika.com

Where X Layer DEX volume trades

Uniswap V3 carried 93.1% of the 24h volume across the 4 X Layer DEXes with trades today.

DEX24h volumeSharePools
Uniswap V3$4.14M93.1%128
PotatoSwap V2$290.36K6.5%48
PotatoSwap V3$18.99K0.4%4
QuickSwap V3$65.73<0.1%7

Data as of , source: api.dexpaprika.com

X Layer API endpoints

Every endpoint below works on a free key, except pool transactions and token OHLCV: pool transactions start at Dev and token OHLCV at Pro. Full reference in the docs.

EndpointReturnsDocs
GET /networks/x_layer/dexesAll indexed DEXes with 24h volume and pool countsDocs
GET /networks/x_layer/pools/searchPools: filter & sort by volume, liquidity, txns, ageDocs
GET /networks/x_layer/tokens/{address}Token metadata + live price + 24h statsDocs
GET /networks/x_layer/pools/search?token_address={address}Every pool a token trades inDocs
GET /networks/x_layer/pools/{address}/ohlcvCandles from 1-minute to 1-day; interval and history depth depend on your planDocs
GET /networks/x_layer/tokens/{address}/ohlcvToken candles aggregated across all its pools (needs a Pro plan or above)Docs
GET /networks/x_layer/pools/{address}/transactionsSwap-level transaction history (needs a Dev plan or above)Docs
GET /networks/x_layer/multi/prices?tokens=a,bBatched USD prices, up to 10 tokens per callDocs

Your first
X Layer call

The five busiest X Layer pools by 24h volume, then the live price of WOKB. Every row carries both token symbols, so there is no second lookup before you can read it.

Paste and run. A free API key lifts you to 100K requests a month.

# top X Layer pools by 24h volume
curl "https://api.dexpaprika.com/networks/x_layer/pools/search?order_by=volume_usd_24h&sort=desc&limit=5"

# live price for WOKB
curl "https://api.dexpaprika.com/networks/x_layer/tokens/0xe538905cf8410324e03a5a23c1c177a474d59b2b"

Streaming: stop polling X Layer

Open one SSE connection and we push token prices and per-block pool reserve deltas as X Layer state changes, a push-based reserves feed you will not find at CoinGecko or DexScreener. Poll loops re-fetch unchanged state and still miss mid-block moves. With push, the only gap between on-chain state and your app is the network round-trip plus our block indexing.

# push: live WOKB price ticks on X Layer. One connection, no polling
curl -N "https://streaming.dexpaprika.com/sse/prices?chain=x_layer&address=0xe538905cf8410324e03a5a23c1c177a474d59b2b&method=token_price"

# push: per-block reserve deltas for WOKB pools (needs an API key)
curl -N -H "Authorization: $DEXPAPRIKA_API_KEY" "https://streaming.dexpaprika.com/sse/reserves?chain=x_layer&address=0xe538905cf8410324e03a5a23c1c177a474d59b2b&method=token_reserves"

# push: live swaps touching WOKB, as they land on X Layer (needs a Dev plan or above)
curl -N -H "Authorization: $DEXPAPRIKA_API_KEY" "https://streaming.dexpaprika.com/sse/transactions?chain=x_layer&address=0xe538905cf8410324e03a5a23c1c177a474d59b2b&method=token"

Free tier: up to 10 concurrent streams. Watch it live on the X Layer streaming demo or read the streaming docs.

What it costs

Every endpoint on every tier except pool transactions and token OHLCV: pool transactions start at Dev and token OHLCV at Pro. Full details on the pricing page.

Free

$0 / month
  • 100K requests / month with a free API key
  • No credit card, ready in under a minute
  • Every endpoint but pool transactions and token OHLCV, every chain; real-time on paid plans
Get your free API key

Pro

$99 / month
  • 5M requests included
  • Streaming at scale + priority support
  • Transparent overages, no gotchas
Start Pro

Every chain, same API

Start on X Layer. Scale across 36 chains without changing a line of integration code.

Questions about the X Layer DEX API

Which X Layer DEXes does the API cover?

4 X Layer DEXes including Uniswap V3, QuickSwap V3, PotatoSwap V2, with 180+ active pools across them, as of 2026-10-11 05:39 UTC.

How fresh is the X Layer data?

Data updates every X Layer block. Paid plans get it in real time; on the free plan a response can run a short way behind the chain. SSE streams push changes as they happen, so there is no polling interval between your app and X Layer chain state.

Do I need an API key for X Layer data?

For anything past a first test, yes. A free API key takes under a minute, needs no credit card, and covers 100K requests per month on every chain, with every endpoint except pool transactions and token OHLCV: pool transactions start at Dev and token OHLCV at Pro. Dev ($30/mo) raises that to 500K, and Pro ($99/mo) lifts the ceiling to 5M requests.

How do I get a X Layer token price with the API?

GET /networks/x_layer/tokens/{address} returns the live USD price with 24h volume and liquidity in one call. For portfolios, /networks/x_layer/multi/prices returns batched prices for up to 10 tokens per request.

Does streaming work for X Layer?

Yes. SSE streams at streaming.dexpaprika.com push X Layer token prices (/sse/prices) and per-block pool reserve deltas (/sse/reserves, needs an API key). That is a push-based reserves feed you will not find at CoinGecko or DexScreener.

What does the X Layer DEX API cost?

The free tier includes 100K requests per month with a free API key, no credit card, on every chain, with every endpoint except pool transactions and token OHLCV: pool transactions start at Dev and token OHLCV at Pro. Dev is $30/mo for 500K requests, and Pro is $99/mo for 5M requests with priority support.

Build on X Layer data in the next 60 seconds

Start on X Layer. Scale across 36 chains. The first request is one curl away: free key, no card, no sales call.