# Using filtering in Query Param (external API/Private App)

**URL:** <https://community.hubspot.com/t/using-filtering-in-query-param-external-api-private-app/72940>\
**Category:** APIs & Integrations\
**Created:** [January 16, 2023, 9:53am UTC](https://community.hubspot.com/t/using-filtering-in-query-param-external-api-private-app/72940 "2023-01-16T09:53:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RGroothuis](https://avatars.discourse-cdn.com/v4/letter/r/3ec8ea/32.png) [@RGroothuis](https://community.hubspot.com/u/RGroothuis)\
**Post date:** [January 16, 2023, 9:53am UTC](https://community.hubspot.com/t/using-filtering-in-query-param-external-api-private-app/72940/1 "2023-01-16T09:53:38Z")

</div>

I’m testing an App developend using Adalo, I can retrieve the company information from Hubspot, that is working. But I want to filter the list before the data is returned to Adalo. I want to add something like: “filter” on “type=PARTNER”. Is this possible using the Query Param in the API/URL call? If not, what is the solution to achieve this?

---

<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:** [January 17, 2023, 8:20am UTC](https://community.hubspot.com/t/using-filtering-in-query-param-external-api-private-app/72940/2 "2023-01-17T08:20:41Z")

</div>

Hello @RGroothuis  
Company is an object type and unfortunately, it’s not possible to add a filter on the property of the object through the list api.

Although you can use the search API which allows you to filter the results based on the search value

> **[Search the CRM - HubSpot docs](https://developers.hubspot.com/docs/api-reference/latest/crm/search-the-crm)**
>
> The CRM search endpoints make getting data more efficient by allowing developers to filter, sort, and search across any CRM object type.

```lia-code-sample
curl https://api.hubapi.com/crm/v3/objects/companies/search \
 --request POST \
 --header "Content-Type: application/json" \
 --data '{
 "filterGroups":[
 {
 "filters":[
 {
 "propertyName": "firstname",
 "operator": "EQ",
 "value": "Alice"
 }
 ]
 }
 ]
 }'

```

Here you can add the property name and the value to search and based on that it will return you the companies and you can use the cursor to go through the list.
