{"uid":"cap_0TEkTWDwLh0ymxo0kuuGn","slug":"allthebot-base-swap-quote-2cb861b0","name":"AllTheBot Base Swap Quote","description":"Swap quote and best DEX price on Base: live quotes from Uniswap v3 (all fee tiers) and Aerodrome (stable/volatile) for any ERC-20 pair, ranked best first, with a low-liquidity flag. ETH, USDC, cbBTC, DAI or any token address. Read-only, no swap executed.","url":"https://api.zkrobotics.fr/x402/base/swap-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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["token_in","token_out","amount_in"],"properties":{"token_in":{"type":"string","maxLength":42},"amount_in":{"type":"string","pattern":"^[0-9]{1,30}(\\.[0-9]{1,30})?$"},"token_out":{"type":"string","maxLength":42}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"best":{"venue":"Uniswap v3","amount_out":"2528.473174","pool_fee_pct":0.05,"low_liquidity":false,"amount_out_raw":"2528473174"},"quotes":[{"venue":"Uniswap v3","amount_out":"2528.473174","pool_fee_pct":0.05,"low_liquidity":false,"amount_out_raw":"2528473174"},{"pool":"volatile","venue":"Aerodrome","amount_out":"2526.948041","low_liquidity":false,"amount_out_raw":"2526948041"}],"network":"base","token_in":"0x4200000000000000000000000000000000000006","amount_in":"1","token_out":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0025","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.0025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_68nBIG2Fa3_6gQpwG2hra","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns live DEX swap quotes for any ERC-20 token pair on Base, ranked best-first across Uniswap v3 and Aerodrome, with a low-liquidity flag — read-only, no swap executed.","exampleAgentPrompt":"What's the best price I can get swapping 1 ETH for USDC on Base right now — check Uniswap v3 and Aerodrome and tell me which venue wins and if liquidity looks thin?","exampleUseCases":[{"title":"Pre-trade DEX price check","prompt":"Before I swap 500 USDC for ETH on Base, check all the DEX venues — Uniswap v3 and Aerodrome — and tell me which gives the best rate and whether liquidity is low."},{"title":"Arbitrage opportunity scan","prompt":"Compare the swap rate for 1 cbBTC to USDC on Base across Uniswap v3 (all fee tiers) and Aerodrome right now and show me the ranked quotes so I can spot the best deal."},{"title":"Low-liquidity token screening","prompt":"I want to swap 10,000 DAI for this token at address 0x940181a94A35A4569E4529A3CDfB74e38FD98631 on Base — get me a live quote and flag if liquidity is dangerously low."}],"resultDescription":"A JSON object containing the best quote (venue name, human-readable and raw amount_out, pool fee percentage, low_liquidity boolean) and a ranked list of all quotes from Uniswap v3 fee tiers and Aerodrome stable/volatile pools, plus the token addresses and network identifier.","failureModes":["Missing or invalid token_in/token_out address returns a 400 error","amount_in not matching the numeric pattern (e.g. letters) returns a validation error","No liquidity found for the token pair returns an empty quotes array or low_liquidity: true","Token address for an unsupported or non-existent contract returns an error or zero quotes","Payment not included or insufficient triggers a 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when you need a real-time, multi-venue DEX price comparison on Base before deciding whether or where to execute a swap — especially when you want Uniswap v3 fee-tier granularity alongside Aerodrome stable/volatile pool pricing in a single ranked response, without triggering any on-chain transaction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T18:38:38.670Z","isFirstParty":false,"canonicalSlug":"allthebot-base-swap-quote-2cb861b0"}