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

# Get events breakdown

> Returns event distribution by event type.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/analytics/events/breakdown
openapi: 3.0.0
info:
  title: EngageFabric API
  description: >-
    EngageFabric is a multi-tenant SaaS gamification framework. This API
    provides endpoints for managing players, tracking events, quests,
    adventures, leaderboards, lobbies, and real-time features.
  version: 1.0.0
  contact:
    name: EngageFabric Support
    url: https://engagefabric.com
    email: support@engagefabric.com
  license:
    name: Proprietary
    url: https://engagefabric.com/terms
servers:
  - url: https://api.engagefabric.com
    description: Production
  - url: http://localhost:3000
    description: Development
security: []
tags:
  - name: auth
    description: Authentication endpoints
  - name: tenants
    description: Tenant management
  - name: projects
    description: Project management
  - name: players
    description: Player management and game state
  - name: events
    description: Event ingestion and tracking
  - name: quests
    description: Quest management and progress
  - name: adventures
    description: Adventure/season management
  - name: leaderboards
    description: Leaderboard rankings
  - name: lobbies
    description: Multiplayer lobby management
  - name: chat
    description: Real-time chat
  - name: rules
    description: Rules engine configuration
paths:
  /api/v1/analytics/events/breakdown:
    get:
      tags:
        - Analytics
      summary: Get events breakdown
      description: Returns event distribution by event type.
      operationId: AnalyticsController_getEventsBreakdown
      parameters:
        - name: projectId
          required: true
          in: query
          description: Project ID to get events breakdown for
          schema:
            type: string
            example: 550e8400-e29b-41d4-a716-446655440000
        - name: days
          required: false
          in: query
          description: Number of days to get breakdown for
          schema:
            default: 7
            example: 7
            type: number
      responses:
        '200':
          description: Events breakdown data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventsBreakdownResponse'
      security:
        - bearer: []
components:
  schemas:
    EventsBreakdownResponse:
      type: object
      properties:
        breakdown:
          type: array
          items:
            $ref: '#/components/schemas/EventTypeBreakdown'
        total:
          type: number
          description: Total events in period
        uniqueTypes:
          type: number
          description: Number of unique event types
      required:
        - breakdown
        - total
        - uniqueTypes
    EventTypeBreakdown:
      type: object
      properties:
        eventType:
          type: string
          description: Event type name
        count:
          type: number
          description: Number of events
        percentage:
          type: number
          description: Percentage of total events
      required:
        - eventType
        - count
        - percentage

````