Skip to main content
GET
/
quote
quote
curl --request GET \
  --url https://lite-api.jup.ag/swap/v1/quote
{
  "inputMint": "<string>",
  "inAmount": "<string>",
  "outputMint": "<string>",
  "outAmount": "<string>",
  "otherAmountThreshold": "<string>",
  "swapMode": "ExactIn",
  "slippageBps": 1,
  "platformFee": {
    "amount": "<string>",
    "feeBps": 123
  },
  "priceImpactPct": "<string>",
  "routePlan": [
    {
      "swapInfo": {
        "ammKey": "<string>",
        "label": "<string>",
        "inputMint": "<string>",
        "outputMint": "<string>",
        "inAmount": "<string>",
        "outAmount": "<string>",
        "feeAmount": "<string>",
        "feeMint": "<string>"
      },
      "percent": 123,
      "bps": 123
    }
  ],
  "contextSlot": 123,
  "timeTaken": 123
}

Query Parameters

inputMint
string
required
outputMint
string
required
amount
integer
required
slippageBps
integer
default:50
swapMode
enum<string>
default:ExactIn
Available options:
ExactIn,
ExactOut
dexes
string[]
excludeDexes
string[]
restrictIntermediateTokens
boolean
default:true
onlyDirectRoutes
boolean
default:false
asLegacyTransaction
boolean
default:false
platformFeeBps
integer
maxAccounts
integer
default:64
instructionVersion
enum<string>
default:V1
Available options:
V1,
V2
dynamicSlippage
boolean
default:false

Response

200 - application/json
inputMint
string
required
inAmount
string
required
outputMint
string
required
outAmount
string
required
otherAmountThreshold
string
required
swapMode
enum<string>
required
Available options:
ExactIn,
ExactOut
slippageBps
integer
required
Required range: x >= 0
priceImpactPct
string
required
routePlan
object[]
required
platformFee
object
contextSlot
integer
timeTaken
number