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

# Get New And Active Users Count

> **Description:** Retrieves new and active users count based on the specified mode, start and end dates.

**Note:** If you struggle to figure out the segments, please check out the helper function - `get_segment_definition`.

**Parameters:**
- `api_key`: API key (https://app.telemetree.io/settings/project)
- `group_by`: List of fields to group by
- `period`: The start and end dates
- `filters`: List of filters in Amplitude-like format

**Returns:**
- `UserCountResponse`: The transformed user count data.

**Raises:**
- `HTTPException`: If an error occurs during the retrieval process.

