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

# Get user activity

> Returns a paginated list of merge, split, and redeem activity for a specific user. Supports filtering by market and date range.



## OpenAPI

````yaml GET /v1/api/profile/activity
openapi: 3.1.0
info:
  title: Dot Prediction API
  description: >-
    A unified API for accessing prediction market data across Kalshi,
    Polymarket, and Limitless.
  version: 1.0.0
servers:
  - url: https://api.dotprediction.io
security:
  - apiKey: []
paths:
  /v1/api/profile/activity:
    get:
      tags:
        - Profiles
      summary: Get user activity
      description: >-
        Returns a paginated list of merge, split, and redeem activity for a
        specific user. Supports filtering by market and date range.
      operationId: getUserActivity
      parameters:
        - name: provider
          in: query
          required: true
          description: The prediction market platform.
          schema:
            type: string
            enum:
              - kalshi
              - polymarket
        - name: user
          in: query
          required: true
          description: The user identifier on the platform (username or address).
          schema:
            type: string
        - name: market_id
          in: query
          required: false
          description: Filter activity by market ID.
          schema:
            type: string
        - name: start_time
          in: query
          required: false
          description: Start timestamp (Unix epoch) for filtering activity.
          schema:
            type: integer
            format: int64
        - name: end_time
          in: query
          required: false
          description: End timestamp (Unix epoch) for filtering activity.
          schema:
            type: integer
            format: int64
        - name: limit
          in: query
          required: false
          description: Maximum number of activities to return.
          schema:
            type: string
        - name: cursor
          in: query
          required: false
          description: Pagination cursor from a previous response.
          schema:
            type: string
      responses:
        '200':
          description: A paginated list of user activities.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProfileActivityResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    ProfileActivityResponse:
      type: object
      properties:
        activities:
          type: array
          items:
            $ref: '#/components/schemas/Activity'
          description: List of user activities.
        pagination:
          $ref: '#/components/schemas/Pagination'
    Activity:
      type: object
      properties:
        token_id:
          type: string
          description: Token identifier.
        market_id:
          type: string
          description: Market identifier.
        side:
          type: string
          enum:
            - MERGE
            - SPLIT
            - REDEEM
          description: Activity type.
        shares:
          type: number
          description: Number of shares involved.
        price:
          type: number
          description: Price at time of activity.
        tx_hash:
          type: string
          description: On-chain transaction hash.
        timestamp:
          type: integer
          format: int64
          description: Unix timestamp of the activity.
        user:
          type: string
          description: User address.
    Pagination:
      type: object
      properties:
        total:
          type: integer
          description: Total number of results.
        limit:
          type: integer
          description: Number of results per page.
        has_more:
          type: boolean
          description: Whether more results are available.
        next_cursor:
          type: string
          nullable: true
          description: Cursor to use for the next page. `null` if no more results.
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            status:
              type: integer
              description: HTTP status code.
            message:
              type: string
              description: Human-readable error message.
            resolution:
              type: string
              description: Suggested action to resolve the error.
            error_text:
              type: string
              description: Detailed error information.
  responses:
    BadRequest:
      description: Invalid request parameters.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    RateLimited:
      description: Rate limit exceeded. Check the `Retry-After` header.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key for authentication. Generate one via the dashboard or the
        `/v1/api/auth/api-keys` endpoint.

````