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

# quote

`GET /quote`

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

:::note
Refer to [Swap API doc](https://dev.jup.ag/docs/swap-api/get-quote) for more information
:::

## 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
- `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 - Exlcuding slippage or platform fees
  - `otherAmountThreshold` string, required — - Calculated minimum output amount after accounting for `slippageBps` and `platformFeeBps` - Not used by `/swap` endpoint to build transaction
  - `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
      - `feeAmount` string, required
      - `feeMint` string, required
    - `percent` integer, required
  - `contextSlot` number
  - `timeTaken` number

## Changes

- **2025-05-05** `e81eaf0176e7` — 1 info
  - endpoint added
- **2025-05-05** `d7eeb7e24ac4` — 1 breaking
  - api path removed without deprecation
- **2025-05-05** `2dd11b5a356a` — 9 breaking, 1 info
  - for the `query` request parameter `asLegacyTransaction`, default value `false` was added
  - for the `query` request parameter `maxAccounts`, default value `64` was added
  - for the `query` request parameter `onlyDirectRoutes`, default value `false` was added
  - for the `query` request parameter `restrictIntermediateTokens`, default value `true` was added
  - …6 more
- **2025-05-05** `2638d3c16361` — 1 info
  - endpoint added
- **2025-03-23** `54e7268f9fc0` — 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/5be338f86f7a/schema)
