How to collect all the property history for single contact through API

contacts

#1

Hi All,

Good Day...!

Want to collect the historical data through API as same as https://knowledge.hubspot.com/articles/kcs_article/contacts/how-do-i-see-the-historical-values-for-a-contact-company-or-deal-property.

Currently I am getting only the last updated data through https://api.hubapi.com/contacts/v1/contact/vid/231xxxx/profile?hapikey=demo&propertyMode=value_and_history. How i can collect historical data for the selected contact through API.

Suggestions are welcome thanks.

Regards
Gokulakrishnan.


#2

Hi @gokulakrishnanks,

You should be getting all contact properties that have a value, and by including propertyMode=value_and_history you should be seeing the history for each of those contacts. Are you including a &property= parameter as well? Can you give me a link to the contact in your portal you're trying to get the history for?


#3

He Derek,

Good Day...!

Thanks for the reply and i am not passing any Properties. I am Getting only for the particular contacts ...

Below the structure i am using to collect the details

https://api.hubapi.com/contacts/v1/contact/vid/231xxxx/profile?hapikey=demo&propertyMode=value_and_history


#4

Hi @gokulakrishnanks,

Are you replacing the demo hapikey with your own hapikey? Can you give me an example contact that has history you're not able to see with that request?


#5

Hi Derek,
Good Day... ! & Thanks for your support,

Our business doesn't allow to share the details with anyone from outside the organization. So I have edited the URL with demo and posted.

We are getting the versions but not all only last modified


#6

Hi @gokulakrishnanks,

If you're setting the &propertyMode= parameter to value_and_history, then you should be getting the full property history for each property. This might only be a single value if the property in questions hasn't been updated before. Without a concrete example, I'm not really able to dig much deeper into this. Feel free to DM me any details you don't want to share publicly.