{"data":{"billing":{"currency":"USD","mode":"fixed","priceMicroUsd":"0","rounding":null,"unit":"call","unitQuantity":null},"capabilityId":"4d536845-810e-430f-b056-c4d3c83262fb","catalogType":"api","categories":["crypto-defi"],"dataPlatform":"jupiter","dataPlatformLogoUrl":"https://developers.jup.ag/docs/_mintlify/favicons/jupiter/VhCnOYl5khz0IKiZ/_generated/favicon/android-chrome-192x192.png","dataPlatformTranslations":{"ar":"Jupiter","ja":"Jupiter","zh":"Jupiter"},"dataProduct":"swap-v2","description":"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.","descriptionTranslations":{"ar":"احصل على عرض Jupiter Swap V2 بعنواني سك الإدخال والإخراج ومبلغ بالوحدات الأساسية، وقارن المسار والمخرجات المقدرة قبل تنفيذ يوقع منفصلا. استخدم الحمولة في شاشات مراجعة المحفظة أو أدوات تجميع المعاملات، مع توضيح وحدات الرموز ومتطلبات التوقيع، وراجع أمثلة الطلبات والمدخلات المدعومة وتسعير التنفيذ المحدد في صفحة التفاصيل.","ja":"入出力ミントと最小単位の数量から Jupiter Swap V2 の見積もりを取得し、ルートや推定出力量を、別途署名して実行する前のプレビューに利用できます。 返されたペイロードをウォレット確認画面や取引の組み立てに利用し、トークンの単位と署名要件を保持できます。詳細ページにはリクエスト例、対応入力、選択した実装の料金が掲載されています。","zh":"提供输入与输出代币铸币地址及最小单位数量，获取 Jupiter Swap V2 报价，结合路由和预计输出信息进行兑换预览，交易需另行签名执行。 可将返回内容用于钱包审核界面或交易组装工具，明确保留代币单位和签名要求；详情页提供请求示例、支持的输入及所选实现的价格。"},"effectContentHtml":"","executionMode":"sync","id":"446ab3be-6939-4314-8878-f456a6434c12","includedContentHtml":"","inputs":[{"description":"The mint address of the input token","location":"query","name":"inputMint","nullable":false,"required":true,"type":"string"},{"description":"The mint address of the output token","location":"query","name":"outputMint","nullable":false,"required":true,"type":"string"},{"description":"The amount to swap in the smallest unit of the input token","location":"query","name":"amount","nullable":false,"required":true,"type":"string"},{"description":"- The public key of the wallet that will sign the transaction\n- If not provided, the response will contain a quote but no transaction\n- Must be present if you intend to sign and execute the transaction via `/execute`","location":"query","name":"taker","nullable":false,"required":false,"type":"string"},{"description":"- The public key of the account that will receive the output tokens\n- Must differ from `taker`\n- Expects a wallet address, not a token account\n- 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\n- For SOL output: native SOL is transferred directly to the receiver\n- Does not support destination wSOL token accounts\n- Disables Dflow and OKX routing. Metis and JupiterZ RFQ still compete","location":"query","name":"receiver","nullable":false,"required":false,"type":"string"},{"description":"- Swap mode. Currently only `ExactIn` is supported.","enum_values":["ExactIn"],"location":"query","name":"swapMode","nullable":false,"required":false,"type":"string"},{"description":"- Slippage tolerance in basis points (0-10000)\n- If not set, Jupiter automatically determines an appropriate slippage","location":"query","maximum":"10000","minimum":"0","name":"slippageBps","nullable":false,"required":false,"type":"integer"},{"description":"- Address of your referral account for the Jupiter referral project\n- Must be used together with `referralFee`\n- See the [Referral Program](/tool-kits/referral-program) for setup","location":"query","name":"referralAccount","nullable":false,"required":false,"type":"string"},{"description":"- Referral fee in basis points (50-255)\n- Must be used together with `referralAccount`","location":"query","maximum":"255","minimum":"50","name":"referralFee","nullable":false,"required":false,"type":"number"},{"description":"- The public key of an account that will cover gas-related fees (signature fees, priority fees, and rent) on behalf of the taker\n- Has no effect when set equal to `taker`. Must be a different wallet to activate integrator-sponsored gas\n- Disables Dflow and OKX routing. Metis and JupiterZ RFQ still compete\n- 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\n- Sign with `payer` only if it is a required signer of the returned transaction","location":"query","name":"payer","nullable":false,"required":false,"type":"string"},{"description":"- Priority fee in lamports\n- If not set, Jupiter automatically determines an appropriate priority fee\n- Setting this overrides the automatic optimisation","location":"query","name":"priorityFeeLamports","nullable":false,"required":false,"type":"number"},{"description":"- Jito MEV tip in lamports for faster block inclusion","location":"query","name":"jitoTipLamports","nullable":false,"required":false,"type":"number"},{"description":"- Fee cap strategy: `maxCap` treats the fee as a maximum, `exactFee` uses the exact amount\n- Ignored if neither `priorityFeeLamports` nor `jitoTipLamports` are set","enum_values":["maxCap","exactFee"],"location":"query","name":"broadcastFeeType","nullable":false,"required":false,"type":"string"},{"description":"- Comma-separated list of routers to exclude\n- Available routers: `metis`, `jupiterz`, `dflow`, `okx`","location":"query","name":"excludeRouters","nullable":false,"required":false,"type":"string"},{"description":"- Comma-separated list of DEXes to exclude from the Metis router\n- **Important**: This only affects the Metis router, not other routers\n- For example: `excludeDexes=Raydium,Orca+V2,Meteora+DLMM`\n- Labels are case sensitive (`SolFi`, not `solfi`). Full list of DEXes here using the `/program-id-to-label` endpoint.\n- On `/order` only `excludeDexes` is honoured, not `dexes`. Use `/build` to restrict routing to specific DEXes.","location":"query","name":"excludeDexes","nullable":false,"required":false,"type":"string"},{"description":"- The highest Solana transaction version your client can accept, `\"0\"` or `\"1\"`. Defaults to `\"0\"`.\n- 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.\n- 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_values":["0","1"],"location":"query","name":"maxSupportedTransactionVersion","nullable":false,"required":false,"type":"string"}],"logoUrl":"https://developers.jup.ag/docs/_mintlify/favicons/jupiter/VhCnOYl5khz0IKiZ/_generated/favicon/android-chrome-192x192.png","method":"GET","name":"Jupiter — Swap API V2 — Get a swap quote","nameTranslations":{"ar":"Jupiter — Swap API V2 — الحصول على عرض مقايضة","ja":"Jupiter — Swap API V2 — スワップ見積もりを取得","zh":"Jupiter — Swap API V2 — 获取兑换报价"},"overviewHtml":"\u003ch2\u003eJupiter Swap V2 Quote API\u003c/h2\u003e\n\u003cp\u003eProvide 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.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003equery: inputMint, outputMint, amount, taker, receiver, swapMode, slippageBps, referralAccount, referralFee, payer, priorityFeeLamports, jitoTipLamports, broadcastFeeType, excludeRouters, excludeDexes, maxSupportedTransactionVersion\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003ejupiter · Jupiter — Swap API V2 — Get a swap quote\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003ePer call; check the selected implementation pricing and charge conditions\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eSwap preview\u003c/strong\u003e: Show quoted input, output and routing context.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eWallet integration\u003c/strong\u003e: Separate quote retrieval from signed execution.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eDocumented Response Fields\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003einputMint\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eInput token mint\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eoutputMint\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eOutput token mint\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003einAmount\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eInput amount in token base units\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eoutAmount\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eQuoted output amount in token base units\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eroutePlan\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eQuoted routing records\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eslippageBps\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSlippage tolerance in basis points\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etransaction\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eTransaction payload when available, otherwise null\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003erequestId\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eQuote request reference\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the supported inputs and set any required query value shown in the template.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request GET --get \\\n  \u0026#34;https://api.openany.si/v1/agent-apis/jupiter/swap/v2/order\u0026#34; \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  -H \u0026#39;Content-Type: application/json\u0026#39; \\\n  --data-urlencode amount=10000000 \\\n  --data-urlencode inputMint=So11111111111111111111111111111111111111112 \\\n  --data-urlencode outputMint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe 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.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/446ab3be-6939-4314-8878-f456a6434c12\"\u003ePublished Jupiter Swap V2 Quote API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eDoes a quote without taker include a transaction?\u003c/h3\u003e\n\u003cp\u003eNo. When taker is absent, the documented behavior is a quote without a transaction. Keep null transaction values distinct from executable payloads.\u003c/p\u003e\n\u003ch3\u003eCan I request ExactOut?\u003c/h3\u003e\n\u003cp\u003eNo. This selected contract exposes only ExactIn. amount is a string in the input token smallest unit.\u003c/p\u003e\n\u003ch3\u003eAre slippage, referral fees and OpenAny price the same?\u003c/h3\u003e\n\u003cp\u003eNo. slippageBps and referralFee use basis points; transaction fee fields can use lamports. The OpenAny request price belongs to the selected implementation pricing area.\u003c/p\u003e\n\u003ch3\u003eCan I force DEX routing or a transaction version?\u003c/h3\u003e\n\u003cp\u003eOn this order route, excludeDexes affects Metis routing; it does not expose a dexes inclusion input. maxSupportedTransactionVersion is a string ceiling of 0 or 1, not a guarantee of the returned version.\u003c/p\u003e\n\u003ch3\u003eWhich API key should I use?\u003c/h3\u003e\n\u003cp\u003eUse your OpenAny API key as Bearer authentication on the documented OpenAny route.\u003c/p\u003e\n\u003ch3\u003eWhere can I check the current request price?\u003c/h3\u003e\n\u003cp\u003eCheck the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/jupiter/jupiter-swap-api-v2-prepare-unsigned-build-transaction\"\u003eJupiter — Swap API V2 — Prepare unsigned build Transaction\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/jupiter/jupiter-swap-api-v2-program-id-to-label\"\u003eJupiter — Swap API V2 — Program ID to Label\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/jupiter/jupiter-lend-borrow-prepare-unsigned-build-operate-instructions\"\u003eJupiter — Lend Borrow — Prepare unsigned build operate instructions\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/jupiter/jupiter-swap-api-v2-get-a-swap-quote?offering=446ab3be-6939-4314-8878-f456a6434c12","providerId":"jupiter","publicPath":"/v1/agent-apis/jupiter/swap/v2/order","requestContentType":"none","revision":4,"samples":[{"http_status":200,"name":"Documentation example","request":{"body":null,"headers":{},"path":{},"query":{"amount":"10000000","inputMint":"So11111111111111111111111111111111111111112","outputMint":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}},"response_body":{"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}}],"seoDescription":"Get Jupiter Swap V2 Quote data via REST or MCP powered by Jupiter. Pay per call, no subscription. Get input token mint and output token mint in JSON.","updatedAt":"2026-12-03T02:49:38.787Z","usageInstructionsHtml":""}}