<?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: [HubSpot API] Best way to get timestamps for when deals enter specific pipeline stages? in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/HubSpot-API-Best-way-to-get-timestamps-for-when-deals-enter/m-p/1206904#M84715</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/996002"&gt;@d-lupo&lt;/a&gt;&amp;nbsp;!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I'm using the API and Python because I want to create a database, process it to be formatted in a very specific way, and then upload it to an existing app I have for creating interactive cohort charts. The most difficult part is getting the data structured exactly how I need it for the initial processing.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The goal is to pull deal stage transition timestamps through the HubSpot API, transform that raw data into a cohort-ready format, and then feed it into my visualization application. The challenge isn't the analysis or charting part - I already have that infrastructure built - it's specifically getting the HubSpot data extraction and initial data transformation right so it matches the input requirements my cohort analysis app expects.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This is why I need those precise hs_date_entered_ timestamps for when deals move into specific stages - they're critical data points for calculating cohort progression rates and time-based metrics in my downstream analysis pipeline.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Oct 2025 11:51:24 GMT</pubDate>
    <dc:creator>PColusse</dc:creator>
    <dc:date>2025-10-01T11:51:24Z</dc:date>
    <item>
      <title>[HubSpot API] Best way to get timestamps for when deals enter specific pipeline stages?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/HubSpot-API-Best-way-to-get-timestamps-for-when-deals-enter/m-p/1206696#M84693</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello everyone! I need help tracking two specific moments: when a deal enters stage X and when it enters stage Y - exactly these 2 timestamps. I'm using the HubSpot libraries for Python and everything works very well! It's just these specific timestamp fields that I don't know where/how to retrieve. Can you help me? &lt;/SPAN&gt;&lt;SPAN&gt;Code of how I'm initially pulling the information below:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Function to fetch all deals
def fetch_all_deals():
    all_deals = []
    after = None
    
    while True:
        try:
            # Get deals with pagination
            deals_page = api_client.crm.deals.basic_api.get_page(
                limit=100,
                after=after,
                properties=[
                    "dealname",
                    "amount",
                    "dealstage",
                    "pipeline",
                    "closedate",
                    "createdate",
                    "hs_lastmodifieddate",
                    "hs_date_entered_987312754",  
                    "hs_date_entered_987312757"  
                ]
            )
            
            # Add deals from current page to our list
            all_deals.extend(deals_page.results)
            
            # Check if there are more pages
            if deals_page.paging is None:
                break
                
            after = deals_page.paging.next.after
            
        except Exception as e:
            print(f"Error fetching deals: {str(e)}")
            break
    
    return all_deals&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 30 Sep 2025 20:11:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/HubSpot-API-Best-way-to-get-timestamps-for-when-deals-enter/m-p/1206696#M84693</guid>
      <dc:creator>PColusse</dc:creator>
      <dc:date>2025-09-30T20:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: [HubSpot API] Best way to get timestamps for when deals enter specific pipeline stages?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/HubSpot-API-Best-way-to-get-timestamps-for-when-deals-enter/m-p/1206883#M84713</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/996625"&gt;@PColusse&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Why are you trying to handle this through the API?&lt;BR /&gt;From what I understand of your use case, you can achieve the same result more easily with a &lt;STRONG&gt;workflow&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Set up the workflow to trigger when a deal enters one of the two desired stages (activate reenrollment).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Add branches for the specific stages.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Within each branch, use the Edit property action to update the target property.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This way, you can simply copy the Last modified date into either hs_date_entered_987312754 or hs_date_entered_987312757, depending on the branch.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Alternatively, if your account doesn’t have the required license to build custom workflows (you’ll need at least one Professional or higher seat), you can use &lt;STRONG&gt;webhooks&lt;/STRONG&gt; instead. Set up a webhook to send a request to a specified URL whenever a deal enters one of the desired stages. The request body will include the timestamp and stage, and your receiving system can then update the record in HubSpot using a standard API call.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Let me know if I’ve understood your scenario correctly and if either of these approaches helps! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 10:15:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/HubSpot-API-Best-way-to-get-timestamps-for-when-deals-enter/m-p/1206883#M84713</guid>
      <dc:creator>d-lupo</dc:creator>
      <dc:date>2025-10-01T10:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: [HubSpot API] Best way to get timestamps for when deals enter specific pipeline stages?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/HubSpot-API-Best-way-to-get-timestamps-for-when-deals-enter/m-p/1206904#M84715</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/996002"&gt;@d-lupo&lt;/a&gt;&amp;nbsp;!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I'm using the API and Python because I want to create a database, process it to be formatted in a very specific way, and then upload it to an existing app I have for creating interactive cohort charts. The most difficult part is getting the data structured exactly how I need it for the initial processing.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The goal is to pull deal stage transition timestamps through the HubSpot API, transform that raw data into a cohort-ready format, and then feed it into my visualization application. The challenge isn't the analysis or charting part - I already have that infrastructure built - it's specifically getting the HubSpot data extraction and initial data transformation right so it matches the input requirements my cohort analysis app expects.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This is why I need those precise hs_date_entered_ timestamps for when deals move into specific stages - they're critical data points for calculating cohort progression rates and time-based metrics in my downstream analysis pipeline.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 11:51:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/HubSpot-API-Best-way-to-get-timestamps-for-when-deals-enter/m-p/1206904#M84715</guid>
      <dc:creator>PColusse</dc:creator>
      <dc:date>2025-10-01T11:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: [HubSpot API] Best way to get timestamps for when deals enter specific pipeline stages?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/HubSpot-API-Best-way-to-get-timestamps-for-when-deals-enter/m-p/1207051#M84726</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm still convinced that it would be easier the way I described above, but if you want to solve it programmatically, I think this is the request you are looking for:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dlupo_0-1759338520922.png" style="width: 732px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/157197i2E52B1AD574E746E/image-dimensions/732x560?v=v2" width="732" height="560" role="button" title="dlupo_0-1759338520922.png" alt="dlupo_0-1759338520922.png" /&gt;&lt;/span&gt;Kind regards&lt;BR /&gt;Dennis&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 17:14:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/HubSpot-API-Best-way-to-get-timestamps-for-when-deals-enter/m-p/1207051#M84726</guid>
      <dc:creator>d-lupo</dc:creator>
      <dc:date>2025-10-01T17:14:09Z</dc:date>
    </item>
  </channel>
</rss>

