# Market Intelligence API – On-Chain DEX Quote

> Market Intelligence API – On-Chain DEX Quote is a paid API for AI agents from api.marketintelligenceapi.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-18).

Returns a simulated best-route DEX swap quote (amount out, price impact, minimum accepted, alternative routes) across Uniswap v2/v3/v4 and Aerodrome on Base, Ethereum, Arbitrum, Optimism, and Polygon without executing any transaction.

## Facts

- Endpoint: GET https://api.marketintelligenceapi.com/api/v1/intelligence/quote?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/market-intelligence-api-on-chain-dex-quote-9ff03cd0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TZ7yBUhXGC7ShN0clQvX9

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 market-intelligence-api-on-chain-dex-quote-9ff03cd0
```

Example prompt: Before I swap 2 ETH for USDC on Base, check what the best route gives me right now — show me the expected output, price impact, and minimum I should accept at 0.5% slippage across Uniswap and Aerodrome.

## When to prefer this

Choose this endpoint when you need a pre-trade simulation of DEX swap output across multiple venues (Uniswap v2/v3/v4, Aerodrome) on supported EVM chains (Base, Ethereum, Arbitrum, Optimism, Polygon) before executing an on-chain swap. It is specifically valuable for comparing routing paths, assessing price impact, and determining slippage parameters without committing any transaction. Prefer it over generic price feeds when you need execution-realistic quotes, not just spot prices.

## Known failure modes

- Unsupported token pair returns no route found error
- Unsupported network returns invalid chain error
- Extremely low liquidity pairs may return high price impact warning or no quote
- Invalid token address format causes a validation error
- Network RPC congestion may cause eth_call simulation timeout

## How this service works

DEX swap quote and best route ($0.005): how much you get now across Uniswap v2/v3/v4 and Aerodrome (direct or through WETH) on Base, Ethereum, Arbitrum, Optimism or Polygon, with price impact, the minimum to accept at your slippage and alternative routes. Simulated with eth_call; nothing is executed. Use right before an on-chain swap.

## Output

Returns the expected output token amount for the best available route, price impact percentage, minimum acceptable output at the specified slippage, the optimal routing path (direct or via WETH), and a list of alternative routes with their respective quotes — all simulated via eth_call with no on-chain execution.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "sell",
      "buy",
      "amount"
     ],
     "properties": {
      "buy": {
       "type": "string",
       "description": "Token to buy: ETH, WETH, USDC (USDT on Ethereum) or a 0x token address"
      },
      "sell": {
       "type": "string",
       "description": "Token to sell: ETH, WETH, USDC (USDT on Ethereum) or a 0x token address"
      },
      "chain": {
       "enum": [
        "base",
        "ethereum",
        "arbitrum",
        "optimism",
        "polygon"
       ],
       "type": "string",
       "default": "base",
       "description": "Chain the swap is quoted on: base, ethereum, arbitrum, optimism or polygon. Not the payment network: payment networks are in x-payment-info.networks."
      },
      "amount": {
       "type": "string",
       "description": "Amount of the sell token in whole units, e.g. 1000 or 0.5"
      },
      "slippageBps": {
       "type": "integer",
       "default": 50,
       "maximum": 5000,
       "minimum": 1,
       "description": "Slippage tolerance for minimumReceived, in basis points"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "description": "Example JSON response returned by this endpoint"
    }
   },
   "additionalProperties": true
  }
 },
 "additionalProperties": false
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/market-intelligence-api-on-chain-dex-quote-9ff03cd0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.marketintelligenceapi.com](https://www.zero.xyz/host/api.marketintelligenceapi.com/llms.txt)
