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

# quote

`GET /quote`

Retrieve a quote to be used in `POST /swap`.

Refer to https://station.jup.ag/docs/swap-api/get-quote for more information.

## Query parameters

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

## 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 algorithm - Exlcuding network fees, slippage or platform fees
  - `otherAmountThreshold` string, required — - Calculated minimum output amount after accounting for `slippageBps` and `platformFeeBps` - Not used by 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 — Time taken to determine quote

## Changes

- **2025-02-19** `5904b9a202ab` — 3 breaking, 12 warning, 5 info
  - the response property `platformFee/amount` became optional for the status `200`
  - the response property `platformFee/feeBps` became optional for the status `200`
  - the response property `routePlan/items/swapInfo/label` became optional for the status `200`
  - deleted the `query` request parameter `autoSlippage`
  - …16 more
- **2025-02-07** `844f7905049f` — 2 info
  - added the new optional `query` request parameter `preferSimpleRouting`
  - added the optional property `simplerRouteUsed` to the response with the `200` status
- **2025-01-26** `5747978e3d2f` — 1 info
  - added the optional property `swapUsdValue` to the response with the `200` status
- **2025-01-10** `b91fdb8150d8` — 3 info
  - the response property `platformFee/amount` became required for the status `200`
  - the response property `platformFee/feeBps` became required for the status `200`
  - the response property `routePlan/items/swapInfo/label` became required for the status `200`
- **2024-12-12** `a32f8db268df` — 1 info
  - added the new optional `query` request parameter `dynamicSlippage`

[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/0f26ccf8eb05/schema)
