{"uid":"cap_pv28Ha32wzAUm3v-1dZjF","slug":"call402-dex-quote-f8893ea7","name":"call402 DEX Quote","description":"USDC pay-per-call APIs for AI agents via the x402 protocol (v2, exact, Base mainnet). Send a request, receive HTTP 402 with payment requirements, pay with @x402/fetch or any x402 client, retry with the PAYMENT-SIGNATURE header.","url":"https://call402.com/dex-quote?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chain":{"enum":["base","bsc","ethereum"],"type":"string"},"token":{"type":"string","description":"20-byte EVM token address"}}},"responseSchema":{"type":"json","schema":{"type":"object","required":["token","chain","price_usd","pools","total_depth_usd","risk_flags","ts","ref_pool"],"properties":{"ts":{"type":"string"},"chain":{"type":"string"},"pools":{"type":"array"},"token":{"type":"string"},"ref_pool":{"type":["object","null"]},"price_usd":{"type":"number"},"risk_flags":{"type":"array"},"total_depth_usd":{"type":"number"}}},"example":{"ts":"2026-10-23T00:00:00.000Z","chain":"base","pools":[],"token":"0x...","ref_pool":{"dex":"Uniswap V3","pool":"0x...","quote":"WETH","price_usd":4000},"price_usd":0.01,"risk_flags":[],"total_depth_usd":1000}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NRoFXgP_Yoy4dIeyKhEod","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current USD price of an EVM token from on-chain DEX pools, including liquidity depth and risk flags, for a given chain.","exampleAgentPrompt":"What's the current on-chain DEX price of the token at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base — include liquidity depth and any risk flags?","exampleUseCases":[{"title":"Token price check before swap","prompt":"Before I swap, what is the current on-chain DEX price of 0x4200000000000000000000000000000000000006 on Base, and how deep is the liquidity?"},{"title":"Risk screening for new DeFi token","prompt":"I'm evaluating this new token at 0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA on Base — can you pull its DEX price and tell me if there are any risk flags I should know about?"},{"title":"Cross-chain price comparison","prompt":"Can you get me the DEX price of token 0x2170Ed0880ac9A755fd29B2688956BD959F933F8 on BSC so I can compare it against what I'm seeing on Ethereum?"}],"resultDescription":"A JSON object containing the token address, chain, current USD price (price_usd), an array of DEX pools contributing to the quote, total on-chain liquidity depth in USD (total_depth_usd), a reference pool object (dex name, pool address, quote asset, price), any identified risk flags, and a timestamp.","failureModes":["Unknown or untracked token address returns empty pools array and null ref_pool","Invalid 20-byte address format causes request rejection","Unsupported chain value returns validation error","Insufficient on-chain liquidity may yield unreliable price_usd","HTTP 402 returned on first request if payment not yet attached; must retry with PAYMENT-SIGNATURE header","Payment failure or expired signature results in 402 rejection"],"whenToPreferThis":"Use this endpoint when you need real-time, on-chain DEX prices for EVM tokens on Base, BSC, or Ethereum — especially when CEX prices are unavailable or insufficient, or when liquidity depth and risk flags matter. Prefer this over off-chain price feeds when you need DEX-native data including pool references and depth. Best for DeFi agents, trading bots, or risk-screening workflows that pay per call via USDC micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T12:40:38.571Z","isFirstParty":false,"canonicalSlug":"call402-dex-quote-f8893ea7"}