# Zerion Swap Offers

> Zerion Swap Offers 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-03).

Returns swap offers (quotes) for trading tokens across 40+ chains, comparing liquidity sources for a given input/output token pair and amount.

## Facts

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

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-offers-a42dcd7b
```

Example prompt: Get me the best swap offers to trade 1000 USDC for ETH on Ethereum mainnet, with a max slippage of 1%, from my wallet 0xAbC123...

## When to prefer this

Use this endpoint when you need to fetch and compare real-time swap quotes across multiple DEX liquidity sources for a given token pair on any of the 40+ supported chains. Prefer this over generic DEX APIs when you want aggregated multi-source offers, cross-chain support, and a pay-per-call x402 model without requiring an API key subscription.

## Known failure modes

- Missing required input or output token identifiers returns a 400 validation error
- Providing both fungible_id and asset_address for the same side returns a 400 conflict error
- No liquidity available for the requested pair returns an empty data array
- Slippage percent outside 0–3 range returns a 400 validation error
- Payment not provided or insufficient returns a 402 Payment Required response
- Invalid chain ID returns a 400 error

## 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

A list of swap offer objects, each containing the liquidity source, expected output amount, exchange rate, price impact, and transaction calldata needed to execute the swap. Also includes pagination 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",
     "properties": {
      "sort": {
       "type": "string",
       "description": "Sort order for the returned offers"
      },
      "output[to]": {
       "type": "string",
       "description": "Recipient wallet address (defaults to the sender)"
      },
      "input[from]": {
       "type": "string",
       "description": "Sender wallet address"
      },
      "input[amount]": {
       "type": "string",
       "description": "Input amount in the token's smallest unit; provide either input[amount] or output[amount]"
      },
      "output[amount]": {
       "type": "string",
       "description": "Output amount in the token's smallest unit; provide either input[amount] or output[amount]"
      },
      "input[chain_id]": {
       "type": "string",
       "description": "Input chain ID"
      },
      "input[token_id]": {
       "type": "string",
       "description": "Input NFT token ID, when swapping an NFT"
      },
      "output[chain_id]": {
       "type": "string",
       "description": "Output chain ID"
      },
      "output[token_id]": {
       "type": "string",
       "description": "Output NFT token ID, when swapping into an NFT"
      },
      "slippage_percent": {
       "type": "number",
       "maximum": 3,
       "minimum": 0,
       "description": "Allowed slippage percent (0–3)"
      },
      "input[fungible_id]": {
       "type": "string",
       "description": "Input token ID — use exactly one of input[fungible_id] or input[asset_address]"
      },
      "liquidity_source_id": {
       "type": "string",
       "description": "Restrict offers to a single liquidity source"
      },
      "output[fungible_id]": {
       "type": "string",
       "description": "Output token ID — use exactly one of output[fungible_id] or output[asset_address]"
      },
      "input[asset_address]": {
       "type": "string",
       "description": "Input token contract address — use exactly one of input[fungible_id] or input[asset_address]"
      },
      "output[asset_address]": {
       "type": "string",
       "description": "Output token con
… (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-offers-a42dcd7b/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)
