# Pull multiple properties' history for contacts Python

**URL:** <https://community.hubspot.com/t/pull-multiple-properties-history-for-contacts-python/71335>\
**Category:** APIs & Integrations\
**Tags:** python, contacts\
**Created:** [December 15, 2022, 9:17pm UTC](https://community.hubspot.com/t/pull-multiple-properties-history-for-contacts-python/71335 "2022-12-15T21:17:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![td26](https://avatars.discourse-cdn.com/v4/letter/t/94ad74/32.png) [@td26](https://community.hubspot.com/u/td26)\
**Post date:** [December 15, 2022, 9:17pm UTC](https://community.hubspot.com/t/pull-multiple-properties-history-for-contacts-python/71335/1 "2022-12-15T21:17:55Z")

</div>

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](https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=%7Bhs_key%7D&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](https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=%7Bhs_key%7D&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?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [December 19, 2022, 8:33pm UTC](https://community.hubspot.com/t/pull-multiple-properties-history-for-contacts-python/71335/2 "2022-12-19T20:33:48Z")

</div>

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

Thank you for taking a look! — Jaycee
