# 402.com.tr Swap Route Optimizer

> 402.com.tr Swap Route Optimizer is a paid API for AI agents from 402.com.tr, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-13).

Returns the optimal Base DEX pool routing for a token swap, including price impact, slippage tolerance, minimum-out amount, and honeypot/sell-tax safety check on the output token.

## Facts

- Endpoint: GET https://402.com.tr/api/x402/swap-route
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/402-com-tr-swap-route-optimizer-71b80c39
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qbVb8Rgi-pTNI2gfCiASy

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 402-com-tr-swap-route-optimizer-71b80c39
```

Example prompt: Before I swap $500 into the Base token at address 0xabc123, find me the deepest pool to route through, tell me the estimated price impact and recommended slippage, and confirm it's not a honeypot I can't sell later.

## When to prefer this

Use this endpoint when an agent needs to execute or prepare a token swap on Base chain and requires a single call that covers routing intelligence, price impact estimation, slippage recommendation, and sell-tax/honeypot safety validation simultaneously. Prefer over manual DEX aggregator queries when agent safety checks and routing need to be bundled together before committing to a trade.

## Known failure modes

- Invalid or non-existent tokenOut address returns an error or empty route
- Token flagged as honeypot — endpoint still returns result but flags the token as unsafe to trade
- No liquidity pool found for the requested token returns a null route
- amountUsd not provided defaults to a baseline estimate which may be less accurate
- Transient RPC errors on Base chain may cause timeout or stale data
- Payment of $0.03 USDC via x402 not completed results in 402 Payment Required error

## How this service works

Give a token and a trade size in USD → the deepest Base pool to route through, estimated price impact, a suggested slippage tolerance + minimum-out, all gated on a honeypot/sell-tax check of the token you'd receive (no point routing into something you can't sell). Moves an agent from analysis to action in one call.

## Output

Returns the recommended Base liquidity pool route, estimated price impact percentage, suggested slippage tolerance, minimum tokens out for the given USD trade size, and a honeypot/sell-tax safety verdict for the output token — everything needed to go from analysis to trade execution safely.

## 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"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "tokenOut"
     ],
     "properties": {
      "tokenOut": {
       "type": "string",
       "description": "Token to receive"
      },
      "amountUsd": {
       "type": "string",
       "description": "Trade size in USD"
      }
     }
    }
   },
   "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/402-com-tr-swap-route-optimizer-71b80c39/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 402.com.tr](https://www.zero.xyz/host/402.com.tr/llms.txt)
