Email Reporting Statistic API

Hi I’m running an api call with the following end point to export email performance data :

https://api.hubapi.com/marketing-emails/v1/emails/with-statistics

this provides email data but on Campaign level, is there a way to get it on email level as well ?

Thank you.

Hey @HRamos6, thank you for posting in our Community.

If you’re facing the INVALID_AUTHENTICATION error, I would recommend double-checking your authentication credentials and ensuring they’re correctly configured.

To our top experts @Anton and @TomM2 do you have any other recommendations for @HRamos6 matter?

Thank you,

Pam

Hello Pam,
No my api connection works, I’m just not getting exactly the outcome I want.

Hi @HRamos6, I hope that you are well!
Thanks for the clarification!
Which type of email data you’d like to export, please?
I’d like to share for information these resources that might help you:
- Email analytics
- Marketing emails
Also, I’d love to ask some of our Top Experts: Hi @Bhupendra_Kumar, @sylvain_tirreau and @zach_threadint do you have suggestions to help @HRamos6, please?

Have a wonderful day and thanks so much in advance for your help!
Warmly,
Bérangère

Hi,

Try this and tell us if it’s what you want:

GET /marketing-emails/v1/emails/{emailId}

Best

Hi everyone, thanks for the input.

Let me clarify my needs.

I’m working as data analyst for my company, I do not create any content. I’m just trying to automate reporting for email data.

What I’m trying to get is :

based on a time condition (monthly/Weekly);

- All the emails campaigns sent out during this time period.

- All the emails Names allocated to these campaigns (sent out during this time period).

- Following data points Per Email Name : Sent, Delivered, Opened, Clicked.
Ideally I wouldnt have to input email id. Is there a way to make this less manual as possible ?
Thanks in advance !!

The only way to do this, as far as I know, is to make a script in whatever language you want that does this:

- retrieve emails sent over the desired period with /marketing-emails/v1/emails/with-statistics
- iterate over each email and retrieve individual details and statistics with GET /marketing-emails/v1/emails/{emailId}

You will then have all the desired data.

There is no ready-made solution that will give you all the data you want, you have to put it into a script logic.

Best

Got it thanks !
I will look into trying this.