# Filter Contact Creation Date via API

**URL:** <https://community.hubspot.com/t/filter-contact-creation-date-via-api/117285>\
**Category:** APIs & Integrations\
**Tags:** free\
**Created:** [September 29, 2024, 12:58am UTC](https://community.hubspot.com/t/filter-contact-creation-date-via-api/117285 "2024-09-29T00:58:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HPinedaB](https://avatars.discourse-cdn.com/v4/letter/h/e19adc/32.png) [@HPinedaB](https://community.hubspot.com/u/HPinedaB)\
**Post date:** [September 29, 2024, 12:58am UTC](https://community.hubspot.com/t/filter-contact-creation-date-via-api/117285/1 "2024-09-29T00:58:21Z")

</div>

Hello, I am downloading contacts generated in the CRM via API. I need to filter the contacts created after a specific date to avoid downloading all the records each time. However, the date filter I am providing is not working. I see that the date is in the format “2024-09-07T22:02:43.779Z” and I am sending it in the same format. I would appreciate any advice on how to make this request to the API to filter records created after this date. I am working with JavaScript. Thank you in advance.

---

<div class="post-metadata">

**Author:** ![FarioConsulting](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@FarioConsulting](https://community.hubspot.com/u/FarioConsulting)\
**Post date:** [September 29, 2024, 10:34am UTC](https://community.hubspot.com/t/filter-contact-creation-date-via-api/117285/2 "2024-09-29T10:34:31Z")

</div>

Hi Hernán,

You can use the GTE (Greater than or equal to) operator with your date filter to retrieve contacts created after a specific date

---

<div class="post-metadata">

**Author:** ![RKon](https://avatars.discourse-cdn.com/v4/letter/r/e8c25b/32.png) [@RKon](https://community.hubspot.com/u/RKon)\
**Post date:** [September 29, 2024, 12:05pm UTC](https://community.hubspot.com/t/filter-contact-creation-date-via-api/117285/3 "2024-09-29T12:05:48Z")

</div>

hello@HPinedaB

To filter contacts by creation date using the HubSpot API in JavaScript, you need to ensure that you’re using the correct query parameters and the correct format for the date field. When filtering by date, you should use the GTE (greater than or equal to) operator to retrieve contacts created after your specified date.

Ensure the date is in the correct format, but the format you mentioned should work. When using the API, you’ll need to pass the filter condition properly in your request.
