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

# Get aggregated statistic intervals

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

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

- MarketingEmailsCollectionResponseWithTotalEmailStatisticInterval
  - `paging` Paging
    - `next` NextPage — Specifies the paging information needed to retrieve the next set of results in a paginated API response
      - `after` string, required — A paging cursor token for retrieving subsequent pages.
      - `link` string — A URL that can be used to retrieve the next page results.
    - `prev` PreviousPage — specifies the paging information needed to retrieve the previous set of results in a paginated API response
      - `before` string, required — A string token used to identify the position before the current page in the pagination sequence.
      - `link` string — A URL string that provides a direct link to the previous page of results.
  - `results` MarketingEmailsEmailStatisticInterval[], required
    - `aggregations` MarketingEmailsEmailStatisticsData, 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` MarketingEmailsInterval, 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

## Other responses

- `default` — An error occurred.

---

[API](https://skmtc.net/hubspot/apis/hubspot-api-specification.md) · [All operations](https://skmtc.net/hubspot/apis/hubspot-api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hubspot/hubspot-api-specification/versions/f9c7181056c5/schema)
