Global Stats provide all of your user’s email statistics for a given date range.

GET

Gets email statistics.

URI Parameter Required Requirements Description
start_date Yes Date formatted as YYYY-MM-DD The starting date of the statistics to retrieve
end_date No Date formatted as YYYY-MM-DD The end date of the statistics to retrieve. Defaults to today.
aggregated_by No Must be day|week|month How to group the statistics

Request

1
GET https://api.sendgrid.com/v3/stats?start_date=2015-01-01&end_date=2015-01-02 HTTP/1.1

Response

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
HTTP/1.1 200
[
  {
    "date": "2015-01-01",
    "stats": [
      {
        "metrics": {
          "blocks": 1,
          "bounce_drops": 0,
          "bounces": 0,
          "clicks": 0,
          "deferred": 1,
          "delivered": 1,
          "invalid_emails": 1,
          "opens": 1,
          "processed": 2,
          "requests": 3,
          "spam_report_drops": 0,
          "spam_reports": 0,
          "unique_clicks": 0,
          "unique_opens": 1,
          "unsubscribe_drops": 0,
          "unsubscribes": 0
        }
      }
    ]
  },
  {
    "date": "2015-01-02",
    "stats": [
      {
        "metrics": {
          "blocks": 0,
          "bounce_drops": 0,
          "bounces": 0,
          "clicks": 0,
          "deferred": 0,
          "delivered": 0,
          "invalid_emails": 0,
          "opens": 0,
          "processed": 0,
          "requests": 0,
          "spam_report_drops": 0,
          "spam_reports": 0,
          "unique_clicks": 0,
          "unique_opens": 0,
          "unsubscribe_drops": 0,
          "unsubscribes": 0
        }
      }
    ]
  }
]