# 0x Swap Allowance Holder Indicative Price

> 0x Swap Allowance Holder Indicative Price 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 quote for a token swap using the 0x Allowance Holder contract

## Facts

- Endpoint: POST https://agent.api.0x.org/v1/x402/swap-allowance-holder-price/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-indicative-price-5807afca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GmuV-iAKKPMVL7a-qRBPE

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-indicative-price-5807afca -d '<json body>'
```

Example prompt: What's the current indicative swap price on 0x for selling 1 ETH to buy USDC on Ethereum mainnet, using the Allowance Holder? I want to see the rate before I commit to anything.

## When to prefer this

Use this endpoint when you need a fast, non-binding price estimate for a token swap using the 0x Allowance Holder pattern — ideal for displaying indicative rates in a UI, comparing prices, or deciding whether to proceed to a firm quote. Prefer this over the firm quote endpoint when no commitment is needed yet and you just want to show users an estimated rate. Use the sibling firm quote endpoint when you're ready to execute.

## Known failure modes

- Token pair not supported — returns 400 with unsupported pair error
- Invalid or missing required query parameters (sell token, buy token, amount) — returns 400 validation error
- Insufficient liquidity for the requested swap size — returns 400 or empty price response
- Chain ID not supported — returns 400
- Payment not made or x402 payment header missing — returns 402 Payment Required
- Rate limiting exceeded — returns 429
- Downstream liquidity provider outage — returns 500 or timeout

## Output

Returns an indicative price object including the expected output token amount, exchange rate, estimated gas, liquidity sources used, and price impact — without locking in any trade. This is a non-binding quote for informational purposes before the user decides to proceed with a firm quote or execution.

## 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-indicative-price-5807afca/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)
