# Get Contacts from contact list using email

**URL:** <https://community.hubspot.com/t/get-contacts-from-contact-list-using-email/33013>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [March 11, 2021, 9:42am UTC](https://community.hubspot.com/t/get-contacts-from-contact-list-using-email/33013 "2021-03-11T09:42:15Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![VNambiar](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/vnambiar/32/81360_2.png) [@VNambiar](https://community.hubspot.com/u/VNambiar)\
**Post date:** [March 11, 2021, 9:42am UTC](https://community.hubspot.com/t/get-contacts-from-contact-list-using-email/33013/1 "2021-03-11T09:42:15Z")

</div>

I know that we have contact list api to fetch all the contacts inside a list. I would like to know if there is a way to fetch only one contact from the list using just the email.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [March 11, 2021, 7:09pm UTC](https://community.hubspot.com/t/get-contacts-from-contact-list-using-email/33013/2 "2021-03-11T19:09:26Z")

</div>

Hi @VNambiar ,

If you know the email why not use this [contact endpoint](https://legacydocs.hubspot.com/docs/methods/contacts/get_contact_by_email)?

---

<div class="post-metadata">

**Author:** ![daniiliciouz](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/daniiliciouz/32/93181_2.png) [@daniiliciouz](https://community.hubspot.com/u/daniiliciouz)\
**Post date:** [March 17, 2021, 8:02am UTC](https://community.hubspot.com/t/get-contacts-from-contact-list-using-email/33013/3 "2021-03-17T08:02:44Z")

</div>

Hello @dennisedson,

I was wondering about almost the same question, is this api you mentioned - not going to be deprecated? Right now I’m basing my thouhgts on new documentation: [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/api/crm/contacts) and it doesn’t have a method to update contact just by their email as I understand.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [March 17, 2021, 3:12pm UTC](https://community.hubspot.com/t/get-contacts-from-contact-list-using-email/33013/4 "2021-03-17T15:12:25Z")

</div>

@daniiliciouz , this will not be deprecated anytime soon. And the team is working on an equivalent for the V3 APIs so you will be able to smoothly transition when it is time

---

<div class="post-metadata">

**Author:** ![VNambiar](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/vnambiar/32/81360_2.png) [@VNambiar](https://community.hubspot.com/u/VNambiar)\
**Post date:** [March 17, 2021, 6:20am UTC](https://community.hubspot.com/t/get-contacts-from-contact-list-using-email/33013/5 "2021-03-17T06:20:02Z")

</div>

Yes, but I also want to make sure that it exists in a particular list. I mean i want to check whether the user associated with the email id provided is a member of one particular list, say list\_id: 2

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [March 17, 2021, 3:32pm UTC](https://community.hubspot.com/t/get-contacts-from-contact-list-using-email/33013/6 "2021-03-17T15:32:02Z")

</div>

@VNambiar could you write this logic into your app? Probably need more context to fully understand this \

@RMones , what do you think?

---

<div class="post-metadata">

**Author:** ![VNambiar](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/vnambiar/32/81360_2.png) [@VNambiar](https://community.hubspot.com/u/VNambiar)\
**Post date:** [March 18, 2021, 4:42am UTC](https://community.hubspot.com/t/get-contacts-from-contact-list-using-email/33013/7 "2021-03-18T04:42:49Z")

</div>

@dennisedson , I will explain my scenario in detail.  
1. I have a mobile application that lets my users chat with each other.  
2. My users are of two categories: a) Freemium b)Premium.  
3. Whenever a new user is registered with the app then they are put in the Freemium list.(No cotanct list for this category)  
4. When the user is subscribed to the app then they are put in to a contact list of Premium.  
5. So in my application whenever a user logs in I need to check if that particular user is a premium member or not.  
6. So currently I am doing it by hiting the contact list api that fetches me all of the contacts in that list and then in the application I am iterating through all of the contacts to check for the current user’s email ID in it.  
7. So the problem here is that this will work when there are few users. But my application will have 10000 and more users so this will be a heavey task of iteration for the mobile application.  
So I was wondering if the api has some filter parameters that would let me know with the help of the email ID whether the provided email ID is the member of the list or not, rather than getting all the contacts from the list. Or any other api that would help me deal with this situation.  
Thank you,  
Vineeth

---

<div class="post-metadata">

**Author:** ![RMones](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rmones/32/82797_2.png) [@RMones](https://community.hubspot.com/u/RMones)\
**Post date:** [March 18, 2021, 3:16pm UTC](https://community.hubspot.com/t/get-contacts-from-contact-list-using-email/33013/8 "2021-03-18T15:16:29Z")

</div>

Hi @VNambiar ,

Is it not easier for you to use the search API for Contacts?

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fapi-reference%2Fcrm-contacts-v3%2Fguide)**

Check if a contact with the email address exists, if yes, then Get the the Contact by the Id via via [https://legacydocs.hubspot.com/docs/methods/contacts/get\_contact](https://legacydocs.hubspot.com/docs/methods/contacts/get_contact)

and check if your user is in the “list-memberships” list.

Or another option is (I think much easier):  
Create e new propery; membership\_type or something.  
If a User will register for Premium, set a property on the Contact from Freemium to Premium.  
If a User logs in, then search with the Contact API for the Email adress and add the new property to your search request to add it to the response of hubspot.

And then check the new property for his value; Freemium or Premium.

Greets,

Ronald

---

<div class="post-metadata">

**Author:** ![VNambiar](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/vnambiar/32/81360_2.png) [@VNambiar](https://community.hubspot.com/u/VNambiar)\
**Post date:** [March 23, 2021, 8:17am UTC](https://community.hubspot.com/t/get-contacts-from-contact-list-using-email/33013/9 "2021-03-23T08:17:16Z")

</div>

@RMones , Thanks a lot. This helped me i.e your first solution. I used the contact api to get the user’s profile by their email ID and checked inside the “list-membership” to check if the user is a member of a list. The second solution also looks promising for me, I will try that too. Thanks a lot once again to everyone.

---

<div class="post-metadata">

**Author:** ![syousef](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@syousef](https://community.hubspot.com/u/syousef)\
**Post date:** [August 25, 2022, 1:40pm UTC](https://community.hubspot.com/t/get-contacts-from-contact-list-using-email/33013/10 "2022-08-25T13:40:04Z")

</div>

can you send to me the code
