{"uid":"cap_BGmgmpNuUF09WuYZ5kR18","slug":"3route-multichain-dex-swap-quote-api-d3a789d8","name":"3Route Multichain DEX Swap Quote API","description":"3Route is an agent-ready multichain swap API from Baking Bad, a provider of tools for agents. Discover tokens for free, then pay per quote or unsigned swap.","url":"https://3route.agents.bakingbad.dev/api/v6.1/%7BchainId%7D/quote?utm_source=zero.xyz","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"},"pathParams":{"type":"object","required":["chainId"],"properties":{"chainId":{"enum":["4663","42793","128064"],"type":"string","example":"4663","pattern":"^[0-9]+$"}},"additionalProperties":false},"queryParams":{"type":"object","required":["src","dst","amount"],"properties":{"dst":{"type":"string","example":"0x2222222222222222222222222222222222222222","pattern":"^0x[0-9a-fA-F]{40}$"},"fee":{"type":"number","default":0,"maximum":3,"minimum":0},"src":{"type":"string","example":"0x0000000000000000000000000000000000000000","pattern":"^0x[0-9a-fA-F]{40}$"},"amount":{"type":"string","example":"1000000000000000000","pattern":"^[0-9]+$"},"gasPrice":{"type":"string","example":"1000000000","pattern":"^[0-9]+$"},"protocols":{"type":"string"},"isExactOutput":{"type":"boolean","default":false},"includeProtocols":{"type":"boolean","default":false},"excludedProtocols":{"type":"string"},"includeTokensInfo":{"type":"boolean","default":false},"includeBlockNumber":{"type":"boolean","default":false}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"gas":210000,"dstAmount":"950000","srcAmount":"1000000000000000000"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_73UPje8NRBWqtkJd8AEsj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns an optimized multi-DEX swap quote for any token pair on a given EVM chain, including expected output amount, gas estimate, and optional route breakdown.","exampleAgentPrompt":"How much USDC will I get if I swap 1 ETH on Ethereum mainnet right now? Show me the DEX route breakdown and include token metadata.","exampleUseCases":[{"title":"Best rate for ETH to stablecoin swap","prompt":"I want to swap 2 ETH for USDC on Arbitrum — what's the best rate I can get and which DEXes does the route go through?"},{"title":"Exact output swap for DeFi strategy","prompt":"I need exactly 500 DAI on Ethereum mainnet — how much WBTC do I need to sell to get that, and what's the gas estimate?"},{"title":"Compare swap options excluding a protocol","prompt":"Get me a quote to swap 10000 USDC for WETH on Ethereum but exclude Uniswap from the routing — I want to see the price impact too."}],"resultDescription":"Returns the expected destination token amount, estimated gas cost, optional source/destination token metadata, optional per-DEX route breakdown showing which protocols handle which portion of the swap, and price impact. When isExactOutput is set, also returns the required source input amount.","failureModes":["400 if amount is zero or missing required src/dst parameters","400 if protocols list contains no recognized DEX names","400 if referral fee is outside the accepted range","402 Payment Required if the x402 payment header is missing or insufficient","Invalid chain ID returns an error or empty routing result","Illiquid token pairs may return no route or very high price impact"],"whenToPreferThis":"Choose this endpoint when you need a gas-aware, multi-DEX aggregated swap quote on any supported EVM chain via a pay-per-call API with no subscription. Ideal for agents that need real-time pricing with optional route transparency, support for exact-output swaps, and fine-grained control over which DEX protocols are included or excluded.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-07T00:30:02.774Z","isFirstParty":false,"canonicalSlug":"3route-multichain-dex-swap-quote-api-d3a789d8"}