Sending Stats API is available
You can now access your email sending stats programmatically via our new Stats API — the same data you see in your Stats dashboard, now available through API endpoints.
Available endpoints:
stats– Sending statsGET
https://mailtrap.io/api/accounts/{account_id}/stats/domains– Sending stats by domainscategories– Sending stats by categories (e.g., welcome emails, password resets, etc.)email_service_providers– Sending stats by email service providers (e.g., Gmail, Yahoo, etc.)date– Sending stats by date
Additionally, you can filter the stats by date range, sending domains, sending streams (transactional/bulk), categories, and email service providers.
Stats included: delivery, bounce, open, click, and spam counts and rates.
For more information on the Sending Stats API, please read the official API documentation.