# 1inch Pathfinder DEX Aggregator Quotes

> 1inch Pathfinder DEX Aggregator Quotes 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).

Fetches and compares best swap quotes across multiple DEX aggregators (KyberSwap, Velora, ParaSwap, etc.) for a given token pair and amount on EVM chains

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/crypto/1inch-pathfinder-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/1inch-pathfinder-dex-aggregator-quotes-7a0f5079
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vVCwjUGWeWrrUGIy93tmk

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 1inch-pathfinder-dex-aggregator-quotes-7a0f5079
```

Example prompt: What's the best rate to swap 1 ETH for USDC on Ethereum right now — check across all the major DEX aggregators and tell me which one gives the most USDC and what the gas cost would be.

## When to prefer this

Choose this endpoint when you need to compare real-time swap quotes across multiple DEX aggregators simultaneously without signing up for individual APIs. It is ideal for pre-trade analysis, finding the best execution price, estimating gas costs, and checking price impact across Ethereum, Base, Arbitrum, Optimism, Polygon, BSC, and Avalanche — all in a single pay-per-call request with no API key required.

## Known failure modes

- Unsupported chain name returns error or empty quotes
- Invalid or unrecognized token contract address returns no quotes
- Amount of zero or negative returns validation error
- Network congestion or aggregator API downtime may return partial quotes
- Token pair with no liquidity returns empty quotes array

## How this service works

Best swap quote for a token pair on an EVM chain, compared across two public DEX aggregators (KyberSwap and Velora/ParaSwap): amount out, USD values, estimated gas in USD, price impact against the input's USD value and the pools/DEXes used, plus which aggregator gives more. Chains: Ethereum, Base, Arbitrum, Optimism, Polygon, BNB Chain, Avalanche. Indicative quotes, not executable orders.

## Output

Returns a ranked list of swap quotes from multiple DEX aggregators, each with: aggregator name, output token amount, USD value in/out, gas cost in USD, price impact percentage, and route taken. Also includes the overall best aggregator, token addresses, decimals, spread percent, and the timestamp the quotes were checked.

## 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",
      "amount"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "description": "ethereum, base, arbitrum, optimism, polygon, bsc or avalanche (default ethereum)"
      },
      "amount": {
       "type": "string",
       "description": "Amount of tokenIn in whole units, e.g. 1.5"
      },
      "tokenIn": {
       "type": "string",
       "description": "Token to sell: contract address, or native for the chain's coin"
      },
      "tokenOut": {
       "type": "string",
       "description": "Token to buy: contract address, or native"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "best": "KyberSwap",
  "chain": "ethereum",
  "quotes": [
   {
    "route": [
     "titan-prop"
    ],
    "gasUsd": 0.1537,
    "amountOut": 2392.953799,
    "aggregator": "KyberSwap",
    "amountInUsd": 2392.6,
    "amountOutUsd": 2392.05,
    "priceImpactPercent": 0.023
   },
   {
    "route": [
     "uniswapv3"
    ],
    "gasUsd": 0.0276,
    "amountOut": 2392.885366,
    "aggregator": "Velora",
    "amountInUsd": 2390.05,
    "amountOutUsd": 2391.82,
    "priceImpactPercent": -0.074
   }
  ],
  "source": "aggregator-api.kyberswap.com, api.paraswap.io",
  "tokenIn": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
  "amountIn": 1,
  "tokenOut": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
  "checkedAt": "2026-10-23T09:36:04.655Z",
  "decimalsIn": 18,
  "decimalsOut": 6,
  "spreadPercent": 0.003
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/1inch-pathfinder-dex-aggregator-quotes-7a0f5079/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)
