<?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: How to fetch more than 10,000 records using Hubspot API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-fetch-more-than-10-000-records-using-Hubspot-API/m-p/626034#M52847</link>
    <description>&lt;P&gt;I Have same question !!&lt;BR /&gt;Eagerly Waiting for reply.&lt;/P&gt;</description>
    <pubDate>Tue, 03 May 2022 09:28:50 GMT</pubDate>
    <dc:creator>vkumar34</dc:creator>
    <dc:date>2022-05-03T09:28:50Z</dc:date>
    <item>
      <title>How to fetch more than 10,000 records using Hubspot API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-fetch-more-than-10-000-records-using-Hubspot-API/m-p/571539#M50745</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using Deal search API to fetch records with some conditions on it, but I found from the docs that search API is limited to 10,000 records and we can't paginate more than that, and also there is request limit of 4 request/second. So I suppose that even I can't get all the 10, 000 records since that would contain 100 API calls.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Question is there way I can fetch all the available records with any other API with some conditions applied on the properties&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 13:03:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-fetch-more-than-10-000-records-using-Hubspot-API/m-p/571539#M50745</guid>
      <dc:creator>EInc</dc:creator>
      <dc:date>2022-02-08T13:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch more than 10,000 records using Hubspot API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-fetch-more-than-10-000-records-using-Hubspot-API/m-p/572447#M50746</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/319353"&gt;@EInc&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to tag some of our experts on this -&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/20405"&gt;@himanshurauthan&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/193060"&gt;@JBeatty&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/66301"&gt;@Bryantworks&lt;/a&gt;&amp;nbsp;do you have any thought for&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/319353"&gt;@EInc&lt;/a&gt;&amp;nbsp;on this?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;Tiphaine&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 11:11:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-fetch-more-than-10-000-records-using-Hubspot-API/m-p/572447#M50746</guid>
      <dc:creator>TitiCuisset</dc:creator>
      <dc:date>2022-02-09T11:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch more than 10,000 records using Hubspot API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-fetch-more-than-10-000-records-using-Hubspot-API/m-p/626034#M52847</link>
      <description>&lt;P&gt;I Have same question !!&lt;BR /&gt;Eagerly Waiting for reply.&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 09:28:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-fetch-more-than-10-000-records-using-Hubspot-API/m-p/626034#M52847</guid>
      <dc:creator>vkumar34</dc:creator>
      <dc:date>2022-05-03T09:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch more than 10,000 records using Hubspot API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-fetch-more-than-10-000-records-using-Hubspot-API/m-p/913940#M70699</link>
      <description>&lt;P&gt;The Search API returns records starting with the lowest object ID, by default. Therefore, in order to get around this, you'd need to implement a check in your code that logs 2 things.&lt;/P&gt;
&lt;P&gt;1. The "after" value&lt;/P&gt;
&lt;P&gt;2. The last ID&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once the after value reaches 10,000, you'll need to jump to a new loop in your code that resets the after value, and does a seach for record IDs greater than the last ID value from above. Every time you hit the 10000 after value, you'll need to restart your loop.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 13:51:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-fetch-more-than-10-000-records-using-Hubspot-API/m-p/913940#M70699</guid>
      <dc:creator>DPassman</dc:creator>
      <dc:date>2024-01-30T13:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch more than 10,000 records using Hubspot API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-fetch-more-than-10-000-records-using-Hubspot-API/m-p/938201#M71656</link>
      <description>&lt;P&gt;Going off of the previous posts, the way I have solved this is to re-index instead of paging thorugh. To do this, on the "get" I am sorting by the ID ascending, and storing the last id (array[99]) since I am grabbing 100 at a time.&amp;nbsp; On the next time through I am then checking for hs_object_id to be greater than that stored last id. This is my pseudo code to make this possible and it is pretty seamless&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp; "limit": 100,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; "after": "0",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; "properties": [ "firstname", "email", "lastname"],&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; "filterGroups":[&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "filters":[&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "propertyName": "lastmodifieddate",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "operator": "GTE",&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"value": "{last date to get from}"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "propertyName": "hs_object_id",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "operator": "GT",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "value": "{last id stored value (default to 0)}"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ]&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; ],&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; "sorts": [&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "propertyName": "id",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "direction": "ASCENDING"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; ]&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Mar 2024 20:04:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-fetch-more-than-10-000-records-using-Hubspot-API/m-p/938201#M71656</guid>
      <dc:creator>GLanker</dc:creator>
      <dc:date>2024-03-05T20:04:04Z</dc:date>
    </item>
  </channel>
</rss>

