{"uid":"cap_kI6Ae3_Vg7RJ_g4IQM-yU","slug":"api-hyperd-ai-0bbeabd1","name":"HyperD DEX Swap Quote Aggregator","description":"Best DEX swap route across multiple aggregators (Paraswap, 0x). Returns the highest output amount + comparable quotes from each source for transparency.","url":"https://api.hyperd.ai/api/dex/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"},"queryParams":{"type":"object","required":["from","to","amount"],"properties":{"to":{"type":"string","description":"Destination token symbol or contract address"},"from":{"type":"string","description":"Source token symbol or contract address"},"chain":{"enum":["base","ethereum","polygon","arbitrum","optimism","avalanche","bnb"],"type":"string"},"taker":{"type":"string","description":"Optional payer address for 0x quote (improves accuracy)"},"amount":{"type":"string","description":"Amount of source token (decimal in source's units)"},"slippage":{"type":"number","description":"Max slippage in basis points (default 50)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"to":"ETH","from":"USDC","chain":"base","amount":"500","slippage":50}}},"response":{"to":{"symbol":"ETH","address":"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","decimals":18},"best":{"source":"paraswap","outAmount":"289078057523350705","routeSummary":"PancakeswapV3 + aerodromeslipstreamfactory3","priceImpactBps":null,"estimatedGasUsd":0.002996,"outAmountFormatted":"0.289078057523350705"},"from":{"symbol":"USDC","address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","decimals":6},"query":{"to":"ETH","from":"USDC","chain":"base","amount":"500","slippageBps":50},"quotes":[{"source":"paraswap","outAmount":"289078057523350705","routeSummary":"PancakeswapV3 + aerodromeslipstreamfactory3","priceImpactBps":null,"estimatedGasUsd":0.002996,"outAmountFormatted":"0.289078057523350705"}],"sources":["paraswap"],"amountIn":"500","timestamp":"2026-06-18T04:55:49.302Z","amountInWei":"500000000"}},"exampleRequest":{"to":"ETH","from":"USDC","chain":"base","amount":"500","slippage":50},"tags":["x402"],"displayCostAmount":"0.02","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.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_BG9LlXat63lGpN8w2fdW_","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":"Finds the best DEX swap route across Paraswap and 0x aggregators, returning the highest output amount plus comparable quotes from each source.","exampleAgentPrompt":"What's the best swap route to exchange 500 USDC to ETH on Base right now — show me quotes from both Paraswap and 0x so I can pick the best one?","exampleUseCases":null,"resultDescription":"Returns the best output amount for the swap along with the winning aggregator route, plus side-by-side comparable quotes from Paraswap and 0x for full transparency on pricing.","failureModes":["Unsupported token symbol returns an error — use contract address instead","Unsupported chain value returns validation error — must be one of: base, ethereum, polygon, arbitrum, optimism, avalanche, bnb","Amount too small or zero may return no valid routes","Network congestion or aggregator downtime may cause partial results or timeout","Invalid contract address format returns a parsing error"],"whenToPreferThis":"Use this endpoint when you need to find the optimal DEX swap price before executing a trade, especially when you want transparent comparison across Paraswap and 0x without having to call each aggregator separately. Ideal for pre-trade analysis, best-execution workflows, or when building DeFi agents that need to route swaps intelligently across Base, Ethereum, Polygon, Arbitrum, Optimism, Avalanche, or BNB chain.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T18:33:39.505Z","isFirstParty":false,"canonicalSlug":"api-hyperd-ai-0bbeabd1"}