Open Source Tools for Mailgun Report Generation

Looking for existing solutions to handle Mailgun analytics

I need to pull bounce data and delivery failures from my Mailgun account and convert them into readable formats like CSV or Excel files. While I know Mailgun provides REST endpoints for accessing this information, I’m hoping someone has already built a tool or library that handles this common task.

Has anyone come across open source utilities that can connect to Mailgun and generate reports from email delivery data? I want to focus on permanent bounces mainly, but any reporting solution would be helpful. Would prefer not to build this from scratch if there’s already a working solution out there.

Any recommendations for existing projects or libraries that handle Mailgun data extraction and formatting?

I use Python requests with pandas for exactly this. Haven’t found a dedicated open source tool, but honestly it’s pretty easy to build yourself. Mailgun’s API docs are solid - you can hit their events endpoint and filter by event type to grab just the bounces and failures you want. I threw together a small wrapper that handles pagination and rate limiting, then spits everything out as CSV. The trickiest bit was getting the timestamp filtering right so you don’t miss records. If you know Python, spend a few hours building something custom instead of hunting for existing tools - you’ll get exactly what you need.

totally feel u! i had the same issue too. wrote a simple script that pulls the data directly from the api, saved me a lot of time. if u discover any good libraries, pls share! would really appreciate it!

I’ve been doing Mailgun data extraction for a couple years - there really aren’t many good open source tools for this. Most of us just build our own since everyone’s needs are different. I had luck using mailgun-js with csv-writer in Node.js for bounce reports. Works great for permanent bounces since you can filter by event type and reason codes. Watch out for API rate limits on big datasets though - that bit me hard the first time. Set up automated scheduling if you need regular reports, trust me on this one. Yeah, the lack of ready-made tools sucks, but honestly? Building something custom for your specific bounce types and output format is probably better anyway.