Jupiter Swap V2 Quote API
Get Jupiter Swap V2 Quote data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Jupiter, pass parameters such as amount, inputMint, outputMint, and retrieve structured data including input token mint, output token mint, quoted routing records, transaction, and quote request reference for swap preview, and wallet integration.
- Selected price
- $0 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- 0Selected implementation · last 30 days
- Success rate · 30d
- —No requests in this period
Jupiter Swap V2 Quote API
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- API
- Pricing
On this page
Overview
Jupiter Swap V2 Quote API
Provide inputMint, outputMint and amount as query strings. The selected implementation supports ExactIn. Without taker, the response contains a quote without a transaction; providing a taker can request transaction context. Read outAmount, routePlan, slippage and fee fields with their own units rather than treating a quote as execution.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | query: inputMint, outputMint, amount, taker, receiver, swapMode, slippageBps, referralAccount, referralFee, payer, priorityFeeLamports, jitoTipLamports, broadcastFeeType, excludeRouters, excludeDexes, maxSupportedTransactionVersion |
| Selected implementation | jupiter · Jupiter — Swap API V2 — Get a swap quote |
| Billing | Per call; check the selected implementation pricing and charge conditions |
What You Can Build
- Swap preview: Show quoted input, output and routing context.
- Wallet integration: Separate quote retrieval from signed execution.
Documented Response Fields
| Field | Meaning |
|---|---|
inputMint |
Input token mint |
outputMint |
Output token mint |
inAmount |
Input amount in token base units |
outAmount |
Quoted output amount in token base units |
routePlan |
Quoted routing records |
slippageBps |
Slippage tolerance in basis points |
transaction |
Transaction payload when available, otherwise null |
requestId |
Quote request reference |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the supported inputs and set any required query value shown in the template.
- Check the HTTP response and business result before reading optional fields.
curl --request GET --get \
"https://api.openany.si/v1/agent-apis/jupiter/swap/v2/order" \
-H "Authorization: Bearer ${OPENANY_API_KEY}" \
-H 'Content-Type: application/json' \
--data-urlencode amount=10000000 \
--data-urlencode inputMint=So11111111111111111111111111111111111111112 \
--data-urlencode outputMint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
Request and Response Examples
The saved response is a published documentation example. Its values may be historical; the request is an independent calling template. Use current returned identifiers and optional fields for your chosen resource.
Published Jupiter Swap V2 Quote API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
jupiterCurrent Jupiter — Swap API V2 — Get a swap quote · GET · View API reference | $0 / call | 0 | —successP50— |
- Unit price
- $0
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.
Total $0
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/jupiter/swap/v2/order- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
inputMint | URL query parametersquery | string | Yes | The mint address of the input token |
outputMint | URL query parametersquery | string | Yes | The mint address of the output token |
amount | URL query parametersquery | string | Yes | The amount to swap in the smallest unit of the input token |
taker | URL query parametersquery | string | No | - The public key of the wallet that will sign the transaction - If not provided, the response will contain a quote but no transaction - Must be present if you intend to sign and execute the transaction via `/execute` |
receiver | URL query parametersquery | string | No | - The public key of the account that will receive the output tokens - Must differ from `taker` - Expects a wallet address, not a token account - For non-SOL output: tokens are sent to the receiver's associated token account (ATA). If the ATA is not initialised, a create ATA instruction is added to the transaction - For SOL output: native SOL is transferred directly to the receiver - Does not support destination wSOL token accounts - Disables Dflow and OKX routing. Metis and JupiterZ RFQ still compete |
swapMode | URL query parametersquery | string | No | - Swap mode. Currently only `ExactIn` is supported. enum: "ExactIn" |
slippageBps | URL query parametersquery | integer | No | - Slippage tolerance in basis points (0-10000) - If not set, Jupiter automatically determines an appropriate slippage minimum: 0 · maximum: 10000 |
referralAccount | URL query parametersquery | string | No | - Address of your referral account for the Jupiter referral project - Must be used together with `referralFee` - See the [Referral Program](/tool-kits/referral-program) for setup |
referralFee | URL query parametersquery | number | No | - Referral fee in basis points (50-255) - Must be used together with `referralAccount` minimum: 50 · maximum: 255 |
payer | URL query parametersquery | string | No | - The public key of an account that will cover gas-related fees (signature fees, priority fees, and rent) on behalf of the taker - Has no effect when set equal to `taker`. Must be a different wallet to activate integrator-sponsored gas - Disables Dflow and OKX routing. Metis and JupiterZ RFQ still compete - On JupiterZ routes the market maker pays signature and priority fees, and `payer` only pays rent for the output token accounts the transaction creates. When the output is native SOL there are none, so `payer` is not a signer - Sign with `payer` only if it is a required signer of the returned transaction |
priorityFeeLamports | URL query parametersquery | number | No | - Priority fee in lamports - If not set, Jupiter automatically determines an appropriate priority fee - Setting this overrides the automatic optimisation |
jitoTipLamports | URL query parametersquery | number | No | - Jito MEV tip in lamports for faster block inclusion |
broadcastFeeType | URL query parametersquery | string | No | - Fee cap strategy: `maxCap` treats the fee as a maximum, `exactFee` uses the exact amount - Ignored if neither `priorityFeeLamports` nor `jitoTipLamports` are set enum: "maxCap", "exactFee" |
excludeRouters | URL query parametersquery | string | No | - Comma-separated list of routers to exclude - Available routers: `metis`, `jupiterz`, `dflow`, `okx` |
excludeDexes | URL query parametersquery | string | No | - Comma-separated list of DEXes to exclude from the Metis router - **Important**: This only affects the Metis router, not other routers - For example: `excludeDexes=Raydium,Orca+V2,Meteora+DLMM` - Labels are case sensitive (`SolFi`, not `solfi`). Full list of DEXes here using the `/program-id-to-label` endpoint. - On `/order` only `excludeDexes` is honoured, not `dexes`. Use `/build` to restrict routing to specific DEXes. |
maxSupportedTransactionVersion | URL query parametersquery | string | No | - The highest Solana transaction version your client can accept, `"0"` or `"1"`. Defaults to `"0"`. - This is a ceiling, not a force. You get v1 only when Metis wins the route and the order is not gasless; other routers and gasless orders (including automatic sponsorship for low-SOL takers) return v0. Wider v1 support is in progress. - Read the response `transactionVersion` to see the version you got. v1 transactions must be deserialized and signed with a v1-capable SDK (`@solana/kit` v8 or later). enum: "0", "1" |
Required markers inside a nested object or variant apply when that object or variant is used.
Response structure
feeBpsintegerfeeMintstringgaslessbooleanguaranteedPricebooleaninAmountstringinUsdValuenumberinputMintstringjitOptimizedbooleanmodestringotherAmountThresholdstringoutAmountstringoutUsdValuenumberoutputMintstringplatformFeeobjectfeeBpsintegerfeeMintstring
priceImpactnumberpriceImpactPctstringprioritizationFeeLamportsintegerprioritizationFeePayernullrentFeeLamportsintegerrentFeePayernullrequestIdstringroutePlanobject[]bpsintegerpercentintegerswapInfoobjectammKeystringinAmountstringinputMintstringlabelstringoutAmountstringoutputMintstring
usdValuenumber
routerstringsignatureFeeLamportsintegersignatureFeePayernullslippageBpsintegerswapModestringswapTypestringswapUsdValuenumbertakernulltotalTimeintegertransactionnull
Agent integration
Copy the resource contract without sharing an API key.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Documentation example
Published documentation example. Verify the actual response after an approved call.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 16
Review these request fields before running. Keep the published provider and request method unchanged.
inputMint- The mint address of the input token
outputMint- The mint address of the output token
amount- The amount to swap in the smallest unit of the input token
taker- - The public key of the wallet that will sign the transaction - If not provided, the response will contain a quote but no transaction - Must be present if you intend to sign and execute the transaction via `/execute`
receiver- - The public key of the account that will receive the output tokens - Must differ from `taker` - Expects a wallet address, not a token account - For non-SOL output: tokens are sent to the receiver's associated token account (ATA). If the ATA is not initialised, a create ATA instruction is added to the transaction - For SOL output: native SOL is transferred directly to the receiver - Does not support destination wSOL token accounts - Disables Dflow and OKX routing. Metis and JupiterZ RFQ still compete
swapMode- - Swap mode. Currently only `ExactIn` is supported.
slippageBps- - Slippage tolerance in basis points (0-10000) - If not set, Jupiter automatically determines an appropriate slippage
referralAccount- - Address of your referral account for the Jupiter referral project - Must be used together with `referralFee` - See the [Referral Program](/tool-kits/referral-program) for setup
referralFee- - Referral fee in basis points (50-255) - Must be used together with `referralAccount`
payer- - The public key of an account that will cover gas-related fees (signature fees, priority fees, and rent) on behalf of the taker - Has no effect when set equal to `taker`. Must be a different wallet to activate integrator-sponsored gas - Disables Dflow and OKX routing. Metis and JupiterZ RFQ still compete - On JupiterZ routes the market maker pays signature and priority fees, and `payer` only pays rent for the output token accounts the transaction creates. When the output is native SOL there are none, so `payer` is not a signer - Sign with `payer` only if it is a required signer of the returned transaction
priorityFeeLamports- - Priority fee in lamports - If not set, Jupiter automatically determines an appropriate priority fee - Setting this overrides the automatic optimisation
jitoTipLamports- - Jito MEV tip in lamports for faster block inclusion
broadcastFeeType- - Fee cap strategy: `maxCap` treats the fee as a maximum, `exactFee` uses the exact amount - Ignored if neither `priorityFeeLamports` nor `jitoTipLamports` are set
excludeRouters- - Comma-separated list of routers to exclude - Available routers: `metis`, `jupiterz`, `dflow`, `okx`
excludeDexes- - Comma-separated list of DEXes to exclude from the Metis router - **Important**: This only affects the Metis router, not other routers - For example: `excludeDexes=Raydium,Orca+V2,Meteora+DLMM` - Labels are case sensitive (`SolFi`, not `solfi`). Full list of DEXes here using the `/program-id-to-label` endpoint. - On `/order` only `excludeDexes` is honoured, not `dexes`. Use `/build` to restrict routing to specific DEXes.
maxSupportedTransactionVersion- - The highest Solana transaction version your client can accept, `"0"` or `"1"`. Defaults to `"0"`. - This is a ceiling, not a force. You get v1 only when Metis wins the route and the order is not gasless; other routers and gasless orders (including automatic sponsorship for low-SOL takers) return v0. Wider v1 support is in progress. - Read the response `transactionVersion` to see the version you got. v1 transactions must be deserialized and signed with a v1-capable SDK (`@solana/kit` v8 or later).
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/jupiter/swap/v2/order?amount=10000000&inputMint=So11111111111111111111111111111111111111112&outputMint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "feeBps": 2, "feeMint": "So11111111111111111111111111111111111111112", "gasless": false, "guaranteedPrice": false, "inAmount": "10000000", "inUsdValue": 0.9787736369730227, "inputMint": "So11111111111111111111111111111111111111112", "jitOptimized": false, "mode": "ultra", "otherAmountThreshold": "979505", "outAmount": "979505", "outUsdValue": 0.978802141647989, "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "platformFee": { "feeBps": 2, "feeMint": "So11111111111111111111111111111111111111112" }, "priceImpact": 0.002912284709102304, "priceImpactPct": "0.000029122847091023042", "prioritizationFeeLamports": 0, "prioritizationFeePayer": null, "rentFeeLamports": 0, "rentFeePayer": null, "requestId": "01a18b73-ff83-77ca-ad88-be39d1b45085", "routePlan": [ { "bps": 10000, "percent": 100, "swapInfo": { "ammKey": "7DyH4hFA9KY2Uf3ZC2fUGP9ATsLqAEq3pUpyJPA2Mjft", "inAmount": "10000000", "inputMint": "So11111111111111111111111111111111111111112", "label": "ZeroFi", "outAmount": "979700", "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" }, "usdValue": 0.978802141647989 } ], "router": "metis", "signatureFeeLamports": 0, "signatureFeePayer": null, "slippageBps": 0, "swapMode": "ExactIn", "swapType": "aggregator", "swapUsdValue": 0.978802141647989, "taker": null, "totalTime": 208, "transaction": null }