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

Highlighted
Not applicable

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....

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_h.... How i can collect historical data for the selected contact through API.

Suggestions are welcome thanks.

Regards
Gokulakrishnan.

Reply
0 Upvotes
6 Replies 6
Highlighted
HubSpot Moderator

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?

Reply
0 Upvotes
Highlighted
Not applicable

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_h...

Reply
0 Upvotes
Highlighted
HubSpot Moderator

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?

Reply
0 Upvotes
Highlighted
Not applicable

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

Reply
0 Upvotes
Highlighted
HubSpot Moderator

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.

Reply
0 Upvotes
Highlighted
Occasional Contributor

I'm seeing this (but with companies, not contacts) and struggling to make a new post, it keeps giving me an error

Reply
0 Upvotes