<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Differences in gmail data when using hubspot api in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Differences-in-gmail-data-when-using-hubspot-api/m-p/248723#M21516</link>
    <description>&lt;P&gt;I use the email event api to get data about the number of mail sent to customers for a selected time period&lt;BR /&gt;
But the result returned is different from what is displayed on Hubspot UI&lt;BR /&gt;
How to use the data when using API matches the display on the email analysis&lt;/P&gt;
&lt;ASIDE class="onebox whitelistedgeneric"&gt;
  &lt;HEADER class="source"&gt;
      &lt;IMG src="https://community.hubspot.com/legacyfs/online/uploads/default/original/1X/46c7134e5c588b9723986216fcb862e4f64d25e8.png" class="site-icon" width="16" height="16" /&gt;
      &lt;A href="https://developers.hubspot.com/docs/methods/email/get_events" target="_blank" rel="nofollow noopener"&gt;developers.hubspot.com&lt;/A&gt;
  &lt;/HEADER&gt;
  &lt;ARTICLE class="onebox-body"&gt;
    

&lt;H3&gt;&lt;A href="https://developers.hubspot.com/docs/methods/email/get_events" target="_blank" rel="nofollow noopener"&gt;Get email events | Email Events API&lt;/A&gt;&lt;/H3&gt;

&lt;P&gt;GET  /email/public/v1/events&lt;/P&gt;


  &lt;/ARTICLE&gt;
  &lt;DIV class="onebox-metadata"&gt;
    
    
  &lt;/DIV&gt;
  &lt;DIV style="clear: both"&gt;&lt;/DIV&gt;
&lt;/ASIDE&gt;

&lt;P&gt;The difference is quite high&lt;BR /&gt;
I need to get the correct data to make the report&lt;BR /&gt;
Please help me answer this issue, if you know how it works&lt;BR /&gt;
Thanks very much!&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;A class="lightbox" href="https://community.hubspot.com/legacyfs/online/uploads/default/original/2X/c/c32b94c6acf7e6765d9773636bfe96b0d78249a2.png" data-download-href="/legacyfs/online/uploads/default/c32b94c6acf7e6765d9773636bfe96b0d78249a2" title="hubspot.png" rel="nofollow noopener"&gt;&lt;IMG src="https://community.hubspot.com/legacyfs/online/uploads/default/optimized/2X/c/c32b94c6acf7e6765d9773636bfe96b0d78249a2_2_690x218.png" alt="hubspot" width="690" height="218" srcset="https://discourse-cdn-sjc1.com/hubspot/uploads/default/optimized/2X/c/c32b94c6acf7e6765d9773636bfe96b0d78249a2_2_690x218.png, https://discourse-cdn-sjc1.com/hubspot/uploads/default/optimized/2X/c/c32b94c6acf7e6765d9773636bfe96b0d78249a2_2_1035x327.png 1.5x, https://discourse-cdn-sjc1.com/hubspot/uploads/default/original/2X/c/c32b94c6acf7e6765d9773636bfe96b0d78249a2.png 2x" data-small-upload="/uploads/default/optimized/2X/c/c32b94c6acf7e6765d9773636bfe96b0d78249a2_2_10x10.png" /&gt;&lt;DIV class="meta"&gt;
&lt;SPAN class="filename"&gt;hubspot.png&lt;/SPAN&gt;&lt;SPAN class="informations"&gt;1184×375 39.9 KB&lt;/SPAN&gt;&lt;SPAN class="expand"&gt;&lt;/SPAN&gt;
&lt;/DIV&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;The document may match the image above get by Email Events API&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jan 2019 06:25:12 GMT</pubDate>
    <dc:creator>Vi_Quyet</dc:creator>
    <dc:date>2019-01-24T06:25:12Z</dc:date>
    <item>
      <title>Differences in gmail data when using hubspot api</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Differences-in-gmail-data-when-using-hubspot-api/m-p/248723#M21516</link>
      <description>&lt;P&gt;I use the email event api to get data about the number of mail sent to customers for a selected time period&lt;BR /&gt;
