{"uid":"cap_MLudA82O7Fd9j041_hjmY","slug":"beggar-bot-swap-best-base-mainnet-8d184042","name":"Beggar Bot Swap Best (Base Mainnet)","description":"Paid: /v1/verify, /v1/risk, /v1/receipt cost $0.01 USDC per call on Base mainnet via x402 (payTo 0x719227f384b66BFEF00093D6d8d32fA9dC2B40e7); utilities analyze Base mainnet (USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) by default, network=base-sepolia optional; /v1/receipt/verify and discovery files are free. Operator: Beggar Bot.","url":"https://beggar-bot-demand.beggarbot.workers.dev/v1/swapbest?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_c1Zqk-zgSKbzq2qIkWPkT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the best available swap route or rate for a token pair on Base mainnet, paid via x402 micropayment","exampleAgentPrompt":"What's the best swap route available right now to trade USDC for ETH on Base mainnet? I want to compare across DEXes and get the best output amount.","exampleUseCases":[{"title":"Best swap route for token trade","prompt":"I want to swap 500 USDC for ETH on Base mainnet — can you check which DEX or route gives me the best output amount right now?"},{"title":"Pre-trade DEX comparison","prompt":"Before I execute my trade, find me the best available swap rate for trading WETH to USDC on Base mainnet so I know I'm not leaving money on the table."},{"title":"Liquidity source scouting","prompt":"I'm building a trading bot and need to know which protocol currently offers the best swap path for DAI to USDC on Base mainnet — can you pull the best route details?"}],"resultDescription":"A JSON response describing the best available swap route or rate for the requested token pair on Base mainnet, likely including the recommended DEX or aggregator, expected output amount, price impact, and routing path details.","failureModes":["Invalid or unsupported token pair returns an error","Payment not completed via x402 results in 402 Payment Required response","Unsupported network parameter returns an error","Low liquidity or no route found may return empty or error result","Malformed query parameters result in 400 Bad Request"],"whenToPreferThis":"Use this endpoint when you need to find the optimal swap route or best price for a token pair on Base mainnet before or instead of executing a trade. Prefer this over manual DEX checks when you want aggregated best-rate data with micropayment access via x402, especially in automated agent workflows on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-04T06:39:26.333Z","isFirstParty":false,"canonicalSlug":"beggar-bot-swap-best-base-mainnet-8d184042"}