---
title: "Return cPanel account email tracking statistics"
method: GET
path: "/emailtrack_stats"
tags: ["Mail", "cPanel Account Mail Management"]
---

# Return cPanel account email tracking statistics

`GET /emailtrack_stats`

This function retrieves email tracking statistics.

## Query parameters

- `deliverytype` 'remote' | 'remote-or-faildefer' | 'local'
- `enddate` integer
- `endtime` integer
- `nosize` 0 | 1
- `nosuccess` 0 | 1
- `startdate` integer
- `starttime` integer
- `user` string

## Response `200`

HTTP Request was successful.

- object
  - `data` object
    - `records` object[] — An array of objects containing the message information.
      - `DEFERCOUNT` integer — The number of deferral events.
      - `DEFERFAILCOUNT` integer — The number of messages that the system deferred and failed to deliver.
      - `FAILCOUNT` integer — The number of delivery failures. **Note:** If a message has three recipients, it can have a total of three failed deliveries.
      - `INPROGRESSCOUNT` integer — The number of messages currently in progress.
      - `SENDCOUNT` integer — The number of sent messages.
      - `SUCCESSCOUNT` integer — The number of successful deliveries. **Note:** If a message has three recipients, it can have a total of three successful deliveries.
      - `TOTALSIZE` integer — The total size of messages that the server sent.
  - `metadata` object
    - `command` string — The method name called.
    - `reason` string — The reason the API function failed when the `metadata.result` field is `0`. This field may display a success message when a function succeeds.
    - `result` 0 | 1 — * `1` — Success. * `0` — Failed. Check the `reason` field for more details.
    - `version` integer — The version of the API function.

---

[API](https://skmtc.net/cpanel/apis/whm-api.md) · [All operations](https://skmtc.net/cpanel/apis/whm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cpanel/whm-api/revisions/3da41671c02c/schema)
