# Retrieve contacts based on views

**URL:** <https://community.hubspot.com/t/retrieve-contacts-based-on-views/105748>\
**Category:** APIs & Integrations\
**Tags:** python, contacts\
**Created:** [April 25, 2024, 9:23am UTC](https://community.hubspot.com/t/retrieve-contacts-based-on-views/105748 "2024-04-25T09:23:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KGondek](https://avatars.discourse-cdn.com/v4/letter/k/d07c76/32.png) [@KGondek](https://community.hubspot.com/u/KGondek)\
**Post date:** [April 25, 2024, 9:23am UTC](https://community.hubspot.com/t/retrieve-contacts-based-on-views/105748/1 "2024-04-25T09:23:04Z")

</div>

Good morning

Apologies if someone already asked elsewhere,

I am utilizing the API to retrieve all contacts from our records and then perform tasks on them. However, there are many custom made views created by the Sales team which only contain some of these contacts. I’d like to only retrieve the contacts which are contained within those views, is there an option to do so?

Thank you

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [April 25, 2024, 5:14pm UTC](https://community.hubspot.com/t/retrieve-contacts-based-on-views/105748/2 "2024-04-25T17:14:46Z")

</div>

Hey, @KGondek 👋 the Export API will allow you to export a View. You’ll have to set up the filters and search operators to match what is set in-app — [Export a view](https://developers.hubspot.com/docs/api/crm/exports#export-a-view).

Best,

Jaycee
