---
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`

## Request

- Base URL: `https://api.hubapi.com`
- URL: `https://api.hubapi.com/marketing/emails/2026-03/statistics/histogram`
- Auth: one of:
  - HTTP bearer
  - API key in query parameter `hapikey`
  - none

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.

## Changes

> 14 revisions in range; 1 not diffed, 2 could not be searched.

- **2026-04-08** `b0d8bc008db9`: 1 info
  - api operation id `get-/marketing/emails/2026-03/statistics/histogram_getHistogram` removed and replaced with `get-/marketing/emails/2026-03/statistics/histogram`
- **2026-03-25** `62586336cea2`: 1 info
  - endpoint added

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

---

[API](https://skmtc.dev/hubspot/apis/hubspot-api-specification.md) - [All operations](https://skmtc.dev/hubspot/apis/hubspot-api-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/hubspot/apis/hubspot-api-specification/revisions/f9c7181056c5?raw)
