<?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 for contacts updateafter is not working in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Get-for-contacts-updateafter-is-not-working/m-p/1154491#M82182</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/80307"&gt;@aemmi&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I feel the pain, pulling “recent” contacts and getting older ones back, let’s try figure why this happen.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;1. First, HubSpot filters on the internal updatedAt timestamp, not on the property you might read as lastmodifieddate; if the record got a silent system touch (owner change, association add), updatedAt can be newer than the human-visible fields, so an older looking lastmodifieddate may still pass the updatedAfter gate (&lt;A title="[Answered] How can I retrieve recently updated or created contacts using the HubSpot API?" href="https://www.scopiousdigital.com/faq/retrieve-recently-updated-created-contacts-using-hubspot-api" target="_blank"&gt;Scopious Digital&lt;/A&gt;).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;2. Add two extra params so you see exactly what HubSpot is testing:&lt;BR /&gt;&amp;amp;properties=updatedAt&amp;amp;sort=updatedAt — this returns the API’s clock value and sorts the list; you’ll notice every contact in the payload has updatedAt &amp;gt; 1747668849754, even if other dates look earlier.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;3. I’m infering you omitted archived=false; without it HubSpot can serve archived contacts that were deleted after your timestamp but originally modified long ago, which confuses the eye—try adding &amp;amp;archived=false just to be safe.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;4. Can you confirm your timestamp really is milliseconds (13 digits)? Some teams accidentally send seconds (10 digits), HubSpot then thinks you asked for 1970… tiny detail but it break the filter.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;5. If you truly need to compare on hs_lastmodifieddate instead of the backend flag, switch to the Search API and post a filter:&lt;/P&gt;
&lt;P&gt;{"filterGroups":[{"filters":[{"propertyName":"hs_lastmodifieddate","operator":"GT","value":"1747668849754"}]}]} &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Search respects any property you target, so visual dates and API dates will align.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;6. Side note: the contacts/list endpoint pages by ID, not updatedAt; an early page may still include a few edge cases even when the filter is right. Cycle through all pages (follow the paging.after cursor) before judging the set.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;7. Already a Community thread (&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/API-to-Get-recently-updated-and-created-contacts/m-p/1035231" target="_blank" rel="noopener"&gt;API to Get recently updated contacts&lt;/A&gt;) reached the same conclusion—adding the sort param plus archived flag fixed the issue for them; worth a look if you want the long version.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Hope that’s useful.&lt;/P&gt;</description>
    <pubDate>Tue, 20 May 2025 01:37:26 GMT</pubDate>
    <dc:creator>RubenBurdin</dc:creator>
    <dc:date>2025-05-20T01:37:26Z</dc:date>
    <item>
      <title>Get for contacts updateafter is not working</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-for-contacts-updateafter-is-not-working/m-p/1154425#M82179</link>
      <description>&lt;P&gt;I use the following get command&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://api.hubapi.com/crm/v3/objects/contacts?limit=100&amp;amp;updatedAfter=1747668849754" target="_blank"&gt;https://api.hubapi.com/crm/v3/objects/contacts?limit=100&amp;amp;updatedAfter=1747668849754&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1747668849754&amp;nbsp; time stamp is&amp;nbsp;Mon 19 May 2025&lt;BR /&gt;12:26:19&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;bu it's returning rows with a lastmodified date before that&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aemmi_0-1747687228949.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/146449iF9193E64FA68B22B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aemmi_0-1747687228949.png" alt="aemmi_0-1747687228949.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 20:41:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-for-contacts-updateafter-is-not-working/m-p/1154425#M82179</guid>
      <dc:creator>aemmi</dc:creator>
      <dc:date>2025-05-19T20:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get for contacts updateafter is not working</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-for-contacts-updateafter-is-not-working/m-p/1154491#M82182</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/80307"&gt;@aemmi&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I feel the pain, pulling “recent” contacts and getting older ones back, let’s try figure why this happen.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;1. First, HubSpot filters on the internal updatedAt timestamp, not on the property you might read as lastmodifieddate; if the record got a silent system touch (owner change, association add), updatedAt can be newer than the human-visible fields, so an older looking lastmodifieddate may still pass the updatedAfter gate (&lt;A title="[Answered] How can I retrieve recently updated or created contacts using the HubSpot API?" href="https://www.scopiousdigital.com/faq/retrieve-recently-updated-created-contacts-using-hubspot-api" target="_blank"&gt;Scopious Digital&lt;/A&gt;).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;2. Add two extra params so you see exactly what HubSpot is testing:&lt;BR /&gt;&amp;amp;properties=updatedAt&amp;amp;sort=updatedAt — this returns the API’s clock value and sorts the list; you’ll notice every contact in the payload has updatedAt &amp;gt; 1747668849754, even if other dates look earlier.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;3. I’m infering you omitted archived=false; without it HubSpot can serve archived contacts that were deleted after your timestamp but originally modified long ago, which confuses the eye—try adding &amp;amp;archived=false just to be safe.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;4. Can you confirm your timestamp really is milliseconds (13 digits)? Some teams accidentally send seconds (10 digits), HubSpot then thinks you asked for 1970… tiny detail but it break the filter.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;5. If you truly need to compare on hs_lastmodifieddate instead of the backend flag, switch to the Search API and post a filter:&lt;/P&gt;
&lt;P&gt;{"filterGroups":[{"filters":[{"propertyName":"hs_lastmodifieddate","operator":"GT","value":"1747668849754"}]}]} &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Search respects any property you target, so visual dates and API dates will align.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;6. Side note: the contacts/list endpoint pages by ID, not updatedAt; an early page may still include a few edge cases even when the filter is right. Cycle through all pages (follow the paging.after cursor) before judging the set.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;7. Already a Community thread (&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/API-to-Get-recently-updated-and-created-contacts/m-p/1035231" target="_blank" rel="noopener"&gt;API to Get recently updated contacts&lt;/A&gt;) reached the same conclusion—adding the sort param plus archived flag fixed the issue for them; worth a look if you want the long version.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Hope that’s useful.&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 01:37:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-for-contacts-updateafter-is-not-working/m-p/1154491#M82182</guid>
      <dc:creator>RubenBurdin</dc:creator>
      <dc:date>2025-05-20T01:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Get for contacts updateafter is not working</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-for-contacts-updateafter-is-not-working/m-p/1154759#M82188</link>
      <description>&lt;P&gt;Still not getting the desired resuts,&amp;nbsp; Even adding the suggestions it still returns the sames results.&amp;nbsp; The hs_lastmodifieddate is null, could that be the issue.&amp;nbsp; is there a different endpoint for the search API to add a filter&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the latestes endpoint I used&amp;nbsp;&lt;A href="https://api.hubapi.com/crm/v3/objects/contacts?archived=false&amp;amp;updatedAfter=1747649415695&amp;amp;limit=100&amp;amp;sort=hs_lastmodifieddate&amp;amp;properties=updatedAt,hs_lastmodifieddate,email&amp;amp;after=11318202" target="_blank"&gt;https://api.hubapi.com/crm/v3/objects/contacts?archived=false&amp;amp;updatedAfter=1747649415695&amp;amp;limit=100&amp;amp;sort=hs_lastmodifieddate&amp;amp;properties=updatedAt,hs_lastmodifieddate,email&amp;amp;after=11318202&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aemmi_0-1747751836871.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/146509iD759E8182F71B8CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aemmi_0-1747751836871.png" alt="aemmi_0-1747751836871.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 14:40:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-for-contacts-updateafter-is-not-working/m-p/1154759#M82188</guid>
      <dc:creator>aemmi</dc:creator>
      <dc:date>2025-05-20T14:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get for contacts updateafter is not working</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-for-contacts-updateafter-is-not-working/m-p/1155367#M82211</link>
      <description>&lt;P&gt;I was able to gt the desired results using the search endpoint, &lt;SPAN&gt;&lt;A href="https://api.hubapi.com/crm/v3/objects/contacts/search" target="_blank"&gt;https://api.hubapi.com/crm/v3/objects/contacts/search&lt;/A&gt;&lt;/SPAN&gt;.&amp;nbsp; I had to use&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;lastmodifieddate instead of hs_&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;lastmodifieddate as it seems this value is null for all changed records.&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 May 2025 17:21:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-for-contacts-updateafter-is-not-working/m-p/1155367#M82211</guid>
      <dc:creator>aemmi</dc:creator>
      <dc:date>2025-05-21T17:21:32Z</dc:date>
    </item>
  </channel>
</rss>

