Get Contacts by Creation Date

Hello!

I want to get only the contacts of an especific date, but the API only has this service Get All Contacts , this take to much time, because there are many contacts created.

How can I get this in a better way?

Could you please help me?

Thanks!

Hi, @gmites.

While there is currently no way to filter the results of the Get all contacts endpoint by create date, here are two alternatives:

  1. Use the Get recently created contacts endpoint, which returns the most recently created contacts first.
  2. Create an active list that contains contacts created in the desired time frame, then retrieve the contacts with the Get contacts in a list endpoint.

Try a POST request to https://api.hubapi.com/crm/v3/objects/contacts/search

with a body like this

{

“filterGroups”:[

{

  "filters":\[

    {

     "propertyName":"createdate",

     "operator":"GTE",

     "value": "2023-12-31T00:00:00Z"

    }

  ]

}

]

}