# Zerion Swap Quotes

> Zerion Swap Quotes is a paid API for AI agents from api.zerion.io, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-02).

Returns best-available swap quotes for exchanging one token for another across 40+ chains, including cross-chain swaps.

## Facts

- Endpoint: GET https://api.zerion.io/v1/swap/quotes?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/zerion-swap-quotes-653979fb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DezA-KL57JIC9EfuhEHRg

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 zerion-swap-quotes-653979fb
```

Example prompt: Get me a swap quote on Zerion to exchange 1.5 ETH for USDC on Ethereum mainnet, using my wallet 0xAbc...123 as sender and recipient, with 0.5% slippage allowed.

## When to prefer this

Use this endpoint when you need on-demand, real-time swap quotes across 40+ EVM chains and Solana via a single API, especially in agent workflows where pay-per-call (x402) billing is preferred over subscription keys. Ideal for pre-trade analysis, portfolio rebalancing agents, or price comparison before executing a swap.

## Known failure modes

- Missing required query parameters (input chain_id, fungible_id, amount, output fungible_id, from, to) returns a 400 error
- Invalid or unsupported chain/token IDs return no quotes or an error
- Insufficient liquidity for the requested swap pair may return an empty data array
- Payment failure (x402) if USDC balance is insufficient for the $0.01 per-call fee
- Network or provider latency causing timeout on quote aggregation

## How this service works

Interpreted wallet data for more than 40 chains and Solana: portfolios, DeFi positions, PnL, transactions and NFTs. REST for apps, x402 pay-per-call for agents.

## Output

Returns an array of JSON:API resource objects, each representing a swap quote with attributes such as output token amount, price, route details, and related metadata, plus pagination/self links.

## 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": [
      "input[chain_id]",
      "input[fungible_id]",
      "input[amount]",
      "output[fungible_id]",
      "from",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "Recipient wallet address"
      },
      "from": {
       "type": "string",
       "description": "Sender wallet address"
      },
      "currency": {
       "type": "string",
       "description": "Fiat currency for prices and values (defaults to usd)"
      },
      "input[amount]": {
       "type": "string",
       "description": "Input amount in whole token units, as a decimal string (e.g. \"1.5\")"
      },
      "input[chain_id]": {
       "type": "string",
       "description": "Input chain ID"
      },
      "output[chain_id]": {
       "type": "string",
       "description": "Output chain ID (defaults to the input chain, i.e. a same-chain swap)"
      },
      "slippage_percent": {
       "type": "number",
       "description": "Allowed slippage percent"
      },
      "input[fungible_id]": {
       "type": "string",
       "description": "Input token ID"
      },
      "output[fungible_id]": {
       "type": "string",
       "description": "Output token ID"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "data"
     ],
     "properties": {
      "data": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "id": {
          "type": "string",
          "description": "Resource ID."
         },
         "type": {
          "type": "string",
          "description": "Resource type."
         },
         "attributes": {
          "type": "object",
          "description": "Resource attributes; see https://developers.zerion.io"
         }
        }
       },
       "description": "Array of JSON:API resource objects."
      },
      "links": {
       
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "id": "<resource id>",
    "type": "<resource type>",
    "attributes": {}
   }
  ],
  "links": {
   "self": "https://api.zerion.io/v1/..."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/zerion-swap-quotes-653979fb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.zerion.io](https://www.zero.xyz/host/api.zerion.io/llms.txt)
