APIs & Integrations

適用対象外

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

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.

0 いいね!
6件の返信
Derek_Gervais
元HubSpot社員
元HubSpot社員

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

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.

0 いいね!
courtenaysfs
参加者

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

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

0 いいね!
Derek_Gervais
元HubSpot社員
元HubSpot社員

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

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?

0 いいね!
適用対象外

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

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

0 いいね!
Derek_Gervais
元HubSpot社員
元HubSpot社員

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

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?

0 いいね!
適用対象外

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

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

0 いいね!