# Stats
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](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Metrics/) API.
## Totals for entire account
- [GET /v3/stats/total](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/mailgun/stats/get-v3-stats-total.md): Gets stat totals for an entire account
## Totals for entire domain
- [GET /v3/{domain}/stats/total](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/mailgun/stats/get-v3--domain--stats-total.md): Gets stat totals for an entire domain
## Totals for account domains for a single time resolution
- [GET /v3/stats/total/domains](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/mailgun/stats/get-v3-stats-total-domains.md): Gets stat totals for domains in an account for a single time resolution
## Filtered/grouped totals for entire account
- [GET /v3/stats/filter](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/mailgun/stats/get-v3-stats-filter.md): Gets filtered and group stat totals for an entire account
## Aggregate counts by ESP
- [GET /v3/{domain}/aggregates/providers](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/mailgun/stats/get-v3--domain--aggregates-providers.md): Gets aggregate counts by email service provider
## Aggregate counts by devices triggering events
- [GET /v3/{domain}/aggregates/devices](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/mailgun/stats/get-v3--domain--aggregates-devices.md): Gets aggregate counts on devices that triggered events ('tablet', 'phone', 'pc', etc…)
## Aggregate counts by country
- [GET /v3/{domain}/aggregates/countries](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/mailgun/stats/get-v3--domain--aggregates-countries.md): Gets aggregate counts by country (USA, RUS, etc…)