{"uid":"cap_6Uj2wLT2o6gFT0eWQm85e","slug":"0x-swap-allowance-holder-indicative-price-20b02cb9","name":"0x Swap Allowance Holder Indicative Price","description":"API proxy for 0x","url":"https://agent.api.0x.org/v1/x402/swap-allowance-holder-price/%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":{},"issues":{},"buyToken":"","gasPrice":"","buyAmount":"","sellToken":"","sellAmount":"","blockNumber":"","minBuyAmount":"","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_xISBbFyQnm8no8rcYO0qj","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 (non-binding) price quote for a token swap using the 0x Allowance Holder contract, including gas estimates, fees, and route details","exampleAgentPrompt":"What's the current indicative price to swap 1 ETH for USDC using 0x's Allowance Holder — including the expected gas fees, route, and minimum amount I'd receive?","exampleUseCases":null,"resultDescription":"Returns a JSON object containing the indicative buy/sell amounts, gas price, total network fee, allowance target address, liquidity availability flag, route details, fee breakdown, issues, and the block number at time of quote. This is a non-binding price estimate, not a firm executable quote.","failureModes":["Token pair not supported or liquidity unavailable — liquidityAvailable returns false","Invalid token address or symbol in query params — 400 bad request","Unsupported chain or network — error response","Payment not provided or invalid x402 payment header — 402 Payment Required","Rate limit exceeded — 429 Too Many Requests","Stale or missing block number data — may return empty gas or price fields"],"whenToPreferThis":"Use this endpoint when you need a quick, non-binding indicative price for a token swap via the 0x Allowance Holder pattern before committing to a firm quote or executing a trade. Prefer this over the firm quote endpoint when you only need price discovery, want to check liquidity, or are presenting estimated costs to a user without intending to execute immediately. This is ideal for display purposes, pre-trade analysis, or comparing swap costs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-10T12:30:01.379Z","isFirstParty":false}