Pull multiple properties' history for contacts Python

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:

  1. 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
  2. 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?

Hi, @td26 :waving_hand: Thanks for reaching out. Hey, @taran42 @tominal @nikodev, do you have any tips for @td26?

Thank you for taking a look! — Jaycee