x402 API
DEX pairs by chain/token or search query. Pay with USDC via HTTP 402. Syra machine money for agents.
/dexscreener/pairs
x402
Price: $0.001 USD per successful paid call (catalog hint; runtime 402 is authoritative)
Base URL: https://api.syraa.fun
Onchain DEX pair data from DexScreener across 80+ chains. Use when an agent needs live price, liquidity, volume, and txn counts for a token before trading or scouting. Inputs: chainId + tokenAddress OR q (search). Returns normalized pairs[] with priceUsd, liquidityUsd, volume24h, txns24h, fdv, pairAddress, dexId.
This is a pay-per-call route: unpaid requests return HTTP 402 until you settle USDC and retry with PAYMENT-SIGNATURE or X-PAYMENT. See x402 wire format.
import { createSyraPaidClient } from "@syra-ai/sdk";
const client = createSyraPaidClient({
// funds USDC on Solana/Base; auto-pays HTTP 402
});
const res = await client.fetch("https://api.syraa.fun/dexscreener/pairs", {
method: "GET",
});
console.log(await res.json());