# Jupiter — Swap API V2 — Get a swap quote

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.

Documentation: https://openany.si/market/apis/jupiter/jupiter-swap-api-v2-get-a-swap-quote/?offering=446ab3be-6939-4314-8878-f456a6434c12
API ID: 446ab3be-6939-4314-8878-f456a6434c12
Provider: jupiter
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/jupiter/swap/v2/order
Page update time: 2026-12-03T02:49:39.448Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:49:38.787Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Jupiter — Swap API V2 — Get a swap quote request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "inputMint": {
          "type": "string",
          "description": "The mint address of the input token"
        },
        "outputMint": {
          "type": "string",
          "description": "The mint address of the output token"
        },
        "amount": {
          "type": "string",
          "description": "The amount to swap in the smallest unit of the input token"
        },
        "taker": {
          "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`"
        },
        "receiver": {
          "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"
        },
        "swapMode": {
          "type": "string",
          "description": "- Swap mode. Currently only `ExactIn` is supported.",
          "enum": [
            "ExactIn"
          ]
        },
        "slippageBps": {
          "type": "integer",
          "description": "- Slippage tolerance in basis points (0-10000)\n- If not set, Jupiter automatically determines an appropriate slippage",
          "minimum": 0,
          "maximum": 10000
        },
        "referralAccount": {
          "type": "string",
          "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"
        },
        "referralFee": {
          "type": "number",
          "description": "- Referral fee in basis points (50-255)\n- Must be used together with `referralAccount`",
          "minimum": 50,
          "maximum": 255
        },
        "payer": {
          "type": "string",
          "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"
        },
        "priorityFeeLamports": {
          "type": "number",
          "description": "- Priority fee in lamports\n- If not set, Jupiter automatically determines an appropriate priority fee\n- Setting this overrides the automatic optimisation"
        },
        "jitoTipLamports": {
          "type": "number",
          "description": "- Jito MEV tip in lamports for faster block inclusion"
        },
        "broadcastFeeType": {
          "type": "string",
          "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": [
            "maxCap",
            "exactFee"
          ]
        },
        "excludeRouters": {
          "type": "string",
          "description": "- Comma-separated list of routers to exclude\n- Available routers: `metis`, `jupiterz`, `dflow`, `okx`"
        },
        "excludeDexes": {
          "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."
        },
        "maxSupportedTransactionVersion": {
          "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": [
            "0",
            "1"
          ]
        }
      },
      "required": [
        "inputMint",
        "outputMint",
        "amount"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "feeBps": {
      "type": "integer"
    },
    "feeMint": {
      "type": "string"
    },
    "gasless": {
      "type": "boolean"
    },
    "guaranteedPrice": {
      "type": "boolean"
    },
    "inAmount": {
      "type": "string"
    },
    "inUsdValue": {
      "type": "number"
    },
    "inputMint": {
      "type": "string"
    },
    "jitOptimized": {
      "type": "boolean"
    },
    "mode": {
      "type": "string"
    },
    "otherAmountThreshold": {
      "type": "string"
    },
    "outAmount": {
      "type": "string"
    },
    "outUsdValue": {
      "type": "number"
    },
    "outputMint": {
      "type": "string"
    },
    "platformFee": {
      "type": "object",
      "properties": {
        "feeBps": {
          "type": "integer"
        },
        "feeMint": {
          "type": "string"
        }
      }
    },
    "priceImpact": {
      "type": "number"
    },
    "priceImpactPct": {
      "type": "string"
    },
    "prioritizationFeeLamports": {
      "type": "integer"
    },
    "prioritizationFeePayer": {
      "type": "null"
    },
    "rentFeeLamports": {
      "type": "integer"
    },
    "rentFeePayer": {
      "type": "null"
    },
    "requestId": {
      "type": "string"
    },
    "routePlan": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "bps": {
            "type": "integer"
          },
          "percent": {
            "type": "integer"
          },
          "swapInfo": {
            "type": "object",
            "properties": {
              "ammKey": {
                "type": "string"
              },
              "inAmount": {
                "type": "string"
              },
              "inputMint": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "outAmount": {
                "type": "string"
              },
              "outputMint": {
                "type": "string"
              }
            }
          },
          "usdValue": {
            "type": "number"
          }
        }
      }
    },
    "router": {
      "type": "string"
    },
    "signatureFeeLamports": {
      "type": "integer"
    },
    "signatureFeePayer": {
      "type": "null"
    },
    "slippageBps": {
      "type": "integer"
    },
    "swapMode": {
      "type": "string"
    },
    "swapType": {
      "type": "string"
    },
    "swapUsdValue": {
      "type": "number"
    },
    "taker": {
      "type": "null"
    },
    "totalTime": {
      "type": "integer"
    },
    "transaction": {
      "type": "null"
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  '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'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "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
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- jupiter: https://openany.si/market/apis/jupiter/jupiter-swap-api-v2-get-a-swap-quote/?offering=446ab3be-6939-4314-8878-f456a6434c12

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
