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

# List pools (pairs)

> List on-chain pools indexed by Dexploit. **Response shape varies with input:**

- **No `token_address`** (or only `protocol`): `data` is a flat array of `pair_address` strings — the cheapest way to enumerate pools.
- **With `token_address`** (or `token_addresses`): `data` is an array of `Pair` objects with `protocol` and `recent_volume_sol`, sorted by recent SOL volume — the discovery path for the `pair_address` you'll pass to candle and swap endpoints.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/pairs
openapi: 3.1.0
info:
  title: Dexploit API
  version: 1.0.0
  description: Real-time and historical Solana DEX swap and OHLCV data.
servers:
  - url: https://api.dexploit.dev
    description: Production
security:
  - ApiKeyHeader: []
  - BearerAuth: []
  - ApiKeyQuery: []
paths:
  /api/v1/pairs:
    get:
      tags:
        - Pairs
      summary: List pools (pairs)
      description: >-
        List on-chain pools indexed by Dexploit. **Response shape varies with
        input:**


        - **No `token_address`** (or only `protocol`): `data` is a flat array of
        `pair_address` strings — the cheapest way to enumerate pools.

        - **With `token_address`** (or `token_addresses`): `data` is an array of
        `Pair` objects with `protocol` and `recent_volume_sol`, sorted by recent
        SOL volume — the discovery path for the `pair_address` you'll pass to
        candle and swap endpoints.
      operationId: listPairs
      parameters:
        - name: token_address
          in: query
          required: false
          schema:
            type: string
          description: >-
            Token mint to find pools for. When set, the response is sorted by
            recent SOL volume.
        - name: token_addresses
          in: query
          required: false
          schema:
            type: string
          description: >-
            Comma-separated list of token mints (max 200). Same enriched
            response as `token_address`.
        - name: protocol
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/Protocol'
          description: DEX protocol to filter by.
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            default: 50
            minimum: 1
            maximum: 500
      responses:
        '200':
          description: >-
            List of pools. Shape depends on whether
            `token_address`/`token_addresses` was supplied (see endpoint
            description).
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    oneOf:
                      - type: object
                        description: When no `token_address` is given.
                        properties:
                          pairs:
                            type: array
                            items:
                              type: string
                            description: Array of `pair_address` strings.
                      - type: array
                        description: When `token_address` or `token_addresses` is given.
                        items:
                          $ref: '#/components/schemas/Pair'
                  error:
                    type:
                      - object
                      - 'null'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Quota or rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
components:
  schemas:
    Protocol:
      type: string
      description: Canonical lowercase snake_case DEX name.
      enum:
        - pumpfun
        - pumpswap
        - raydium_amm
        - raydium_clmm
        - raydium_cpmm
        - orca
        - meteora_damm_v2
        - meteora_dbc
        - meteora_dlmm
        - meteora_pools
    Pair:
      type: object
      properties:
        pair_address:
          type: string
          description: On-chain pool/LP account address
        protocol:
          $ref: '#/components/schemas/Protocol'
        recent_volume_sol:
          type: number
          description: >-
            Volume in **decimal SOL** over a recent rolling window — already
            divided by 1e9. NOTE: unlike the candle `volume_sol` field (which is
            **lamports** despite the same suffix), this `/pairs` field is real
            SOL — do **not** divide by 1e9 again.
    ErrorEnvelope:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              example: INVALID_PARAM
            message:
              type: string
              example: >-
                use pair_address; see /api/v1/pairs?token_address=X to discover
                pools
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Preferred for swaps-api endpoints (`/swaps/*`, `/stats/*`, `/trending`,
        `/pool-events`).
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Required by the OHLCV endpoints (`/api/v1/*`) and accepted by every
        other endpoint. Send `Authorization: Bearer ohlcv_live_sk_<your_key>`.
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key
      description: >-
        Browser-friendly alternative to the Bearer header — accepted by every
        endpoint and required for WebSocket from the browser.

````