<?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 Re: Get form submissions by source in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Get-form-submissions-by-source/m-p/1033309#M76200</link>
    <description>&lt;P&gt;Hey&amp;nbsp;Gaurav !&lt;BR /&gt;&lt;BR /&gt;The problem with this solution is that it will only work with submissions, but not views. I guess I'll have to wait for a better version of the API to be able to do that &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway !&lt;/P&gt;</description>
    <pubDate>Wed, 28 Aug 2024 11:54:00 GMT</pubDate>
    <dc:creator>ArnaudStephan</dc:creator>
    <dc:date>2024-08-28T11:54:00Z</dc:date>
    <item>
      <title>Get form submissions by source</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-form-submissions-by-source/m-p/1032884#M76184</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm currently using this endpoint to get data on our forms :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://api.hubapi.com/analytics/v2/reports/forms/weekly?&amp;amp;start=" target="_blank"&gt;https://api.hubapi.com/analytics/v2/reports/forms/weekly?&amp;amp;start=&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;start_date&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;end=&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;end_date&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;f=&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;formId&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;This allows me to get weekly analytics for all of our forms, but it is not grouped by source, like you can see in Hubspot directly :&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot 2024-08-27 at 17.48.43.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/125677iF072221843EC5921/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-08-27 at 17.48.43.png" alt="Screenshot 2024-08-27 at 17.48.43.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Is there a way to get this data from an endpoint ? The &lt;A href="https://developers.hubspot.com/docs/api/marketing/forms" target="_blank" rel="noopener"&gt;v3 API documentation&lt;/A&gt;&amp;nbsp;does not seem to include the possibility, and I did not manage to find the correct way of doing it using the &lt;A href="https://legacydocs.hubspot.com/docs/methods/analytics/get-analytics-data-breakdowns" target="_blank" rel="noopener"&gt;analytics v2 API&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;I've tried a lot of different approaches while trying to build the correct URL to make the request to, but I've only been able to get analytics data grouped by form, and not form + source.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Aug 2024 16:06:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-form-submissions-by-source/m-p/1032884#M76184</guid>
      <dc:creator>ArnaudStephan</dc:creator>
      <dc:date>2024-08-27T16:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get form submissions by source</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-form-submissions-by-source/m-p/1033303#M76199</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/806658"&gt;@ArnaudStephan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-sheets-root="1"&gt;HubSpot's v2 Analytics API does provide some data on form submissions and other analytics. Still, its functionality is limited when it comes to breaking down analytics by specific sources (e.g., traffic source, original source, etc.) within the same API call. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-sheets-root="1"&gt;As of now, HubSpot’s API documentation does not offer a straightforward way to directly fetch form analytics data grouped by source, as you see in the HubSpot dashboard.&lt;BR /&gt;&lt;STRONG&gt;Step 1:&lt;/STRONG&gt; Get Form Submissions. Use the Forms API to retrieve submissions for a specific form.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-sheets-root="1"&gt;&lt;BR /&gt;&lt;STRONG&gt;Step 2:&lt;/STRONG&gt; Fetch Contact Source Information For each contact from the list, use the Contacts API to get source information.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-sheets-root="1"&gt;&lt;BR /&gt;&lt;STRONG&gt;Step 3:&lt;/STRONG&gt; Group Data by Source. Use your server-side language (Node.js, Python, etc.) to group this data by hs_analytics_source or any other relevant property.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-sheets-root="1"&gt;I hope this will help you out. Please mark it as &lt;STRONG&gt;Solution Accepted and upvote&lt;/STRONG&gt; to help another Community member. &lt;BR /&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 11:46:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-form-submissions-by-source/m-p/1033303#M76199</guid>
      <dc:creator>GRajput</dc:creator>
      <dc:date>2024-08-28T11:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get form submissions by source</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-form-submissions-by-source/m-p/1033309#M76200</link>
      <description>&lt;P&gt;Hey&amp;nbsp;Gaurav !&lt;BR /&gt;&lt;BR /&gt;The problem with this solution is that it will only work with submissions, but not views. I guess I'll have to wait for a better version of the API to be able to do that &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway !&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 11:54:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-form-submissions-by-source/m-p/1033309#M76200</guid>
      <dc:creator>ArnaudStephan</dc:creator>
      <dc:date>2024-08-28T11:54:00Z</dc:date>
    </item>
  </channel>
</rss>

