# Extra properties contacts.get\_all()

**URL:** <https://community.hubspot.com/t/extra-properties-contacts-get-all/76308>\
**Category:** APIs & Integrations\
**Tags:** python\
**Created:** [March 1, 2023, 8:51pm UTC](https://community.hubspot.com/t/extra-properties-contacts-get-all/76308 "2023-03-01T20:51:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RCoronel](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@RCoronel](https://community.hubspot.com/u/RCoronel)\
**Post date:** [March 1, 2023, 8:51pm UTC](https://community.hubspot.com/t/extra-properties-contacts-get-all/76308/1 "2023-03-01T20:51:57Z")

</div>

When executing this code:

`contacts_fetched = api_client.crm.contacts.get_all()`

The response is the following

```lia-code-sample
'id': '15251',
 'properties': {'createdate': '2023-02-24T06:55:51.430Z',
 'email': 'emailmaria@hubspot.com',
 'firstname': 'Maria',
 'hs_object_id': '15251',
 'lastmodifieddate': '2023-02-24T06:55:58.246Z',
 'lastname': 'Johnson (Sample Contact)'},
 'properties_with_history': None,
 'updated_at': datetime.datetime(2023, 2, 24, 6, 55, 58, 246000, tzinfo=tzutc())}, {'archived': False,
 'archived_at': None,
 'associations': None,
 'created_at': datetime.datetime(2023, 2, 24, 7, 0, 9, 664000, tzinfo=tzutc()),

```

I need to add the phone number, website, and other custom properties to the properties retrieved.  
but currently I cant find a way to do it in the publicly available documentation, does anybody have a way to solve it, there is old post that just add it to the parameters of the URL with something like:

`https://api.hubspot.com/crm/v3/objects/contacts?properties=email&associations=companies`

but I’m not sure how to use this with the current Hubspot library, and when I try to use it like a regular API it returns a 401 Http Error

---

<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:** [March 2, 2023, 7:02pm UTC](https://community.hubspot.com/t/extra-properties-contacts-get-all/76308/2 "2023-03-02T19:02:15Z")

</div>

Hi, @RCoronel 👋 I’m going to assume you are using the CRM API | Contacts. Let’s try by using the provided example listed here — [GET /crm/v3/objects/contacts](https://developers.hubspot.com/docs/api/crm/contacts).

- For my test we’ll add three additional properties — Phone number (default), website URL (default), and Ultimate Pet (a custom property)

- You’ll format the request like this:

- Response that includes our additional responses:

- My suggestion is to try using the endpoint and example listed in the documentation, and run a few quick tests. This should help clarify how the formatting will look for your request.

Have fun building! — Jaycee

---

<div class="post-metadata">

**Author:** ![RCoronel](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@RCoronel](https://community.hubspot.com/u/RCoronel)\
**Post date:** [March 3, 2023, 6:52pm UTC](https://community.hubspot.com/t/extra-properties-contacts-get-all/76308/3 "2023-03-03T18:52:57Z")

</div>

thanks so much that did help, but now I have a different issue, I’m getting a truncated contact with its properties:

```lia-code-sample
{'id': '8501', 
'properties': {
'createdate': '2020-12-31T16:55:09.398Z', 
'hs_object_id': '8501', 
'lastmodifieddate': '2023-02-23T17:48:31.971Z'}, 
'properties_with_history': None, 
'created_at': datetime.datetime(2020, 12, 31, 16, 55, 9, 398000, tzinfo=tzutc()), 'updated_at': datetime.datetime(2023, 2, 23, 17, 48, 31, 971000, tzinfo=tzutc()), 'archived': False, 'archived_at': None, 'associations': None}

```

that from this piece of code:

```lia-code-sample
import hubspot
from hubspot.crm.contacts import ApiException

api_response = client.crm.contacts.basic_api.get_page(limit=limit, properties=["email,firstname,lastname,phone,website,company"], archived=False, after=after)

for contact in api_response:
 foo(contact)

```

and that ID corresponds with actual contact with properties in it.

---

<div class="post-metadata">

**Author:** ![RCoronel](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@RCoronel](https://community.hubspot.com/u/RCoronel)\
**Post date:** [March 3, 2023, 8:14pm UTC](https://community.hubspot.com/t/extra-properties-contacts-get-all/76308/4 "2023-03-03T20:14:29Z")

</div>

thanks [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) that help a lot but now its truncating some of the responses, a get close to 200 contacts without any relevant property only:  
‘createdate’  
‘hs\_object\_id’  
‘lastmodifieddate’
