<?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 get all contacts exists in contactlist using V3 in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-get-all-contacts-exists-in-contactlist-using-V3/m-p/1001565#M74792</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/783441"&gt;@AddaxLab&lt;/a&gt;&amp;nbsp;Thanks for your reply. I think we are pretty close to the solution.&amp;nbsp; The endpoints you mentioned are related to the contactlists. I tried the above endpoints already and those are giving me the details of the contactlist but not the contacts inside these contactlist. I have already implemented an approach to fetch the contactlists using V3. I have contactlist Id and name handy. my application just need an endpoint which brings all contacts inside the specific contactlist.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jul 2024 18:14:35 GMT</pubDate>
    <dc:creator>RKOSURI</dc:creator>
    <dc:date>2024-07-05T18:14:35Z</dc:date>
    <item>
      <title>How to get all contacts exists in contactlist using V3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-get-all-contacts-exists-in-contactlist-using-V3/m-p/1001392#M74782</link>
      <description>&lt;P&gt;Morning Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I hope you guys are doing well. I am working in a project where i need to fetch all contacts exists in contactlist using V3 endpoints. Could you please guide me in doing that? I dont find any straight endpoint to achieve the same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using below endpoint&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://api.hubapi.com/crm/v3/objects/contacts" target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v3/objects/contacts&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But it is giving all the contacts in the account. But i would like to get contacts only in specific contactlists.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 10:28:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-get-all-contacts-exists-in-contactlist-using-V3/m-p/1001392#M74782</guid>
      <dc:creator>RKOSURI</dc:creator>
      <dc:date>2024-07-05T10:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all contacts exists in contactlist using V3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-get-all-contacts-exists-in-contactlist-using-V3/m-p/1001490#M74785</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/665129"&gt;@RKOSURI&lt;/a&gt;,&lt;BR /&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;To fetch contacts from a specific contact list in HubSpot using the V3 API endpoints, you’ll need to follow a couple of steps, as there’s no direct V3 endpoint for fetching contacts in a specific contact list. Instead, you can use a combination of endpoints to achieve this.&lt;/DIV&gt;&lt;UL class=""&gt;&lt;LI&gt;To retrieve a list by name, make a GET request to /crm/v3/lists/object-type-id/{objectTypeId}/name/{listName}. The objectTypeId is the ID that corresponds to the type of object stored by the list. &lt;A href="https://developers.hubspot.com/docs/api/crm/understanding-the-crm#object-type-ids" target="_blank" rel="noopener"&gt;See the full list of object type IDs.&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;To retrieve an individual list by ILS list ID, make a GET request to /crm/v3/lists/{listId}. Learn more about finding the ILS list ID below.&lt;/LI&gt;&lt;LI&gt;To retrieve multiple listsby ILS list ID, make a GET request to /crm/v3/lists and include a listIds query parameter for each list. For example: ?listIds=940&amp;amp;listIds=938.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="02974_1-1720188405477.png" style="width: 542px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/121207i8A9935BF4CEF7129/image-dimensions/542x130?v=v2" width="542" height="130" role="button" title="02974_1-1720188405477.png" alt="02974_1-1720188405477.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 14:29:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-get-all-contacts-exists-in-contactlist-using-V3/m-p/1001490#M74785</guid>
      <dc:creator>AddaxLab</dc:creator>
      <dc:date>2024-07-05T14:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all contacts exists in contactlist using V3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-get-all-contacts-exists-in-contactlist-using-V3/m-p/1001565#M74792</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/783441"&gt;@AddaxLab&lt;/a&gt;&amp;nbsp;Thanks for your reply. I think we are pretty close to the solution.&amp;nbsp; The endpoints you mentioned are related to the contactlists. I tried the above endpoints already and those are giving me the details of the contactlist but not the contacts inside these contactlist. I have already implemented an approach to fetch the contactlists using V3. I have contactlist Id and name handy. my application just need an endpoint which brings all contacts inside the specific contactlist.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 18:14:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-get-all-contacts-exists-in-contactlist-using-V3/m-p/1001565#M74792</guid>
      <dc:creator>RKOSURI</dc:creator>
      <dc:date>2024-07-05T18:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all contacts exists in contactlist using V3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-get-all-contacts-exists-in-contactlist-using-V3/m-p/1002763#M74858</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/665129"&gt;@RKOSURI&lt;/a&gt;,&lt;BR /&gt;Here is no one API endpoint to retrieve all contacts from contact list, but you can do it in 2 steps&lt;OL class=""&gt;&lt;LI&gt;Retrieve all members from a list with a GET request to&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;A class="" href="https://api.hubapi.com/crm/v3/lists/%7BlistId%7D/memberships" target="_blank" rel="noopener noreferrer"&gt;https://api.hubapi.com/crm/v3/lists/{listId}/memberships&lt;SPAN&gt;&amp;nbsp;(replace {listId} with your actual id). Here, you retrieve a list of all member's (contacts in our case) records ids. Like that:&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;{ "results": [ { "recordId": "19625561285", "membershipTimestamp": "2024-07-08T13:22:18.815Z" } ], "total": 1 }&lt;BR /&gt;&lt;BR /&gt;&lt;DIV class=""&gt;2. Get contact IDs from the response and map them to body payload for the next POST request to&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;A class="" href="https://api.hubapi.com/crm/v3/objects/contacts/batch/read" target="_blank" rel="noopener noreferrer"&gt;https://api.hubapi.com/crm/v3/objects/contacts/batch/read&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;const body = { propertiesWithHistory: ["string"], inputs: [ { "id": "19625561285" }, // ... ADD MORE IDS HERE FROM THE RESPONSE OF THE PREVIOUS REQUEST ], properties: ["firstName", "email", "lastName"] // ADD PROPERTIES HERE };&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="02974_0-1720532729923.png" style="width: 621px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/121421i58BC12683E25B1B3/image-dimensions/621x149?v=v2" width="621" height="149" role="button" title="02974_0-1720532729923.png" alt="02974_0-1720532729923.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Jul 2024 13:46:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-get-all-contacts-exists-in-contactlist-using-V3/m-p/1002763#M74858</guid>
      <dc:creator>AddaxLab</dc:creator>
      <dc:date>2024-07-09T13:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all contacts exists in contactlist using V3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-get-all-contacts-exists-in-contactlist-using-V3/m-p/1002773#M74859</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/665129"&gt;@RKOSURI&lt;/a&gt;,&lt;BR /&gt;1.&amp;nbsp;Here is no one API endpoint to retrieve all contacts from contact list, but you can do it in 2 steps&lt;BR /&gt;Retrieve all members from a list with a GET request to &lt;A href="https://api.hubapi.com/crm/v3/lists/{listId}/memberships" target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v3/lists/{listId}/memberships&lt;/A&gt; (replace {listId} with your actual id). Here, you retrieve a list of all member's (contacts in our case) records ids. Like that:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="02974_3-1720533119301.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/121425i964627C8D1EB23D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="02974_3-1720533119301.png" alt="02974_3-1720533119301.png" /&gt;&lt;/span&gt;&lt;BR /&gt;2. Get contact IDs from the response and map them to body payload for the next POST request to &lt;A href="https://api.hubapi.com/crm/v3/objects/contacts/batch/read" target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v3/objects/contacts/batch/read&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="02974_4-1720533137227.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/121426iBFCA7783B63A5ABE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="02974_4-1720533137227.png" alt="02974_4-1720533137227.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="02974_2-1720532998776.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/121424i5FEA46231D88FDD2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="02974_2-1720532998776.png" alt="02974_2-1720532998776.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 13:52:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-get-all-contacts-exists-in-contactlist-using-V3/m-p/1002773#M74859</guid>
      <dc:creator>AddaxLab</dc:creator>
      <dc:date>2024-07-09T13:52:50Z</dc:date>
    </item>
  </channel>
</rss>