But the result returned is different from what is displayed on Hubspot UI&lt;BR /&gt;
How to use the data when using API matches the display on the email analysis&lt;/P&gt;
&lt;ASIDE class="onebox whitelistedgeneric"&gt;
  &lt;HEADER class="source"&gt;
      &lt;IMG src="https://community.hubspot.com/legacyfs/online/uploads/default/original/1X/46c7134e5c588b9723986216fcb862e4f64d25e8.png" class="site-icon" width="16" height="16" /&gt;
      &lt;A href="https://developers.hubspot.com/docs/methods/email/get_events" target="_blank" rel="nofollow noopener"&gt;developers.hubspot.com&lt;/A&gt;
  &lt;/HEADER&gt;
  &lt;ARTICLE class="onebox-body"&gt;
    

&lt;H3&gt;&lt;A href="https://developers.hubspot.com/docs/methods/email/get_events" target="_blank" rel="nofollow noopener"&gt;Get email events | Email Events API&lt;/A&gt;&lt;/H3&gt;

&lt;P&gt;GET  /email/public/v1/events&lt;/P&gt;


  &lt;/ARTICLE&gt;
  &lt;DIV class="onebox-metadata"&gt;
    
    
  &lt;/DIV&gt;
  &lt;DIV style="clear: both"&gt;&lt;/DIV&gt;
&lt;/ASIDE&gt;

&lt;P&gt;The difference is quite high&lt;BR /&gt;
I need to get the correct data to make the report&lt;BR /&gt;
Please help me answer this issue, if you know how it works&lt;BR /&gt;
Thanks very much!&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;A class="lightbox" href="https://community.hubspot.com/legacyfs/online/uploads/default/original/2X/c/c32b94c6acf7e6765d9773636bfe96b0d78249a2.png" data-download-href="/legacyfs/online/uploads/default/c32b94c6acf7e6765d9773636bfe96b0d78249a2" title="hubspot.png" rel="nofollow noopener"&gt;&lt;IMG src="https://community.hubspot.com/legacyfs/online/uploads/default/optimized/2X/c/c32b94c6acf7e6765d9773636bfe96b0d78249a2_2_690x218.png" alt="hubspot" width="690" height="218" srcset="https://discourse-cdn-sjc1.com/hubspot/uploads/default/optimized/2X/c/c32b94c6acf7e6765d9773636bfe96b0d78249a2_2_690x218.png, https://discourse-cdn-sjc1.com/hubspot/uploads/default/optimized/2X/c/c32b94c6acf7e6765d9773636bfe96b0d78249a2_2_1035x327.png 1.5x, https://discourse-cdn-sjc1.com/hubspot/uploads/default/original/2X/c/c32b94c6acf7e6765d9773636bfe96b0d78249a2.png 2x" data-small-upload="/uploads/default/optimized/2X/c/c32b94c6acf7e6765d9773636bfe96b0d78249a2_2_10x10.png" /&gt;&lt;DIV class="meta"&gt;
&lt;SPAN class="filename"&gt;hubspot.png&lt;/SPAN&gt;&lt;SPAN class="informations"&gt;1184×375 39.9 KB&lt;/SPAN&gt;&lt;SPAN class="expand"&gt;&lt;/SPAN&gt;
&lt;/DIV&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;The document may match the image above get by Email Events API&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 06:25:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Differences-in-gmail-data-when-using-hubspot-api/m-p/248723#M21516</guid>
      <dc:creator>Vi_Quyet</dc:creator>
      <dc:date>2019-01-24T06:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in gmail data when using hubspot api</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Differences-in-gmail-data-when-using-hubspot-api/m-p/248724#M21517</link>
      <description>&lt;P&gt;Welcome, &lt;A class="mention" href="https://community.hubspot.com/u/vi_quyet"&gt;@Vi_Quyet&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Happy to help.&lt;/P&gt;
