{"uid":"cap_5Ue5yqe_RGN_5L2aRWiC4","slug":"3route-multichain-swap-quote-api-c8dc437c","name":"3Route Multichain Swap Quote API","description":"Best-priced crypto token swaps for agents, traders and apps. Pay-per-call quote & swap API via x402/MPP. No API key or subscription.","url":"https://3route.agents.bakingbad.dev/v1/pro/%7BchainId%7D/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"},"pathParams":{"type":"object","required":["chainId"],"properties":{"chainId":{"enum":["4663"],"type":"string","example":"4663","pattern":"^[0-9]+$","description":"Chain ID for the operation."}},"additionalProperties":false},"queryParams":{"type":"object","required":["src","dst","amount"],"properties":{"dst":{"type":"string","example":"0x5fc5360d0400a0fd4f2af552add042d716f1d168","pattern":"^0x[0-9a-fA-F]{40}$","description":"Address of the token being bought; take one from the token-list operation for the selected chain, or use the zero address, or the case-insensitive sentinel 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee, for the chain's native asset."},"fee":{"type":"number","default":0,"maximum":3,"minimum":0},"src":{"type":"string","example":"0x0000000000000000000000000000000000000000","pattern":"^0x[0-9a-fA-F]{40}$","description":"Address of the token being sold; use the zero address, or the case-insensitive sentinel 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee, for the chain's native asset"},"amount":{"type":"string","example":"1000000000000000000","pattern":"^[0-9]+$","description":"Positive amount in smallest units, as an integer string."},"gasPrice":{"type":"string","example":"1000000000","pattern":"^[0-9]+$"},"protocols":{"type":"string"},"timestamp":{"type":"integer","minimum":0},"blockNumber":{"type":"integer","minimum":0},"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_FCA6XF6fiTYrTOUSeUTiw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a swap quote (output token amount and gas estimate) for a given token pair and input amount on a specific EVM chain","exampleAgentPrompt":"Get me a swap quote on 3Route for chain 4663 — I want to sell 1 ETH (address 0x0000000000000000000000000000000000000000) and buy the token at 0x5fc5360d0400a0fd4f2af552add042d716f1d168, using an amount of 1000000000000000000 wei. How much will I receive and what's the estimated gas?","exampleUseCases":[{"title":"Pre-trade DeFi price check","prompt":"Before I execute a swap, can you use 3Route to quote how much of the token at 0x5fc5360d0400a0fd4f2af552add042d716f1d168 I'd get if I sell 1 ETH (1000000000000000000 wei) on chain 4663?"},{"title":"Gas cost estimation for swap","prompt":"I'm planning a token swap on chain 4663 selling 500000000000000000 wei of the native asset for token 0x5fc5360d0400a0fd4f2af552add042d716f1d168 — can you get me a 3Route quote and tell me the estimated gas so I can decide if it's worth it?"},{"title":"Best route for exact output swap","prompt":"I need exactly 950000 units of token 0x5fc5360d0400a0fd4f2af552add042d716f1d168 on chain 4663 — use 3Route to quote how much native ETH I'd need to sell, with isExactOutput set to true, and include the protocol route used."}],"resultDescription":"Returns a JSON object with the destination token amount (dstAmount), the source token amount (srcAmount), and an estimated gas cost for executing the swap. May optionally include protocol routing details, token info, and block number depending on query flags.","failureModes":["Missing required parameters (src, dst, amount) returns a 400 error","Invalid token address format (not matching 0x hex pattern) returns a validation error","Unsupported chainId (anything other than 4663) returns an error","Amount of zero or non-integer string causes a validation failure","No liquidity route found for the given token pair returns an error or empty route","Payment not provided or insufficient USDC triggers a 402 Payment Required response"],"whenToPreferThis":"Use 3Route when you need an agent-native, pay-per-call swap quote API with multichain EVM support and x402 micropayment compatibility. Prefer it when building autonomous agents that need to price DeFi token swaps programmatically without a subscription, or when you need routing across multiple DEX protocols in a single API call. It is especially suited for on-chain agents that need to verify swap output before submitting a transaction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:43:10.913Z","isFirstParty":false}