Filter Contact Creation Date via API

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.

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

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.