{"uid":"cap_DezA-KL57JIC9EfuhEHRg","slug":"zerion-swap-quotes-653979fb","name":"Zerion Swap Quotes","description":"Interpreted wallet data for more than 40 chains and Solana: portfolios, DeFi positions, PnL, transactions and NFTs. REST for apps, x402 pay-per-call for agents.","url":"https://api.zerion.io/v1/swap/quotes?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":["input[chain_id]","input[fungible_id]","input[amount]","output[fungible_id]","from","to"],"properties":{"to":{"type":"string","description":"Recipient wallet address"},"from":{"type":"string","description":"Sender wallet address"},"currency":{"type":"string","description":"Fiat currency for prices and values (defaults to usd)"},"input[amount]":{"type":"string","description":"Input amount in whole token units, as a decimal string (e.g. \"1.5\")"},"input[chain_id]":{"type":"string","description":"Input chain ID"},"output[chain_id]":{"type":"string","description":"Output chain ID (defaults to the input chain, i.e. a same-chain swap)"},"slippage_percent":{"type":"number","description":"Allowed slippage percent"},"input[fungible_id]":{"type":"string","description":"Input token ID"},"output[fungible_id]":{"type":"string","description":"Output token ID"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Resource ID."},"type":{"type":"string","description":"Resource type."},"attributes":{"type":"object","description":"Resource attributes; see https://developers.zerion.io"}}},"description":"Array of JSON:API resource objects."},"links":{"type":"object","description":"Self and pagination links."}}}}}}},"responseSchema":{"type":"json","example":{"data":[{"id":"<resource id>","type":"<resource type>","attributes":{}}],"links":{"self":"https://api.zerion.io/v1/..."}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DXi45EgbHf8SUnzAxNJVv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns best-available swap quotes for exchanging one token for another across 40+ chains, including cross-chain swaps.","exampleAgentPrompt":"Get me a swap quote on Zerion to exchange 1.5 ETH for USDC on Ethereum mainnet, using my wallet 0xAbc...123 as sender and recipient, with 0.5% slippage allowed.","exampleUseCases":[{"title":"Cross-chain swap price check","prompt":"What's the best quote to swap 500 USDC on Arbitrum for ETH on Ethereum mainnet? My wallet address is 0xAbc...123 for both sending and receiving, with 1% max slippage."},{"title":"Same-chain DeFi trade planning","prompt":"Before I execute anything, can you get me a Zerion swap quote for trading 2 WBTC for USDC on Polygon? Use my address 0xDef...456 as sender and recipient, allow 0.5% slippage."},{"title":"Agent portfolio rebalancing quote","prompt":"I want to rebalance — can you pull a swap quote from Zerion to convert 1000 USDC to DAI on Base, from wallet 0x111...222 to the same wallet, with 0.3% slippage tolerance?"}],"resultDescription":"Returns an array of JSON:API resource objects, each representing a swap quote with attributes such as output token amount, price, route details, and related metadata, plus pagination/self links.","failureModes":["Missing required query parameters (input chain_id, fungible_id, amount, output fungible_id, from, to) returns a 400 error","Invalid or unsupported chain/token IDs return no quotes or an error","Insufficient liquidity for the requested swap pair may return an empty data array","Payment failure (x402) if USDC balance is insufficient for the $0.01 per-call fee","Network or provider latency causing timeout on quote aggregation"],"whenToPreferThis":"Use this endpoint when you need on-demand, real-time swap quotes across 40+ EVM chains and Solana via a single API, especially in agent workflows where pay-per-call (x402) billing is preferred over subscription keys. Ideal for pre-trade analysis, portfolio rebalancing agents, or price comparison before executing a swap.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:48:38.441Z","isFirstParty":false,"canonicalSlug":"zerion-swap-quotes-653979fb"}