{"uid":"cap_zhVr6v731CFrphZ_x0xNV","slug":"agenticfi-swap-quote-bd54b981","name":"AgenticFi Swap Quote","description":"DeFi APIs for AI agents. 36 pay-per-call endpoints for token data, pricing, wallet analytics, swap routing, and on-chain workflows. Powered by x402 on Base.","url":"https://defi-api.agenticfi.wtf/api/swap/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":["fromChain","toChain","fromToken","toToken","fromAmount","fromAddress"],"properties":{"toChain":{"type":"string","title":"toChain (required)","description":"Required. Destination chain ID Examples: 8453, 1, 42161"},"toToken":{"type":"string","title":"toToken (required)","description":"Required. Destination token address Examples: 0x833589fCD6EDB6E08f4c7C32D4f71b54bdA02913"},"fromChain":{"type":"string","title":"fromChain (required)","description":"Required. Source chain ID Examples: 8453, 1, 42161"},"fromToken":{"type":"string","title":"fromToken (required)","description":"Required. Source token address Examples: 0x4200000000000000000000000000000000000006"},"fromAmount":{"type":"string","title":"fromAmount (required)","description":"Required. Amount in smallest unit Examples: 1000000000000000"},"fromAddress":{"type":"string","title":"fromAddress (required)","description":"Required. Sender wallet address Examples: 0x742d35Cc6634C0532925a3b844Bc454e4438f44e, 0x1111111111111111111111111111111111111111"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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_LDyi2JcoZKkhQjQyxEk61","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":"Get a cross-chain or same-chain token swap quote including expected output amount and routing for a given token pair and amount","exampleAgentPrompt":"What's the best swap quote to trade 0.001 WETH (0x4200000000000000000000000000000000000006) on Base (chain 8453) for USDC (0x833589fCD6EDB6E08f4c7C32D4f71b54bdA02913) also on Base, sending from my wallet 0x742d35Cc6634C0532925a3b844Bc454e4438f44e?","exampleUseCases":null,"resultDescription":"Returns a swap quote object containing the expected output token amount, routing path, estimated fees, price impact, and any slippage details for the requested token pair and amount across the specified chains","failureModes":["Invalid token address returns 400 bad request","Unsupported chain ID returns error indicating chain not supported","fromAmount of zero or negative value causes validation failure","Liquidity unavailable for the requested pair returns no route found","Payment not included or insufficient triggers x402 payment required response","Rate limiting if too many calls are made without payment"],"whenToPreferThis":"Use this endpoint when an AI agent needs to compute how much of a destination token a user will receive before committing to a swap, especially for cross-chain routes or Base ecosystem trades. Prefer this over on-chain simulation when you need fast, pre-trade pricing and routing without gas costs. Best for agents building DeFi workflows that require a quote step before execution.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:47:07.436Z","isFirstParty":false}