# Filtering Contacts while retrieving propertiesWithHistory

**URL:** <https://community.hubspot.com/t/filtering-contacts-while-retrieving-propertieswithhistory/121401>\
**Category:** APIs & Integrations\
**Tags:** contacts, starter\
**Created:** [November 26, 2024, 3:37pm UTC](https://community.hubspot.com/t/filtering-contacts-while-retrieving-propertieswithhistory/121401 "2024-11-26T15:37:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucas6](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lucas6/32/79241_2.png) [@lucas6](https://community.hubspot.com/u/lucas6)\
**Post date:** [November 26, 2024, 3:37pm UTC](https://community.hubspot.com/t/filtering-contacts-while-retrieving-propertieswithhistory/121401/1 "2024-11-26T15:37:34Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [November 26, 2024, 11:10pm UTC](https://community.hubspot.com/t/filtering-contacts-while-retrieving-propertieswithhistory/121401/2 "2024-11-26T23:10:45Z")

</div>

Hey, @lucas6 👋 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
