# Filter contacts based on property or dates

**URL:** <https://community.hubspot.com/t/filter-contacts-based-on-property-or-dates/27682>\
**Category:** APIs & Integrations\
**Tags:** events\
**Created:** [November 6, 2020, 8:51am UTC](https://community.hubspot.com/t/filter-contacts-based-on-property-or-dates/27682 "2020-11-06T08:51:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arpit](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/arpit/32/92090_2.png) [@arpit](https://community.hubspot.com/u/arpit)\
**Post date:** [November 6, 2020, 8:51am UTC](https://community.hubspot.com/t/filter-contacts-based-on-property-or-dates/27682/1 "2020-11-06T08:51:15Z")

</div>

Hi All,

I am a developer and have requirement to pull all contacts based on property “Lead Status” New. Also I only want to fetch contacts created one week before or 10 days before.

Can someone tell me if there is any way to filter the data by giving property and two between dates.

Thanks in advance.

---

<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:** [November 6, 2020, 6:33pm UTC](https://community.hubspot.com/t/filter-contacts-based-on-property-or-dates/27682/2 "2020-11-06T18:33:33Z")

</div>

Hi @arpit ,

Please reference the [searching the crm](https://developers.hubspot.com/docs/api/crm/search?_ga=2.251236358.1635919538.1604506095-342111340.1595532887) documentation. You can filter by your lead status property and createdate property

---

<div class="post-metadata">

**Author:** ![arpit](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/arpit/32/92090_2.png) [@arpit](https://community.hubspot.com/u/arpit)\
**Post date:** [November 10, 2020, 8:14am UTC](https://community.hubspot.com/t/filter-contacts-based-on-property-or-dates/27682/3 "2020-11-10T08:14:28Z")

</div>

Hi Dennis,

That worked for me. Thank you for the help.

Arpit.
