https://api.hubapi.com/marketing/v3/emails/
While using this api, we are unable to fetch data on property like open , click , bounce,reply etc. Any insight will be helpful
Also if we opt for stats api then i am not sure how will i map it
Hey @Vishesh2716 and Happy New Year! ![]()
Did you try the “Email Events API Overview”?
How are you currently matching emails to stats? If you share your mapping approach, the community might have tips to streamline it.
Let’s consult our Top Experts: Hi @SteveHTM, @evaldas and @Mike_Eastwood do you have any insights to share with @Vishesh2716, please?
Thanks so much in advance for your help!
Have a wonderful day!
Bérangère
Hi BérangèreL
Happy new year to you too
Email Events API Overview isn’t it it the old api? I guess, we used to get data via same api but since old api got depricated we started testing " https://api.hubapi.com/marketing/v3/emails/"
If you share your mapping approach - I am not able to map it out yet as i am unable to find a common variable to map it with.
Hi @Vishesh2716, my apologies for any confusion, I wanted to share the Statistics endpoint in the Marketing Emails v3 API. Thanks for catching that!.
You could try this endpoint: GET /marketing/v3/emails/statistics/list
This endpoint returns aggregated statistics for emails sent in a specified time span.
The statistics match what you see on the Performance page in HubSpot and are returned under the stats object in the JSON response.
I hope this helps!
Bérangère
Hi @BérangèreL -Thanks for your response.
Here is the things . What you said is true and we had previously tested , the stats api does give you exact number of click , open etc but to map with marketing api as that gives inight on email name , subject etc
We havent found a common id on which we can merge 2 table
Stats api is not fruitful until i am able to map it with exact campaign + previous api used to send all info in 1 go and now we need to have common indentifier and then megre both in one.
Hi @Vishesh2716 and thank you so much for getting back to me!
To help you map your marketing emails with their statistics, here are a few steps you can try:
The v3 Marketing Emails API (/marketing/v3/emails) will give you details like the email name, subject, and id.
For campaign statistics, please note that the emailCampaignId in the Email Events API refers to the campaign itself, not to individual emails.
You can access campaign data using /email/public/v1/campaigns/{campaign_id}.
For a more streamlined approach, I recommend using the v3 Marketing Emails Statistics endpoint (/marketing/v3/emails/statistics/list).
This provides both your email metadata and performance metrics in a single response, no need to merge data from different sources!
If you’re focusing on campaigns, the v3 Campaigns API (/marketing/v3/campaigns) is a great choice. It lets you view all associated assets, including MARKETING_EMAIL types, and provides useful metrics like clicks, opens, and sent numbers for selected date ranges.
Just remember, the email id from the Marketing Emails API is the key to tying everything together.
Please let me know if this helps or if you have any other questions!
Have a lovely day!
Bérangère
This post was created with the assistance of AI tools