# Email Reporting Through API

**URL:** <https://community.hubspot.com/t/email-reporting-through-api/127266>\
**Category:** APIs & Integrations\
**Tags:** python, email\
**Created:** [March 4, 2025, 10:26am UTC](https://community.hubspot.com/t/email-reporting-through-api/127266 "2025-03-04T10:26:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![HRamos6](https://avatars.discourse-cdn.com/v4/letter/h/7cd45c/32.png) [@HRamos6](https://community.hubspot.com/u/HRamos6)\
**Post date:** [March 4, 2025, 10:26am UTC](https://community.hubspot.com/t/email-reporting-through-api/127266/1 "2025-03-04T10:26:59Z")

</div>

Hello !  
I’m currently looking on exporting email data through a private app that I created. I basically only want to be able to automate through python the possibility of exporting email data such as sent, opens & clicks per Email.  
Could you help me find the appropriate documentation ?  
Thank you !

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [March 5, 2025, 12:04am UTC](https://community.hubspot.com/t/email-reporting-through-api/127266/2 "2025-03-05T00:04:41Z")

</div>

Hey, @HRamos6 👋 The available endpoints for Marketing Email statistics are here — [**Statistics**](https://developers.hubspot.com/docs/reference/api/marketing/emails/marketing-emails#get-%2Fmarketing%2Fv3%2Femails%2Fstatistics%2Fhistogram). The request doesn’t allow you to do additional filtering, but Python and your app or middleware should be capable of parsing out only the info you need.

Have fun building! — Jaycee

---

<div class="post-metadata">

**Author:** ![HRamos6](https://avatars.discourse-cdn.com/v4/letter/h/7cd45c/32.png) [@HRamos6](https://community.hubspot.com/u/HRamos6)\
**Post date:** [March 12, 2025, 1:33pm UTC](https://community.hubspot.com/t/email-reporting-through-api/127266/3 "2025-03-12T13:33:59Z")

</div>

Hey Jaycee !  
Thanks for the tip, i tried to look at it and make it run. Its great I can get Campaign ID’s and data associated to these but I’m having a hard time finding how I can also get it per Email Name & ID. Is it possible ? to break down by Campaign and then by Email ?  
Thamk you in advance !

---

<div class="post-metadata">

**Author:** ![HRamos6](https://avatars.discourse-cdn.com/v4/letter/h/7cd45c/32.png) [@HRamos6](https://community.hubspot.com/u/HRamos6)\
**Post date:** [March 18, 2025, 7:59am UTC](https://community.hubspot.com/t/email-reporting-through-api/127266/4 "2025-03-18T07:59:42Z")

</div>

Is there an article already available on the community that I should look at ?  
Thanks !

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [March 26, 2025, 8:56pm UTC](https://community.hubspot.com/t/email-reporting-through-api/127266/5 "2025-03-26T20:56:32Z")

</div>

Hey there. There is not an additional document for these endpoints outside what I shared previously. — Jaycee
