Skip to content

Get open statistics

Request

Daily or hourly breakdown of email opens (total and unique).

Domain Filtering - Use domain_id to filter statistics for a specific sending domain.

Confidence-Based Scanner Detection - Use filter=human_only to exclude Gmail/Apple Mail privacy protection opens and security scanner bots for accurate engagement metrics.

Opens are classified using confidence scoring:

  • human (< 50): Real user opens from Gmail, Outlook, mobile apps
  • suspicious (50-79): Apple Mail Privacy, privacy proxies, edge cases
  • scanner (>= 80): Known security scanners, bots, automated systems

Use precision to control time granularity (day or hour).

Security
ApiKeyAuth
Query
fromdatestring, (date-time)

Start date for filtering (ISO 8601)

Example:fromdate=2024-03-01T00:00:00Z
todatestring, (date-time)

End date for filtering (ISO 8601)

Example:todate=2024-03-31T23:59:59Z
tagstring

Filter by email tag

Example:tag=newsletter
filterstring

Filter statistics by engagement type (NEW - Scanner Detection Feature):

  • all (default): All opens/clicks including scanners
  • human_only: Only real human engagement
  • scanner_only: Only bot/scanner engagement
Default:"all"
Enum:"all""human_only""scanner_only"
Example:filter=human_only
domain_idinteger

Filter statistics by specific sending domain ID

Example:domain_id=123
precisionstring

Time granularity for statistics aggregation:

  • day (default): Daily aggregation
  • hour: Hourly aggregation
Default:"day"
Enum:"day""hour"
Example:precision=hour
curl -i -X GET \
  'https://api.mailerlogic.net/api/v1/stats/outbound/opens?fromdate=2024-03-01T00%3A00%3A00Z&todate=2024-03-31T23%3A59%3A59Z&tag=newsletter&filter=human_only&domain_id=123&precision=hour' \
  -H 'X-API-Key: YOUR_API_KEY_HERE'

Responses

Open statistics retrieved successfully

Bodyapplication/json
daysArray of objects
Response
{ "days": [ {} ] }