# HyperD DEX Swap Quote Aggregator

> HyperD DEX Swap Quote Aggregator is a paid API for AI agents from api.hyperd.ai, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-10).

Finds the best DEX swap route across Paraswap and 0x aggregators, returning the highest output amount plus comparable quotes from each source.

## Facts

- Endpoint: GET https://api.hyperd.ai/api/dex/quote?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-hyperd-ai-0bbeabd1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kI6Ae3_Vg7RJ_g4IQM-yU

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 api-hyperd-ai-0bbeabd1
```

Example prompt: What's the best swap route to exchange 500 USDC to ETH on Base right now — show me quotes from both Paraswap and 0x so I can pick the best one?

## When to prefer this

Use this endpoint when you need to find the optimal DEX swap price before executing a trade, especially when you want transparent comparison across Paraswap and 0x without having to call each aggregator separately. Ideal for pre-trade analysis, best-execution workflows, or when building DeFi agents that need to route swaps intelligently across Base, Ethereum, Polygon, Arbitrum, Optimism, Avalanche, or BNB chain.

## Known failure modes

- Unsupported token symbol returns an error — use contract address instead
- Unsupported chain value returns validation error — must be one of: base, ethereum, polygon, arbitrum, optimism, avalanche, bnb
- Amount too small or zero may return no valid routes
- Network congestion or aggregator downtime may cause partial results or timeout
- Invalid contract address format returns a parsing error

## How this service works

Best DEX swap route across multiple aggregators (Paraswap, 0x). Returns the highest output amount + comparable quotes from each source for transparency.

## Output

Returns the best output amount for the swap along with the winning aggregator route, plus side-by-side comparable quotes from Paraswap and 0x for full transparency on pricing.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "to": "ETH",
   "from": "USDC",
   "chain": "base",
   "amount": "500",
   "slippage": 50
  }
 }
}
```

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "from",
      "to",
      "amount"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "Destination token symbol or contract address"
      },
      "from": {
       "type": "string",
       "description": "Source token symbol or contract address"
      },
      "chain": {
       "enum": [
        "base",
        "ethereum",
        "polygon",
        "arbitrum",
        "optimism",
        "avalanche",
        "bnb"
       ],
       "type": "string"
      },
      "taker": {
       "type": "string",
       "description": "Optional payer address for 0x quote (improves accuracy)"
      },
      "amount": {
       "type": "string",
       "description": "Amount of source token (decimal in source's units)"
      },
      "slippage": {
       "type": "number",
       "description": "Max slippage in basis points (default 50)"
      }
     }
    }
   },
   "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/api-hyperd-ai-0bbeabd1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.hyperd.ai](https://www.zero.xyz/host/api.hyperd.ai/llms.txt)
