# 0x Swap Allowance Holder Price (Indicative)

> 0x Swap Allowance Holder Price (Indicative) is a paid API for AI agents from agent.api.0x.org, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns an indicative (non-binding) price for a token swap using 0x's Allowance Holder contract for setting token allowances

## Facts

- Endpoint: GET https://agent.api.0x.org/v1/x402/swap-allowance-holder-price/
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/0x-swap-allowance-holder-price-indicative-cc7bfc25
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dX8PxawJhmEtEOe09BdrM

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 0x-swap-allowance-holder-price-indicative-cc7bfc25
```

Example prompt: What's the indicative price for swapping 1000 USDC to ETH on mainnet using the 0x Allowance Holder? I want to see the estimated rate before committing to anything.

## When to prefer this

Use this endpoint when you need a fast, non-binding price estimate for a token swap using 0x's Allowance Holder contract — ideal for displaying prices to users, comparing rates, or pre-flight checks before requesting a firm quote. Prefer this over the firm quote endpoint when you don't need execution guarantees and want to avoid consuming a binding quote slot.

## Known failure modes

- Unsupported token pair returns 400 or empty price data
- Invalid chain ID results in a routing error
- Insufficient liquidity for the requested amount returns a degraded or no-quote response
- Missing required query parameters (sellToken, buyToken, sellAmount) causes a 400 validation error
- Payment not included or invalid x402 payment header causes 402 Payment Required

## How this service works

Get the indicative price for a swap using Allowance Holder to set allowances

## Output

Returns an indicative swap price including the exchange rate, estimated output amount, price impact, gas cost estimate, and the liquidity sources 0x would route through — all non-binding and suitable for display or pre-trade analysis.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/0x-swap-allowance-holder-price-indicative-cc7bfc25/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent.api.0x.org](https://www.zero.xyz/host/agent.api.0x.org/llms.txt)
