# KyberSwap DEX Aggregator Swap Quote

> KyberSwap DEX Aggregator Swap Quote is a paid API for AI agents from x402-services-production.up.railway.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Returns the best swap quote across DEXes using KyberSwap aggregator, including expected output amount, USD values, price impact, gas cost, and routing path — quote only, no execution.

## Facts

- Endpoint: POST https://x402-services-production.up.railway.app/api/exec/quote
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kyberswap-dex-aggregator-swap-quote-d2e3a732
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bvyWMowrrErMZVxm9nURf

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 kyberswap-dex-aggregator-swap-quote-d2e3a732 -d '<json body>'
```

Example prompt: Get me the best swap quote to sell 1 ETH (1000000000000000000 wei) for USDC on Base — I want to see the expected output, price impact, gas cost, and which DEXes it routes through.

## When to prefer this

Use this endpoint when you need a pre-trade routing quote across multiple DEXes on EVM chains without executing a trade. Ideal for trading agents doing price discovery, comparing slippage across pairs, estimating gas costs before submission, or finding optimal routing for large swaps. Prefer this over single-DEX price feeds when you need aggregated best-price routing across liquidity sources.

## Known failure modes

- Unsupported chain returns an error — only base, ethereum, arbitrum, polygon, optimism, bsc, avax are supported
- Invalid token address (non-0x or unrecognized contract) returns an error or empty route
- amountIn of zero or extremely small amounts may return no viable route
- Illiquid token pairs may return high price impact or no route found
- Payment failure (insufficient USDC for $0.05 fee) blocks the request
- KyberSwap aggregator API downtime causes upstream failure

## How this service works

Best-route swap quote across DEXes (KyberSwap aggregator): expected output, USD in/out, price impact %, gas cost, and the DEXes routed through. Send { chain, tokenIn, tokenOut, amountIn } (amountIn in smallest units). Quote only — never executes. Pre-trade routing for trading agents.

## Output

Returns the optimal swap route including expected token output amount, USD value of input and output, price impact percentage, estimated gas cost, and the list of DEXes the trade would be routed through. This is a quote only — no transaction is submitted or executed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "amountIn",
  "tokenIn",
  "tokenOut"
 ],
 "properties": {
  "chain": {
   "type": "string",
   "description": "base (default), ethereum, arbitrum, polygon, optimism, bsc, avax"
  },
  "tokenIn": {
   "type": "string",
   "description": "0x token address to sell"
  },
  "amountIn": {
   "type": "string",
   "description": "Amount to sell in smallest units (wei)"
  },
  "tokenOut": {
   "type": "string",
   "description": "0x token address to buy"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/kyberswap-dex-aggregator-swap-quote-d2e3a732/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-services-production.up.railway.app](https://www.zero.xyz/host/x402-services-production.up.railway.app/llms.txt)
