# Uniswap V3 Swap Quote via Spraay Gateway

> Uniswap V3 Swap Quote via Spraay Gateway is a paid API for AI agents from gateway.spraay.app, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-15).

Returns a swap quote (expected output amount) for a given token pair and input amount using Uniswap V3 routing.

## Facts

- Endpoint: GET https://gateway.spraay.app/api/v1/swap/quote
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gateway-spraay-app-0e3a40cb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-9XPwZ438bTjNaj1bIPg_

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 gateway-spraay-app-0e3a40cb
```

Example prompt: How much USDC would I get if I swapped 1 ETH (0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2) to USDC (0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) right now on Uniswap V3?

## When to prefer this

Use this endpoint when you need an EVM/Ethereum Uniswap V3 swap quote specifically; prefer the sibling Jupiter endpoint for Solana-native swaps. Best for agents that need to price ERC-20 token swaps before executing a trade or displaying exchange rates to users.

## Known failure modes

- Invalid token addresses return an error or empty result
- Unsupported token pair with no Uniswap V3 pool returns no route found
- amountIn of zero or malformed string may cause a validation error
- Payment failure (402) if x402 payment header is missing or insufficient
- Network congestion or RPC issues may cause timeout or stale pricing

## How this service works

Swap quotes via Uniswap V3.

## Output

Returns the expected output token amount (amountOut as a string) for the specified token swap, reflecting current Uniswap V3 pool pricing and routing.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "tokenIn": "WETH",
   "amountIn": "1000000000000000000",
   "tokenOut": "USDC"
  }
 }
}
```

## 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": {
      "tokenIn": {
       "type": "string"
      },
      "amountIn": {
       "type": "string"
      },
      "tokenOut": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "amountOut": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gateway-spraay-app-0e3a40cb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.spraay.app](https://www.zero.xyz/host/gateway.spraay.app/llms.txt)
