---
title: "Get swap quote"
method: GET
path: "/quote"
---

# Get swap quote

`GET /quote`

Get the best swap quote across all supported DEXes with optimal routing

## Query parameters

- `inputMint` string, required — Input token mint address
- `outputMint` string, required — Output token mint address
- `amount` integer, required — Input amount in lamports
- `slippageBps` string — Slippage in basis points or 'dynamic'
- `dexes` string — Comma-separated list of DEXes to include
- `pools` string — Comma-separated list of specific pool addresses
- `maxHops` integer — Maximum routing hops
- `feeBps` integer — Platform fee in basis points
- `feeFromInput` boolean — Take fee from input amount
- `chargeBps` integer — Extra charge on positive slippage
- `feeAccount` string — Fee recipient wallet address

## Response `200`

Successful quote response

- QuoteResponse
  - `inputMint` string, required — Input token mint address
  - `outputMint` string, required — Output token mint address
  - `amountIn` string, required — Input amount in lamports
  - `amountOut` string, required — Expected output amount in lamports
  - `minAmountOut` string, required — Minimum output amount after slippage
  - `feeAmount` string, required — Total fees paid in lamports
  - `priceImpact` number, required — Price impact percentage
  - `slippageBps` integer, required — Slippage used in basis points
  - `routePlan` RouteStep[], required — Array of routing steps
    - `programId` string, required — DEX program ID
    - `dex` string, required — DEX name
    - `pool` string, required — Pool address
    - `inputMint` string, required — Step input mint
    - `outputMint` string, required — Step output mint
    - `amountIn` string, required — Step input amount
    - `amountOut` string, required — Step output amount
    - `feeAmount` string, required — Step fees
    - `priceImpact` number, required — Step price impact
    - `percent` integer — Percentage of total input
  - `swapUsdValue` string — USD value of the input amount
  - `priorityFee` PriorityFeeInfo
    - `recommended` integer, required — Recommended priority fee in microlamports
    - `level` string, required — Priority level used
    - `levels` PriorityFeeLevels
      - `min` integer — Minimum priority fee
      - `low` integer — Low priority fee
      - `medium` integer — Medium priority fee
      - `high` integer — High priority fee
      - `veryHigh` integer — Very high priority fee
      - `unsafeMax` integer — Maximum priority fee
  - `platformFee` PlatformFeeConfig
    - `feeBps` integer, required — Fee in basis points
    - `feeAccount` string, required — Fee recipient address
  - `contextSlot` integer, required — Solana slot when quote was generated
  - `timeTaken` number, required — Time taken to generate quote in seconds

## Other responses

- `400` — Bad request
- `503` — Service unavailable (still indexing)

---

[API](https://skmtc.dev/solanatracker/apis/solana-tracker-data-api.md) · [All operations](https://skmtc.dev/solanatracker/apis/solana-tracker-data-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/solanatracker/solana-tracker-data-api/revisions/c07c6f82d0c4/schema)
