Retrieve analytics
Counts per day or hour, delivery and bounce rates, delivery time, top tags and top bouncing domains.
/v1/analyticsAPI keyReturns the numbers behind the dashboard's Metrics page for the project. The buckets, totals and rates count live emails only; topTags counts every email in the range, test sends included.
Emails are grouped by when they were created (UTC), not when an event happened. So an email created on Monday and bounced on Tuesday counts as bounced on Monday. The status counts use each email's current status: an email that was deferred and later delivered counts only as delivered.
Query parameters
How far back to look, counted in whole UTC days including today.
The bucket size. With day, every day in the range has a bucket, even with no emails. With hour, only hours that have emails are listed.
Response
The range used.
The interval used.
In time order. Each has a bucket label (2026-09-25 for days, 2026-09-25T14 for hours) and one count per metric.
The same nine metrics summed over the range.
delivered / sent, rounded to four decimals, for example 0.9812. null when nothing was sent. bounceRate and complaintRate work the same way.
The median time Cloudflare took to deliver to a recipient, in milliseconds. p95DeliveryMs is the 95th percentile. null when there is no delivery data.
The 10 recipient domains with the most bounced recipients.
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_query | range or interval has a value not listed above. |