# getting filtered contacts using API

**URL:** <https://community.hubspot.com/t/getting-filtered-contacts-using-api/78594>\
**Category:** APIs & Integrations\
**Tags:** starter\
**Created:** [April 3, 2023, 1:46pm UTC](https://community.hubspot.com/t/getting-filtered-contacts-using-api/78594 "2023-04-03T13:46:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sBalasubraman](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@sBalasubraman](https://community.hubspot.com/u/sBalasubraman)\
**Post date:** [April 3, 2023, 1:46pm UTC](https://community.hubspot.com/t/getting-filtered-contacts-using-api/78594/1 "2023-04-03T13:46:12Z")

</div>

I’m trying to use search contacts API and getting the contacts with lead source value as Marketing qualified leads.

I’m not sure whats causing this response.

 ![sBalasubraman_0-1680529743004.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/8/86729c4170c1191031e5877519aa02256a72dd11.png)

---

<div class="post-metadata">

**Author:** ![SSukys](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ssukys/32/35013_2.png) [@SSukys](https://community.hubspot.com/u/SSukys)\
**Post date:** [April 3, 2023, 4:37pm UTC](https://community.hubspot.com/t/getting-filtered-contacts-using-api/78594/2 "2023-04-03T16:37:03Z")

</div>

Hey @sBalasubraman happy to hop in and help here. This is an intersting problem and could be a number of issues. I see you are using Postman to run this request, lets check something first to make sure its not an easy problem to solve.

First, can you run this request to the API without specifying parameters?

My initial thought is your authorization headers may be incorrect. Running without the paramaters can help us narrow down the problem for you! Lets start there and I will monitor this thread to assist as we test together! Looking forward to solving this for you.

Sean

---

<div class="post-metadata">

**Author:** ![sBalasubraman](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@sBalasubraman](https://community.hubspot.com/u/sBalasubraman)\
**Post date:** [April 4, 2023, 7:49am UTC](https://community.hubspot.com/t/getting-filtered-contacts-using-api/78594/3 "2023-04-04T07:49:56Z")

</div>

I actually found the issue, i was suppose to provide the propery name as lead\_source.

But thanks for taking your time to get back.

---

<div class="post-metadata">

**Author:** ![SSukys](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ssukys/32/35013_2.png) [@SSukys](https://community.hubspot.com/u/SSukys)\
**Post date:** [April 4, 2023, 2:01pm UTC](https://community.hubspot.com/t/getting-filtered-contacts-using-api/78594/4 "2023-04-04T14:01:47Z")

</div>

Excellent! I am glad you were able to solve the issue! That makes total sense that was the solution. Have a great day!

Sincerely,

Sean Sukys

Account Executive, Bluleadz a HubSpot Elite Partner Agency

[ssukys@bluleadz.com](mailto:ssukys@bluleadz.com)
