---
title: "Get aggregated statistic intervals"
method: GET
path: "/marketing/emails/2026-09/statistics/histogram"
tags: ["Basic"]
---

# Get aggregated statistic intervals

`GET /marketing/emails/2026-09/statistics/histogram`

## Request

- Base URL: `https://api.hubapi.com`
- URL: `https://api.hubapi.com/marketing/emails/2026-09/statistics/histogram`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://app.hubspot.com/oauth/authorize`
    - Token URL: `https://api.hubapi.com/oauth/v1/token` scopes: `marketing.email.read`
  - OAuth 2
    - Authorization code: `https://app.hubspot.com/oauth/authorize`
    - Token URL: `https://api.hubapi.com/oauth/v1/token` scopes: `marketing.email.write`
  - OAuth 2
    - Authorization code: `https://app.hubspot.com/oauth/authorize`
    - Token URL: `https://api.hubapi.com/oauth/v1/token` scopes: `content`

Get aggregated statistics in intervals for a specified time span. Each interval contains aggregated statistics of the emails that were sent in that time.

## Query parameters

- `emailIds` integer[]
- `endTimestamp` string, date-time
- `interval` 'DAY' | 'HOUR' | 'MINUTE' | 'MONTH' | 'QUARTER' | 'QUARTER_HOUR' | 'SECOND' | 'WEEK' | 'YEAR'
- `startTimestamp` string, date-time

## Response `200`

successful operation

- CollectionResponseWithTotalEmailStatisticInterval
  - `paging` Paging: Represents the pagination information for navigating through a list of results in the API. It provides details on how to access the previous or next set of results.
    - `next` NextPage: Specifies the paging information needed to retrieve the next set of results in a paginated API response
      - `after` string, required: The cursor token value to get the next set of results. Use this value as query parameter (&after=...) to obtain the next page.
      - `link` string: The link to the next page.
    - `prev` PreviousPage: specifies the paging information needed to retrieve the previous set of results in a paginated API response
      - `before` string, required: The cursor token value to get the previous set of results. Use this value as query parameter (&before=...) to obtain the previous page.
      - `link` string: The link to the previous page.
  - `results` EmailStatisticInterval[], required: An array of EmailStatisticInterval objects, each representing statistics for a specific time interval.
    - `aggregations` EmailStatisticsData, required
      - `counters` object, required: Counters like number of `sent`, `open` or `delivered`.
      - `deviceBreakdown` object, required: Statistics by device.
      - `qualifierStats` object, required: Number of emails that were dropped and bounced.
      - `ratios` object, required: Ratios like `openratio` or `clickratio`
    - `interval` Interval, required
      - `end` string, date-time, required: The end timestamp of the interval, in ISO8601 format.
      - `start` string, date-time, required: The start timestamp of the interval, in ISO8601 format.
  - `total` integer, required: An integer representing the total number of email statistic intervals available.

## Other responses

- `default`: An error occurred.

## Changes

- **2026-10-14** (2026-09) `63a409723776`: 2 info
  - the security scope `marketing.email.read` was added to the endpoint's security scheme `oauth2`
  - the security scope `content` was removed from the endpoint's security scheme `oauth2`
- **2026-10-10** (2026-09) `f3d5b6124704`: 2 info
  - the security scope `marketing.email.read` was added to the endpoint's security scheme `oauth2`
  - the security scope `content` was removed from the endpoint's security scheme `oauth2`
- **2026-10-01** (2026-09) `f3d5b6124704`: 2 info
  - the security scope `marketing.email.read` was added to the endpoint's security scheme `oauth2`
  - the security scope `content` was removed from the endpoint's security scheme `oauth2`
- **2026-09-28** (2026-09) `785f0c0a0606`: 2 info
  - the security scope `marketing.email.read` was added to the endpoint's security scheme `oauth2`
  - the security scope `content` was removed from the endpoint's security scheme `oauth2`
- **2026-09-22** (2026-09) `d438170df2ce`: 2 info
  - the security scope `marketing.email.read` was added to the endpoint's security scheme `oauth2`
  - the security scope `content` was removed from the endpoint's security scheme `oauth2`

[Operation history](https://skmtc.dev/hubspot/apis/marketing-marketing-emails/changes/marketing/emails/2026-09/statistics/histogram/get.md)

---

[API](https://skmtc.dev/hubspot/apis/marketing-marketing-emails.md) - [All operations](https://skmtc.dev/hubspot/apis/marketing-marketing-emails/llms.txt) - [OpenAPI document](https://skmtc.dev/hubspot/apis/marketing-marketing-emails/revisions/63a409723776?raw)
