<?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 How to fetch more than 100 objects when using the HubSpot v2 API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-fetch-more-than-100-objects-when-using-the-HubSpot-v2-API/m-p/709952#M58123</link>
    <description>&lt;P&gt;I am trying to fetch data for all my pages using the v2 API but it limits the objects to 100 when I try to do the same. How to get all the results or see the next set of results using the API?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the API I'm using:&amp;nbsp;&lt;A href="https://api.hubapi.com/content/api/v2/pages?hapikey=******" target="_blank"&gt;https://api.hubapi.com/content/api/v2/pages?hapikey=******&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Oct 2022 13:45:58 GMT</pubDate>
    <dc:creator>Vedant</dc:creator>
    <dc:date>2022-10-25T13:45:58Z</dc:date>
    <item>
      <title>How to fetch more than 100 objects when using the HubSpot v2 API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-fetch-more-than-100-objects-when-using-the-HubSpot-v2-API/m-p/709952#M58123</link>
      <description>&lt;P&gt;I am trying to fetch data for all my pages using the v2 API but it limits the objects to 100 when I try to do the same. How to get all the results or see the next set of results using the API?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the API I'm using:&amp;nbsp;&lt;A href="https://api.hubapi.com/content/api/v2/pages?hapikey=******" target="_blank"&gt;https://api.hubapi.com/content/api/v2/pages?hapikey=******&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 13:45:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-fetch-more-than-100-objects-when-using-the-HubSpot-v2-API/m-p/709952#M58123</guid>
      <dc:creator>Vedant</dc:creator>
      <dc:date>2022-10-25T13:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch more than 100 objects when using the HubSpot v2 API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-fetch-more-than-100-objects-when-using-the-HubSpot-v2-API/m-p/710208#M58145</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/272420"&gt;@Vedant&lt;/a&gt;&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for reaching out! Have you tried using the offset param? I am going to assume this is common knowledge, and I'll list it out anyway &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Definition:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;offset = The offset set to start returning rows from. Defaults to 0.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Let's assume you have 500 pages&lt;/LI&gt;
&lt;LI&gt;Because it begins at 0 (zero) we can use this call to get the first 100 (0-99)&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;GET https://api.hubapi.com/content/api/v2/pages?limit=100​&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;LI&gt;Then we can get the second 100 (100-199) by adding an offset of 100&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;GET https://api.hubapi.com/content/api/v2/pages?limit=100&amp;amp;offset=100​&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can do a simplified test by:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;making a request using the param ?limit=3 to get pages 1-3 (0-2)&lt;/LI&gt;
&lt;LI&gt;then a second request using the param ?limit=3&amp;amp;offset=3 to get pages 4-6 (3-5)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Have fun building! — Jaycee&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 20:57:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-fetch-more-than-100-objects-when-using-the-HubSpot-v2-API/m-p/710208#M58145</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2022-10-25T20:57:01Z</dc:date>
    </item>
  </channel>
</rss>

