Get incoming email trends for top client domains
Client Analytics
Client Domain Email Trends
Returns the daily incoming email trends for the top 5 client domains within the specified date range.
- Only incoming emails are counted. - If no date range is provided, the system automatically adjusts it to a week from today. - The response provides a
seriesarray suitable for time-series visualization (e.g., line chart).
GET
Get incoming email trends for top client domains
Returns the daily incoming email trends for the top 5 client domains within the specified date range. Only incoming emails are counted. The response provides a series array suitable for time-series visualization.
Request
Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer token |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| startDate | string | Yes | Start date for the trend range (YYYY-MM-DD) |
| endDate | string | Yes | End date for the trend range (YYYY-MM-DD) |
Parameter Format
- Format:
YYYY-MM-DD(ISO 8601 date) - Timezone: UTC
- Default: Last 7 days if not provided
Response
200 OK - Successfully retrieved incoming email trends for top client domains
401 Unauthorized
500 Internal Server Error
Example
Data Structure
Labels Array
| Field | Type | Description |
|---|---|---|
| labels | array | List of dates in YYYY-MM-DD format |
Series Array
Each object represents a domain’s daily email counts:| Field | Type | Description |
|---|---|---|
| name | string | Domain name |
| data | array | Daily incoming email counts |
Data Alignment
series[i].data[j]corresponds tolabels[j]for the domainseries[i].name- All data arrays have the same length as labels
- Only incoming emails are counted (outgoing emails excluded)
Use Cases
- Client Behavior Analysis: Track email patterns by domain
- Capacity Planning: Predict volume from top domains
- Service Level Management: Monitor domain-specific service levels
- Trend Identification: Spot increasing/decreasing domain activity
- Visualization: Create multi-line charts for domain trends
Analysis Examples
Domain Growth Analysis
Peak Day Identification
Correlation Analysis
Visualization Examples
Multi-Line Chart
Stacked Area Chart
Best Practices
- Date Range: Use reasonable ranges (recommended: max 90 days)
- Focus: Top 5 domains provide focused view without overwhelming data
- Comparison: Compare trends across domains for insights
- Baseline: Establish baseline patterns for anomaly detection
- Regular Updates: Update trends regularly for current insights
Performance Considerations
- Data Volume: Multiple series increase data complexity
- Caching: Results cached for 15 minutes by default
- Processing: Larger date ranges take longer to process
- Memory: Consider client-side memory for large datasets
Related Endpoints
- Use
/email-meter/stats/clients/top-domainsfor current top domains - Use
/email-meter/stats/emails-trendfor overall email trends - Use
/email-meter/stats/clients/response-timesfor domain performance
Notes
- Only incoming emails are included in counts
- Top 5 domains are based on total volume in the date range
- Zero-volume days are included for complete timeline
- Data is calculated based on email receipt timestamps
- Internal domains may be excluded based on configuration
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Start date for the trend range (YYYY-MM-DD)
End date for the trend range (YYYY-MM-DD)