Filtering Contacts while retrieving propertiesWithHistory

Hi everyone,

I’m currently working on a project that requires retrieving historical data for specific properties of selected contacts. Usually, this can be achieved using the

/crm/v3/objects/contacts

endpoint with the

propertiesWithHistory

parameter, and it works perfectly for general use cases.

However, my challenge is to fetch

propertiesWithHistory

specifically for a subset of contacts rather than retrieving this data for all contacts.

I understand that the

/crm/v3/objects/contacts/search

endpoint allows filtering contacts using

FilterGroups

, which is great for narrowing down results, but it doesn’t seem to support the

propertiesWithHistory

parameter.

Does anyone know if there’s a way to achieve this? Any suggestions or workarounds would be greatly appreciated!

Thanks in advance for your help!

Hey, @lucas6 :waving_hand: My hunch is you’d need to split this up into two calls — one to get the Contact IDs from the Search API with filters and then one to the Batch Contact Endpoint so you can include the `propertiesWithHistory` param in your request.

Best,

Jaycee