Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Jupiter Swap API

Quote and build Solana DEX-aggregator swap transactions.

Jupiter Swap API is one of 11 APIs that Jupiter publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Swap. The published artifact set on APIs.io includes an OpenAPI specification.

This API exposes 2 operations across 2 paths, and defines 3 schemas. It is described by OpenAPI 3.1.0, at version 1.0.

Requests are made against 2 base URLs: https://api.jup.ag/swap/v1, https://lite-api.jup.ag/swap/v1.

2 operations 2 paths 3 schemas 1 GET1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1.0
Base URL
https://api.jup.ag/swap
Authentication
API Key
Resource Areas
1

Authentication & Security 1

Jupiter Swap API declares 1 security scheme for authenticating requests. An API key is passed in the header as x-api-key (ApiKeyAuth). By default, every request must be authenticated, though some operations may also be called without credentials.

  • ApiKeyAuth — Jupiter API key issued via the Jupiter Developer Platform.

Paths & Operations 2

Across 2 paths, the API surfaces 2 operations — 1 GET, 1 POST. Each is listed below with its method, path, parameters, and response codes.

Swap 2

Quote and build Solana DEX-aggregator swap transactions.

GET
/quote
Get a swap quote
getQuote 9 params → 200
POST
/swap
Build a swap transaction
postSwap body → 200

Schemas 3

The contract defines 3 schemas that model the data the API accepts and returns. The most detailed are QuoteResponse (9 properties), SwapResponse (6 properties), SwapRequest (5 properties). Each schema is shown below with its type and property counts.

SwapRequest
object
5 properties 2 required
SwapResponse
object
6 properties
QuoteResponse
object
9 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

jupiter-ag-swap-api-openapi.yml Raw ↑

Other APIs Jupiter publishes across the network.

Jupiter Swap API
Jupiter Tokens API
Jupiter Price API
Jupiter Trigger API (Limit Orders)
Jupiter Recurring API (DCA)
Jupiter Perps API
Jupiter Lend API
Jupiter Prediction API
Jupiter Lite API
Jupiter Terminal