# Jupiter Solana Swap Routing Quote

> Jupiter Solana Swap Routing 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).

Returns a swap routing quote for a Solana token pair via Jupiter aggregator, including best route, output amount, price impact, and USD value

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/crypto/jupiter-solana-routing?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/jupiter-solana-swap-routing-quote-5c226048
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QuhVmGSWBu84NxXh_YnI_

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 jupiter-solana-swap-routing-quote-5c226048
```

Example prompt: What's the best swap route and output amount to trade 1 SOL (So11111111111111111111111111111111111111112) for USDC (EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v) on Solana right now, with a 50 basis point slippage tolerance?

## When to prefer this

Use this endpoint when you need a real-time, no-signup swap routing quote on the Solana blockchain via Jupiter aggregator — especially when you want to check DEX route quality, price impact, USD value, and minimum output before executing a swap. Prefer over manual RPC calls or raw Jupiter API calls when you want pay-per-use access with no API key setup.

## Known failure modes

- Missing required query parameters (inputMint, outputMint, amount) returns 400 error
- Invalid or non-existent mint address returns error from Jupiter API
- Amount too small for any available route may return no quote
- High slippage or illiquid pairs may result in high priceImpactPct
- Network congestion on Solana may cause timeout or stale quote
- Payment failure (insufficient USDC balance) means call is not charged but not executed

## How this service works

Jupiter aggregator quote on Solana for an exact-input swap: input and output amounts in base units, price impact %, USD value, slippage, and the AMM route legs (venue labels). Quote only, no transaction. Amounts stay in the token's smallest unit (decimals are not looked up).

## Output

Returns a JSON object with: inputMint and outputMint addresses, inAmount and outAmount in smallest units, swapUsdValue (USD equivalent), routeLegs (number of hops), routeVenues (list of DEX venues used), priceImpactPct, slippageBps, otherAmountThreshold (minimum output after slippage), and a checkedAt timestamp.

## 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": [
      "inputMint",
      "outputMint",
      "amount"
     ],
     "properties": {
      "amount": {
       "type": "string",
       "description": "Amount to sell in the smallest unit (lamports for SOL)"
      },
      "inputMint": {
       "type": "string",
       "description": "Mint to sell (base58), e.g. SOL wrapped mint So11111111111111111111111111111111111111112"
      },
      "outputMint": {
       "type": "string",
       "description": "Mint to buy (base58)"
      },
      "slippageBps": {
       "type": "string",
       "description": "Slippage tolerance in basis points, 1 to 1000 (default 50)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "source": "https://lite-api.jup.ag/swap/v1/quote",
  "inAmount": "100000000",
  "checkedAt": "2026-10-23T09:36:04.755Z",
  "inputMint": "So11111111111111111111111111111111111111112",
  "outAmount": "10393983",
  "routeLegs": 1,
  "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "routeVenues": [
   "TesseraV"
  ],
  "slippageBps": 50,
  "swapUsdValue": "10.389101225338210",
  "priceImpactPct": 0,
  "otherAmountThreshold": "10342014"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/jupiter-solana-swap-routing-quote-5c226048/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)
