# Specify multiple properties when getting contacts via List API

**URL:** <https://community.hubspot.com/t/specify-multiple-properties-when-getting-contacts-via-list-api/80699>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [May 5, 2023, 11:33pm UTC](https://community.hubspot.com/t/specify-multiple-properties-when-getting-contacts-via-list-api/80699 "2023-05-05T23:33:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ellingtonjp](https://avatars.discourse-cdn.com/v4/letter/e/aca169/32.png) [@ellingtonjp](https://community.hubspot.com/u/ellingtonjp)\
**Post date:** [May 5, 2023, 11:33pm UTC](https://community.hubspot.com/t/specify-multiple-properties-when-getting-contacts-via-list-api/80699/1 "2023-05-05T23:33:27Z")

</div>

I am attempting to use the List API to get all contacts in a particular list. Specifically, the endpoint [here](https://legacydocs.hubspot.com/docs/methods/lists/get_list_contacts).

I want to specify contact properties to be included in the response. The docs say to use the “Property” parameter. This works fine for a single property, but there is no information on how to specify more than one.

Things I have tried that do not work:

\* using an array, ie

`/contacts/v1/lists/208/contacts/all?property[]=email&property[]=company`

\* using various delimiters, including whitespace, comma, and semicolon. i.e.

```lia-code-sample
property=email,company
property=email;company
property=email|company
property=email company

```

(excluded URL encoding for clarity, but was properly encoded)

How do I specify multiple properties?

---

<div class="post-metadata">

**Author:** ![himanshurauthan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/himanshurauthan/32/53076_2.png) [@himanshurauthan](https://community.hubspot.com/u/himanshurauthan)\
**Post date:** [May 8, 2023, 7:17am UTC](https://community.hubspot.com/t/specify-multiple-properties-when-getting-contacts-via-list-api/80699/2 "2023-05-08T07:17:35Z")

</div>

Hello @ellingtonjp  
To specify multiple properties when getting contacts via the List API in HubSpot, you can use the following format for the “property” parameter.

```lia-code-sample
property=email&property=company

```

This format should allow you to specify multiple properties as comma-separated values, without any special characters or delimiters. For example, if you want to include the email, company name, and phone number properties, your API call would look like this

```lia-code-sample
/contacts/v1/lists/208/contacts/all?property=email&property=company&property=phone

```

Make sure to separate each property with the &property= parameter, as shown above. Also, note that the HubSpot API requires each property to be specified separately, rather than as an array or a single string.
