# API Get Lead matching specific criteria

**URL:** <https://community.hubspot.com/t/api-get-lead-matching-specific-criteria/11522>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [October 3, 2018, 2:13pm UTC](https://community.hubspot.com/t/api-get-lead-matching-specific-criteria/11522 "2018-10-03T14:13:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [October 3, 2018, 2:13pm UTC](https://community.hubspot.com/t/api-get-lead-matching-specific-criteria/11522/1 "2018-10-03T14:13:25Z")

</div>

Hi

Is it possible to extract via API only a certain/specific type of Contact / Lead from HubSpot as opposed to extracting all Leads / Contacts.

For example all Leads / Contacts recently entered that meet a certain “Lifecycle Stage” or a Lead / Contact with a particular area of interest.

Thanks

Jase

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [October 4, 2018, 1:54pm UTC](https://community.hubspot.com/t/api-get-lead-matching-specific-criteria/11522/2 "2018-10-04T13:54:17Z")

</div>

Hi [@jase\_jackson](https://community.hubspot.com/u/jase_jackson),

If you have Marketing Hub access, your best bet is to [create an active list](https://knowledge.hubspot.com/articles/kcs_article/lists/create-active-or-static-lists) with the desired filters and then pull the contacts in that list with [this endpoint](https://developers.hubspot.com/docs/methods/lists/get_list_contacts).
