> ## 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.

# Batch stats for many tokens

> Fetch `/stats/token/{mint}` for up to 200 mints in one round-trip. Returned object is keyed by mint.



## OpenAPI

````yaml /api-reference/openapi.json get /stats/tokens
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:
  /stats/tokens:
    get:
      tags:
        - Stats & trends
      summary: Batch stats for many tokens
      description: >-
        Fetch `/stats/token/{mint}` for up to 200 mints in one round-trip.
        Returned object is keyed by mint.
      operationId: getTokenStatsBatch
      parameters:
        - name: mints
          in: query
          required: true
          schema:
            type: string
          description: Comma-separated list of token mints (max 200).
      responses:
        '200':
          description: Map of mint → TokenStats
          content:
            application/json:
              schema:
                type: object
                properties:
                  stats:
                    type: object
                    additionalProperties:
                      $ref: '#/components/schemas/TokenStats'
        '400':
          description: Missing `mints` or too many
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
components:
  schemas:
    TokenStats:
      type: object
      description: Lifetime stats for a token mint across every indexed pool.
      properties:
        total_swaps:
          type: integer
        total_buys:
          type: integer
        total_sells:
          type: integer
        total_sol_volume:
          type: number
        unique_traders:
          type: integer
        buy_sell_ratio:
          type: number
          description: '`total_buys / total_sells`.'
    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.

````