Goal: pull the property and it’s timestamp (latest source).
Using the python package for the API, I want to pull two properties’ values and history for all users (I won’t focus on the batching/offsetting since that’s just adding more to the request/URL from previous response).
Here’s what I noticed:
- pulling two properties achieves the most recent for each property per vid: f’https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey={hs_key}&property=hs_latest_source_timestamp&property=hs_latest_source’
- pulling two properties’ values and histories only pulls 1 property’s history and the other’s recent value: f’https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey={hs_key}&property=hs_latest_source_timestamp&property=hs_latest_source&propertyMode=value_and_history’
(2) above means I cannot actually get two properties at once how I intuitively want (two properties which have same number of values [equal history length] that can be joined by vid and display order, or some equivalent). How do I get this?