# SushiSwap Route Quote

> SushiSwap Route Quote is a paid API for AI agents from api.chainmarket-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-24).

Gets a swap route quote from SushiSwap for a given token pair and input amount on an EVM chain, returning price, route, gas, and output amount.

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/crypto/sushiswap-route-quotes?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sushiswap-route-quote-e956299f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QEMHrLqGHPWgDiP68oCCU

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 sushiswap-route-quote-e956299f
```

Example prompt: What's the SushiSwap route quote to swap 1 WETH (0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2) for USDT (0xdac17f958d2ee523a2206206994597c13d831ec7) on Ethereum mainnet (chain ID 1)? I want to see the output amount, price impact, and routing path.

## When to prefer this

Use this endpoint when you specifically need SushiSwap routing and pricing data — it proxies the official SushiSwap v7 swap API and returns structured route, price impact, and gas data. Prefer it over generic DEX aggregator quotes when you need SushiSwap-specific route paths or are comparing SushiSwap against other DEXes. Ideal for pre-trade analysis, arbitrage detection, or price benchmarking without executing a transaction.

## Known failure modes

- Invalid or unsupported token address returns an error or empty route
- Unsupported chainId returns an error
- amountIn of zero or invalid format causes a bad request
- Token pair with no liquidity returns no route or zero amountOut
- Network or upstream SushiSwap API unavailability causes a timeout or error response

## How this service works

SushiSwap route quote for an exact-input swap on one EVM chain: amount out, swap price, price impact, gas spent and the tokens in the route. Quote only, no transaction data. The API needs a sender address; if none is given, a fixed placeholder address is sent and nothing is signed or executed.

## Output

Returns a JSON object with the source SushiSwap API URL, chain ID, tokenIn and tokenOut metadata (symbol, address, decimals), input amount, estimated output amount, swap price, route token path, price impact percentage, gas spent estimate, and timestamp of the quote.

## 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": [
      "tokenIn",
      "tokenOut",
      "amountIn"
     ],
     "properties": {
      "sender": {
       "type": "string",
       "description": "Optional sender address for the API (quote unaffected)"
      },
      "chainId": {
       "type": "string",
       "description": "EVM chain id (default 1)"
      },
      "tokenIn": {
       "type": "string",
       "description": "Token to sell, 0x address (use the wrapped token for native ETH)"
      },
      "amountIn": {
       "type": "string",
       "description": "Amount to sell in the token's smallest unit (wei for 18 decimals)"
      },
      "tokenOut": {
       "type": "string",
       "description": "Token to buy, 0x address"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "source": "https://api.sushi.com/swap/v7/1",
  "chainId": "1",
  "tokenIn": {
   "symbol": "WETH",
   "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
   "decimals": 18
  },
  "amountIn": 1,
  "gasSpent": 106565,
  "tokenOut": {
   "symbol": "USDT",
   "address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
   "decimals": 6
  },
  "amountOut": 2396.008519,
  "checkedAt": "2026-10-23T09:36:03.653Z",
  "swapPrice": 2.396008518525859e-9,
  "routeTokens": [
   "WETH",
   "USDC"
  ],
  "priceImpactPct": 0.136
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sushiswap-route-quote-e956299f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.chainmarket-api.workers.dev](https://www.zero.xyz/host/api.chainmarket-api.workers.dev/llms.txt)
