Mailgun Email API//Stats
Stats
API Overview
Authentication
Developer Tools
Mailgun API
Messages
Domains
Domain Keys
Domain Tracking
DKIM Security
Account Webhooks
Domain Webhooks
Metrics
Logs
Bounce Classification
Tags New
Tags
Events
Send Alerts
Alerts
Limits
Unsubscribe
Complaints
Bounces
Allowlist
Routes
Forwards
Mailing Lists
Account Templates
Domain Templates
IP Pools
Dynamic IP Pools
IPs
IP Address Warmup
Subaccounts
Custom Message Limit
Account Management
Keys
Credentials
IP Allowlist
Users
Mailgun collects many different events and generates event statistics which are available in your Control Panel. This data is also available via our stats API endpoint.
WARNING: This API is deprecated in favor of our Metrics API.
Gets stat totals for an entire account
Security
basicAuth
- US Mailgunhttps://api.mailgun.net/v3/stats/total
- EU Mailgunhttps://api.eu.mailgun.net/v3/stats/total
curl -i -X GET \
-u '<username>:<password>' \
'https://api.mailgun.net/v3/stats/total?start=string&end=string&resolution=string&duration=string&event=string'Response
{ "description": "Optional Description", "start": "Tue, 14 Feb 2012 00:00:00 UTC", "end": "Fri, 01 Apr 2012 00:00:00 UTC", "resolution": "month", "stats": [ { … } ] }