> ## Documentation Index
> Fetch the complete documentation index at: https://docs.solanatracker.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get swap quote

> Get the best swap quote across all supported DEXes with optimal routing



## OpenAPI

````yaml /raptor/http/openapi.json get /quote
openapi: 3.0.3
info:
  title: Raptor DEX Aggregator API
  description: >-
    Solana DEX aggregation API for quotes, swap transactions, transaction
    sending, and WebSocket quote streams.
  version: 1.0.0
  contact:
    name: Raptor API Support
servers:
  - url: https://raptor-beta.solanatracker.io
    description: Beta server endpoint
security: []
paths:
  /quote:
    get:
      summary: Get swap quote
      description: Get the best swap quote across all supported DEXes with optimal routing
      parameters:
        - name: inputMint
          in: query
          required: true
          schema:
            type: string
            description: Input token mint address
          example: So11111111111111111111111111111112
        - name: outputMint
          in: query
          required: true
          schema:
            type: string
            description: Output token mint address
          example: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
        - name: amount
          in: query
          required: true
          schema:
            type: integer
            description: Input amount in lamports
            minimum: 1
          example: 1000000000
        - name: slippageBps
          in: query
          required: false
          schema:
            type: string
            description: Slippage in basis points or 'dynamic'
            default: '50'
          example: '50'
        - name: dexes
          in: query
          required: false
          schema:
            type: string
            description: Comma-separated list of DEXes to include
          example: raydium,meteora,pumpfun
        - name: pools
          in: query
          required: false
          schema:
            type: string
            description: Comma-separated list of specific pool addresses
        - name: maxHops
          in: query
          required: false
          schema:
            type: integer
            description: Maximum routing hops
            minimum: 1
            maximum: 4
            default: 4
        - name: feeBps
          in: query
          required: false
          schema:
            type: integer
            description: Platform fee in basis points
            minimum: 0
            maximum: 1000
            default: 0
        - name: feeFromInput
          in: query
          required: false
          schema:
            type: boolean
            description: Take fee from input amount
            default: false
        - name: chargeBps
          in: query
          required: false
          schema:
            type: integer
            description: Extra charge on positive slippage
            minimum: 0
            default: 0
        - name: feeAccount
          in: query
          required: false
          schema:
            type: string
            description: Fee recipient wallet address
      responses:
        '200':
          description: Successful quote response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QuoteResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Service unavailable (still indexing)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    QuoteResponse:
      type: object
      required:
        - inputMint
        - outputMint
        - amountIn
        - amountOut
        - minAmountOut
        - feeAmount
        - priceImpact
        - slippageBps
        - routePlan
        - contextSlot
        - timeTaken
      properties:
        inputMint:
          type: string
          description: Input token mint address
        outputMint:
          type: string
          description: Output token mint address
        amountIn:
          type: string
          description: Input amount in lamports
        amountOut:
          type: string
          description: Expected output amount in lamports
        minAmountOut:
          type: string
          description: Minimum output amount after slippage
        feeAmount:
          type: string
          description: Total fees paid in lamports
        priceImpact:
          type: number
          description: Price impact percentage
        slippageBps:
          type: integer
          description: Slippage used in basis points
        routePlan:
          type: array
          items:
            $ref: '#/components/schemas/RouteStep'
          description: Array of routing steps
        swapUsdValue:
          type: string
          description: USD value of the input amount
        priorityFee:
          $ref: '#/components/schemas/PriorityFeeInfo'
        platformFee:
          $ref: '#/components/schemas/PlatformFeeConfig'
        contextSlot:
          type: integer
          description: Solana slot when quote was generated
        timeTaken:
          type: number
          description: Time taken to generate quote in seconds
    ErrorResponse:
      type: object
      required:
        - error
        - code
      properties:
        error:
          type: string
          description: Error message
        code:
          type: integer
          description: HTTP status code
    RouteStep:
      type: object
      required:
        - programId
        - dex
        - pool
        - inputMint
        - outputMint
        - amountIn
        - amountOut
        - feeAmount
        - priceImpact
      properties:
        programId:
          type: string
          description: DEX program ID
        dex:
          type: string
          description: DEX name
        pool:
          type: string
          description: Pool address
        inputMint:
          type: string
          description: Step input mint
        outputMint:
          type: string
          description: Step output mint
        amountIn:
          type: string
          description: Step input amount
        amountOut:
          type: string
          description: Step output amount
        feeAmount:
          type: string
          description: Step fees
        priceImpact:
          type: number
          description: Step price impact
        percent:
          type: integer
          description: Percentage of total input
    PriorityFeeInfo:
      type: object
      required:
        - recommended
        - level
      properties:
        recommended:
          type: integer
          description: Recommended priority fee in microlamports
        level:
          type: string
          description: Priority level used
        levels:
          $ref: '#/components/schemas/PriorityFeeLevels'
    PlatformFeeConfig:
      type: object
      required:
        - feeBps
        - feeAccount
      properties:
        feeBps:
          type: integer
          description: Fee in basis points
        feeAccount:
          type: string
          description: Fee recipient address
    PriorityFeeLevels:
      type: object
      properties:
        min:
          type: integer
          description: Minimum priority fee
        low:
          type: integer
          description: Low priority fee
        medium:
          type: integer
          description: Medium priority fee
        high:
          type: integer
          description: High priority fee
        veryHigh:
          type: integer
          description: Very high priority fee
        unsafeMax:
          type: integer
          description: Maximum priority fee

````