&lt;P&gt;Could you share the following?&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Your Hub ID.&lt;/LI&gt;
&lt;LI&gt;A link to the email campaign you're seeing discrepancies with? (I want to compare the up-to-date API and UI data.)&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Mon, 28 Jan 2019 13:54:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Differences-in-gmail-data-when-using-hubspot-api/m-p/248724#M21517</guid>
      <dc:creator>IsaacTakushi</dc:creator>
      <dc:date>2019-01-28T13:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in gmail data when using hubspot api</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Differences-in-gmail-data-when-using-hubspot-api/m-p/248725#M21518</link>
      <description>&lt;P&gt;Thanks Takushi,&lt;/P&gt;
&lt;P&gt;i used url : url = "&lt;A href="https://api.hubapi.com/email/public/v1/events?%22" rel="nofollow noopener"&gt;https://api.hubapi.com/email/public/v1/events?"&lt;/A&gt; + str(offset) + "hapikey=my_key_api&amp;amp;eventType=SENT&amp;amp;startTimestamp=1543597200000&amp;amp;endTimestamp=1546189200000&amp;amp;limit=1000"&lt;/P&gt;
&lt;P&gt;and get result = 4189 with time start = 12/01/2018 and time end = 31/12/2018&lt;/P&gt;
&lt;P&gt;Differential results 4189 - 4155 = 34&lt;BR /&gt;
Can you help me explain that difference ? Thanks so much!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 17:16:03 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Differences-in-gmail-data-when-using-hubspot-api/m-p/248725#M21518</guid>
      <dc:creator>Vi_Quyet</dc:creator>
      <dc:date>2019-01-28T17:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in gmail data when using hubspot api</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Differences-in-gmail-data-when-using-hubspot-api/m-p/249813#M22006</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/84894"&gt;@Vi_Quyet&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apologies for the delayed response. Thank you for sharing that information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems you are using slightly different&amp;nbsp;&lt;SPAN&gt;&lt;CODE&gt;startTimestamp&lt;/CODE&gt; and&amp;nbsp;&lt;CODE&gt;endTimestamp&lt;/CODE&gt;values than the email&amp;nbsp;&lt;EM&gt;Analyze&lt;/EM&gt; tool you referenced. If you go to &lt;A href="https://app.hubspot.com/email/480402/analyze/overview/emails?startDate=1543590000000&amp;amp;endDate=1546268399999&amp;amp;rangeKey=CUSTOM" target="_self"&gt;this page&lt;/A&gt;, it shows the same statistics you reference in your screenshot, including&amp;nbsp;&lt;STRONG&gt;4,155&lt;/STRONG&gt; sends.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The URL shows this report is generated with the &lt;CODE&gt;startDate=1543590000000&lt;/CODE&gt;, which is 2 hours earlier than your &lt;CODE&gt;startTimestamp=1543597200000&lt;/CODE&gt; and the&amp;nbsp;&lt;CODE&gt;endDate=1546268399999&lt;/CODE&gt;, which is almost a full day later than your&amp;nbsp;&lt;CODE&gt;endTimestamp=1546189200000&lt;/CODE&gt;, which only goes until 30 December instead of 31 December.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Since your timeframe is shorter, it contains fewer sends.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you use the parameters:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL style="list-style-position: inside;"&gt;
&lt;LI&gt;&lt;CODE&gt;startTimestamp=1543590000000&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;CODE&gt;endTimestamp=1546268399999&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Then I would expect the number of sends to match.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 14:14:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Differences-in-gmail-data-when-using-hubspot-api/m-p/249813#M22006</guid>
      <dc:creator>IsaacTakushi</dc:creator>
      <dc:date>2019-01-31T14:14:32Z</dc:date>
    </item>
  </channel>
</rss>

