{"uid":"cap_b-Mx2LhV9Z0cM7XIjCH9l","slug":"klymax402-dex-quote-api-7a2bfd99","name":"klymax402 DEX Quote API","description":"One MCP endpoint gives your AI agent access to 100 APIs -- crypto, DeFi, web, AI, finance and utilities. No API keys, USDC on Base from $0.003/call.","url":"https://klymax402.com/api/dex-quotes/api/quote","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["tokenIn","tokenOut","amount"],"properties":{"chain":{"enum":["base","ethereum"],"type":"string","description":"Blockchain network: base or ethereum (default: base)"},"amount":{"type":"string","description":"Amount of input token in raw units (wei/smallest unit, e.g. 1000000 for 1 USDC)"},"tokenIn":{"type":"string","description":"Contract address of input token (e.g. 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 for USDC on Base)"},"tokenOut":{"type":"string","description":"Contract address of output token (e.g. 0x4200000000000000000000000000000000000006 for WETH on Base)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"dex":"example","chain":"example","price":"example","route":"example","tokenIn":{},"amountIn":"example","tokenOut":{},"amountOut":"example","priceImpact":"example","estimatedGas":"example","amountInFormatted":"example","amountOutFormatted":"example"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.012","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.012/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.012","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.012","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VM9-VVyfNSm4k1pgAEai9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.012","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a real-time decentralized exchange (DEX) swap quote for a given token pair and amount on Base or Ethereum","exampleAgentPrompt":"What's the current DEX quote to swap 1,000,000 units (1 USDC) of 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 for WETH at 0x4200000000000000000000000000000000000006 on the Base network — show me the price, estimated output, and price impact?","exampleUseCases":[{"title":"Pre-trade price check for DeFi bot","prompt":"Before my agent executes a swap, get me a DEX quote for swapping 5000000 units of USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) to WETH (0x4200000000000000000000000000000000000006) on Base — I need the estimated output, price impact, and gas cost."},{"title":"Token price comparison across chains","prompt":"What's the DEX price for swapping 1000000 units of USDC to WETH on Ethereum versus Base? Give me the amountOut and price impact for both so I can compare."},{"title":"Portfolio rebalancing quote lookup","prompt":"I want to rebalance my portfolio — give me a quote to swap 10000000 raw units of DAI (0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb) into WETH (0x4200000000000000000000000000000000000006) on Base, including the route and estimated gas."}],"resultDescription":"Returns a JSON object containing the DEX name used for routing, the chain, quoted price, swap route, token metadata for both input and output tokens, raw and formatted input/output amounts, price impact percentage, and estimated gas cost for the swap.","failureModes":["Invalid or unsupported token contract address returns an error or empty route","Amount of 0 or non-numeric amount string causes a bad request error","Unsupported chain value (not 'base' or 'ethereum') returns a validation error","Low liquidity pairs may return a high price impact or no route found","Network congestion or RPC issues may cause timeout or stale quote","Payment failure (insufficient USDC balance) results in 402 response blocking the call"],"whenToPreferThis":"Use this endpoint when you need a real-time DEX swap quote on Base or Ethereum without setting up your own API keys or infrastructure. It is ideal for AI agents that need to check token prices, estimate swap outputs, assess price impact, or gather gas cost data before executing a trade, at a low per-call cost of $0.012 USDC with no authentication setup required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:46:15.114Z","isFirstParty":false}