Skip to main content
The Swap API unifies Jupiter’s swap capabilities into a single entry point at https://api.jup.ag/swap/v2. Two paths cover every use case: a default happy path for the best swap experience, and an advanced path for full transaction control.

Order & Execute

The default path. Get a fully assembled transaction with the best price across all routers, sign it, and send it to /execute for managed landing.

Build Custom Transactions

The advanced path. Get raw swap instructions to build your own transaction. Add custom instructions, CPI, or modify the transaction however you need.

Choosing a path

/order + /execute/build
ReturnsAssembled transactionRaw swap instructions
RoutersAll (Metis, RFQ, Dflow, OKX)Metis only
Best forMost integrations. Best price, simplest flow.Custom transactions, CPI, composability.
ExecutionManaged via /execute (optimised slippage, priority fees, accelerated landing)Self-managed via your own RPC
Swap feesYes (Jupiter platform fee)No
Integrator feesReferral fees (referralAccount + referralFee)Platform fee only (platformFeeBps) or DIY
GaslessAutomatic gasless, or your own payerUse your own payer
Transaction modificationNoFull control
Start with /order. It gives you the best price because all routers compete, including RFQ market makers who often beat onchain routing by 5-20bps on major pairs. Only use /build if you need to modify the transaction.
Adding optional parameters to /order (such as fee or slippage overrides) may restrict routing. See Routing for details.

Endpoints

EndpointMethodDescription
/orderGETGet a quote and assembled transaction
/buildGETGet a quote and raw swap instructions
/executePOSTExecute a signed /order transaction
Base URL: https://api.jup.ag/swap/v2 All endpoints require an API key via the x-api-key header. Get one at portal.jup.ag.