---
title: "quote"
method: GET
path: "/quote"
tags: ["Swap"]
---

# quote

`GET /quote`

Request for a quote to be used in `POST /swap`

## Query parameters

- `inputMint` string, required
- `outputMint` string, required
- `amount` integer, required
- `slippageBps` integer
- `swapMode` 'ExactIn' | 'ExactOut'
- `dexes` string[]
- `excludeDexes` string[]
- `restrictIntermediateTokens` boolean
- `onlyDirectRoutes` boolean
- `asLegacyTransaction` boolean
- `platformFeeBps` integer
- `maxAccounts` integer
- `instructionVersion` 'V1' | 'V2'
- `dynamicSlippage` boolean

## Response `200`

Successful response to be used in `/swap`

- QuoteResponse
  - `inputMint` string, required
  - `inAmount` string, required
  - `outputMint` string, required
  - `outAmount` string, required — - Calculated output amount from routing engine - The value includes platform fees and DEX fees, excluding slippage
  - `otherAmountThreshold` string, required — - Calculated minimum output amount after accounting for `slippageBps` on the `outAmount` value - Not used by `/swap` endpoint to build transaction
  - `instructionVersion` 'V1' | 'V2', nullable — - The version of instruction to use in the swap program
  - `swapMode` 'ExactIn' | 'ExactOut', required
  - `slippageBps` integer, required
  - `platformFee` PlatformFee
    - `amount` string
    - `feeBps` integer
  - `priceImpactPct` string, required
  - `routePlan` RoutePlanStep[], required
    - `swapInfo` SwapInfo, required
      - `ammKey` string, required
      - `label` string
      - `inputMint` string, required
      - `outputMint` string, required
      - `inAmount` string, required
      - `outAmount` string, required
    - `percent` integer, nullable
    - `bps` integer
  - `contextSlot` integer
  - `timeTaken` number

## Changes

- **2026-07-17** `3ffe3406c673` — 1 info
  - added the optional property `instructionVersion` to the response with the `200` status
- **2025-11-24** `da69b85ffa85` — 3 breaking
  - the response property `routePlan/items/percent` became nullable for the status `200`
  - removed the required property `routePlan/items/swapInfo/feeAmount` from the response with the `200` status
  - removed the required property `routePlan/items/swapInfo/feeMint` from the response with the `200` status
- **2025-10-16** `18138545f5de` — 9 breaking, 2 info
  - for the `query` request parameter `slippageBps`, default value `50` was added
  - for the `query` request parameter `amount`, the type/format was changed from `integer`/`` to `integer`/`uint64`
  - for the `query` request parameter `maxAccounts`, the type/format was changed from `integer`/`` to `integer`/`uint64`
  - for the `query` request parameter `platformFeeBps`, the type/format was changed from `integer`/`` to `integer`/`uint16`
  - …7 more
- **2025-05-05** `e81eaf0176e7` — 1 info
  - endpoint added
- **2025-05-05** `d7eeb7e24ac4` — 1 breaking
  - api path removed without deprecation

[Full history](https://skmtc.dev/jup-ag/apis/swap-api/changes/quote/get.md)

---

[API](https://skmtc.dev/jup-ag/apis/swap-api.md) · [All operations](https://skmtc.dev/jup-ag/apis/swap-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jup-ag/swap-api/revisions/3ffe3406c673/schema)
