DexPaprika x402 APItest-mode demo
Token, network and pool data for DEXes across chains — paid per call by AI agents.
Protocol: x402 Asset: USDC Network: Base Sepolia Price: $0.001 / call
/openapi.json — machine-readable OpenAPI 3.1 spec →Available endpoints
| Method | Path | Price |
|---|---|---|
| GET | /stats | free |
| GET | /networks | $1 |
| GET | /networks/:network/tokens/:address | $0.001 |
Quick start
1 · Command line (purl)
purl signs the payment for you. Inspect first, then pay:
PURL_PASSWORD="your-pass" purl inspect "https://x402.dexpaprika.com/networks/bsc/tokens/0x55d398326f99059ff775485246999027b3197955" PURL_PASSWORD="your-pass" purl "https://x402.dexpaprika.com/networks/bsc/tokens/0x55d398326f99059ff775485246999027b3197955"
Install: see purl.dev.
2 · Claude-powered
With purl available as a tool, ask Claude in plain language:
What is the price of USDT? Use the DexPaprika x402 endpoint at x402.dexpaprika.com via purl and show me the price.
Claude calls purl, which pays the $0.001 challenge and returns the data.
3 · Circle CLI
circle services pay "https://x402.dexpaprika.com/networks/bsc/tokens/0x55d398326f99059ff775485246999027b3197955" --address 0xYOUR_WALLET
Docs: Circle Agent Stack.
4 · TypeScript (x402-fetch)
import { wrapFetchWithPayment } from 'x402-fetch';
import { createWalletClient, http } from 'viem';
import { privateKeyToAccount } from 'viem/accounts';
import { baseSepolia } from 'viem/chains';
const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const wallet = createWalletClient({ account, chain: baseSepolia, transport: http() });
const fetchWithPay = wrapFetchWithPayment(fetch, wallet);
const res = await fetchWithPay('https://x402.dexpaprika.com/networks/bsc/tokens/0x55d398326f99059ff775485246999027b3197955');
console.log(await res.json());