# 3Route Multichain DEX Swap Quote API

> 3Route Multichain DEX Swap Quote API is a paid API for AI agents from 3route.agents.bakingbad.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-07).

Returns an optimized multi-DEX swap quote for any token pair on a given EVM chain, including expected output amount, gas estimate, and optional route breakdown.

## Facts

- Endpoint: GET https://3route.agents.bakingbad.dev/api/v6.1/%7BchainId%7D/quote?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-07
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/3route-multichain-dex-swap-quote-api-d3a789d8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BGmgmpNuUF09WuYZ5kR18

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 3route-multichain-dex-swap-quote-api-d3a789d8
```

Example prompt: How much USDC will I get if I swap 1 ETH on Ethereum mainnet right now? Show me the DEX route breakdown and include token metadata.

## When to prefer this

Choose this endpoint when you need a gas-aware, multi-DEX aggregated swap quote on any supported EVM chain via a pay-per-call API with no subscription. Ideal for agents that need real-time pricing with optional route transparency, support for exact-output swaps, and fine-grained control over which DEX protocols are included or excluded.

## Known failure modes

- 400 if amount is zero or missing required src/dst parameters
- 400 if protocols list contains no recognized DEX names
- 400 if referral fee is outside the accepted range
- 402 Payment Required if the x402 payment header is missing or insufficient
- Invalid chain ID returns an error or empty routing result
- Illiquid token pairs may return no route or very high price impact

## How this service works

3Route is an agent-ready multichain swap API from Baking Bad, a provider of tools for agents. Discover tokens for free, then pay per quote or unsigned swap.

## Output

Returns the expected destination token amount, estimated gas cost, optional source/destination token metadata, optional per-DEX route breakdown showing which protocols handle which portion of the swap, and price impact. When isExactOutput is set, also returns the required source input amount.

## 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"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "chainId"
     ],
     "properties": {
      "chainId": {
       "enum": [
        "4663",
        "42793",
        "128064"
       ],
       "type": "string",
       "example": "4663",
       "pattern": "^[0-9]+$"
      }
     },
     "additionalProperties": false
    },
    "queryParams": {
     "type": "object",
     "required": [
      "src",
      "dst",
      "amount"
     ],
     "properties": {
      "dst": {
       "type": "string",
       "example": "0x2222222222222222222222222222222222222222",
       "pattern": "^0x[0-9a-fA-F]{40}$"
      },
      "fee": {
       "type": "number",
       "default": 0,
       "maximum": 3,
       "minimum": 0
      },
      "src": {
       "type": "string",
       "example": "0x0000000000000000000000000000000000000000",
       "pattern": "^0x[0-9a-fA-F]{40}$"
      },
      "amount": {
       "type": "string",
       "example": "1000000000000000000",
       "pattern": "^[0-9]+$"
      },
      "gasPrice": {
       "type": "string",
       "example": "1000000000",
       "pattern": "^[0-9]+$"
      },
      "protocols": {
       "type": "string"
      },
      "isExactOutput": {
       "type": "boolean",
       "default": false
      },
      "includeProtocols": {
       "type": "boolean",
       "default": false
      },
      "excludedProtocols": {
       "type": "string"
      },
      "includeTokensInfo": {
       "type": "boolean",
       "default": false
      },
      "includeBlockNumber": {
       "type": "boolean",
       "default": false
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "gas": 210000,
  "dstAmount": "950000",
  "srcAmount": "1000000000000000000"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/3route-multichain-dex-swap-quote-api-d3a789d8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 3route.agents.bakingbad.dev](https://www.zero.xyz/host/3route.agents.bakingbad.dev/llms.txt)
