# API Integration

**URL:** <https://community.hubspot.com/t/api-integration/13893>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [April 8, 2019, 4:48pm UTC](https://community.hubspot.com/t/api-integration/13893 "2019-04-08T16:48:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adaptive](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/adaptive/32/32521_2.png) [@Adaptive](https://community.hubspot.com/u/Adaptive)\
**Post date:** [April 8, 2019, 4:48pm UTC](https://community.hubspot.com/t/api-integration/13893/1 "2019-04-08T16:48:04Z")

</div>

Hi,

I am creating a connection with the API to update a internal report to my client.

I have some questions on where is the correct endpoint to perform the requests.

I would like to get forms submissions under a specific filter.

I am using:

[https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=XXXXXX&properties=original%20source%3DPaid%20Search](https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=cebdc18f-6b22-4bd8-8d5d-a6ab6d1f50c0&properties=original%20source%3DPaid%20Search)

Question: does the request below only return the contacts with the filter sent on “properties” parameter?

If I want include one more filter, how is the correct way of doing that?

I also would like to include a date range to only get the the information for that specific time range, how could I do that?

Example:

I would like to get -

Form submissions;

Between: 01/04/2019 to 08/04/2019;

Original Source = Paid Search;

Original Source Drill Down 1 = GDN;

How is the best way of doing that?

Thank you,

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [April 9, 2019, 2:56pm UTC](https://community.hubspot.com/t/api-integration/13893/2 "2019-04-09T14:56:03Z")

</div>

Hi @Adaptive, you’re using the [get all contacts](https://developers.hubspot.com/docs/methods/contacts/get_contacts) endpoint, correct? If so, you need to use **&property** not **&properties**. You can add multiple **&property** items to the URL. You should also be using the internal value of the property, not the Label. Check the property in your settings to find the internal value.

All the information you’re looking for can be found in the docs here: [https://developers.hubspot.com/docs/methods/lists/get\_list\_contacts](https://developers.hubspot.com/docs/methods/lists/get_list_contacts)  
The request will not “filter” the contacts. It will still return all contacts, but by adding the **&property** parameter, it’ll return the fields you specify in the URL in the response. From the docs on the property param:  
“By default, only a few standard properties will be included in the response data. If you include the ‘property’ parameter, then you will instead get the specified property in the response. This parameter may be included multiple times to specify multiple properties. NOTE: Contacts only store data for properties with a value, so records with no value for a property will not include that property, even if the property is specified in the request URL.”
