GET /quote

Sends a GET request to the Jupiter API to get the best priced quote.

get/quote

Query parameters

inputMintstring required

Input token mint address

outputMintstring required

Output token mint address

amountinteger required

The amount to swap, have to factor in the token decimals.

slippageBpsinteger

The slippage in basis points, 1 basis point is 0.01%. If the output token amount exceeds the slippage then the swap transaction will fail.

autoSlippageboolean

Automatically calculate the slippage based on pairs.

autoSlippageCollisionUsdValueinteger

Automatic slippage collision value.

computeAutoSlippageboolean

Compute auto slippage value without using it.

maxAutoSlippageBpsinteger

Max slippage in basis points for auto slippage calculation. Default is 400.

swapMode'ExactIn' | 'ExactOut'

(ExactIn or ExactOut) Defaults to ExactIn. ExactOut is for supporting use cases where you need an exact token amount, like payments. In this case the slippage is on the input token.

dexesstring[]

Default is that all DEXes are included. You can pass in the DEXes that you want to include only and separate them by ,. You can check out the full list here.

excludeDexesstring[]

Default is that all DEXes are included. You can pass in the DEXes that you want to exclude and separate them by ,. You can check out the full list here.

restrictIntermediateTokensboolean

Restrict intermediate tokens to a top token set that has stable liquidity. This will help to ease potential high slippage error rate when swapping with minimal impact on pricing.

onlyDirectRoutesboolean

Default is false. Direct Routes limits Jupiter routing to single hop routes only.

asLegacyTransactionboolean

Default is false. Instead of using versioned transaction, this will use the legacy transaction.

platformFeeBpsinteger

If you want to charge the user a fee, you can specify the fee in BPS. Fee % is taken out of the output token.

maxAccountsinteger

Rough estimate of the max accounts to be used for the quote, so that you can compose with your own accounts

minimizeSlippageboolean

Default is false. Miminize slippage attempts to find routes with lower slippage.

preferLiquidDexesboolean

Default is false. Enabling it would only consider markets with high liquidity to reduce slippage.

tokenCategoryBasedIntermediateTokensboolean

Default is false. Uses categorized top token lists as intermediate tokens to optimize routing paths, replacing the old static top token list. This helps achieve better pricing while maintaining route reliability.

Response

Successful response

inputMintstring required
inAmountstring required
outputMintstring required
outAmountstring required
otherAmountThresholdstring required
swapMode'ExactIn' | 'ExactOut' required
slippageBpsinteger required
computedAutoSlippageinteger
priceImpactPctstring required
contextSlotnumber
timeTakennumber

Changes