{"uid":"cap_Lsnsv5ACv0KXiqRpGNH-Y","slug":"0x-swap-allowance-holder-quote-indicative-7bc0fb8e","name":"0x Swap Allowance Holder Quote (Indicative)","description":"API proxy for 0x","url":"https://agent.api.0x.org/v1/x402/swap-allowance-holder-quote/%7Bpath%7D","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"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"gas":"","zid":"","fees":{},"route":{},"gasFee":{},"issues":{},"buyToken":"","gasPrice":"","buyAmount":"","sellToken":"","zeroExFee":{},"sellAmount":"","blockNumber":"","minBuyAmount":"","tokenMetadata":{},"integratorFees":[],"allowanceTarget":"","totalNetworkFee":"","liquidityAvailable":false}},"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_E_HUqhFKGw8474gfyULJq","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 an indicative swap quote using the 0x Allowance Holder contract, including price, fees, gas estimates, and route details for a token swap.","exampleAgentPrompt":"What's the indicative 0x swap quote to sell 1 ETH for USDC on Ethereum — show me the expected buy amount, gas fees, and the allowance target address I'd need to approve?","exampleUseCases":null,"resultDescription":"Returns a JSON object containing the expected buy amount, sell amount, gas price, gas fee, total network fee, minimum buy amount, zero ex fee, integrator fees, allowance target address, swap route, token metadata, liquidity availability flag, and the block number at quote time.","failureModes":["Liquidity unavailable for the requested token pair — liquidityAvailable returns false","Invalid or unsupported token address in query params — returns 4xx error","Missing required query parameters such as sellToken, buyToken, or sellAmount — returns validation error","Network congestion or RPC issues causing delayed or stale quotes","Payment not included or insufficient — x402 payment required error (402)"],"whenToPreferThis":"Use this endpoint when you need a fast, non-binding indicative swap price from 0x using the Allowance Holder pattern — ideal for showing users a price preview before committing to a firm quote. Prefer this over the firm quote endpoint when you want to check liquidity or estimate fees without locking in execution. Choose 0x over generic DEX interfaces when you want aggregated liquidity routing and transparent fee breakdowns.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-10T12:39:38.191Z","isFirstParty":false}