# CRM Search API doesn't return properties

**URL:** <https://community.hubspot.com/t/crm-search-api-doesnt-return-properties/61686>\
**Category:** APIs & Integrations\
**Tags:** python, companies\
**Created:** [July 25, 2022, 9:09pm UTC](https://community.hubspot.com/t/crm-search-api-doesnt-return-properties/61686 "2022-07-25T21:09:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![BLai](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@BLai](https://community.hubspot.com/u/BLai)\
**Post date:** [July 25, 2022, 9:09pm UTC](https://community.hubspot.com/t/crm-search-api-doesnt-return-properties/61686/1 "2022-07-25T21:09:58Z")

</div>

Hello Team,

I am working on CRM search API. I am trying to search the companies that having domain name equals to a value and return their company id, company name and state. Here’s my code:

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

client = hubspot.Client.create(access_token="My API Key")

filter_groups = [{"filters":[{
 "value":"Domain Name Value",
 "propertyName":"domain",
 "operator":"EQ"}]}]

public_object_search_request = PublicObjectSearchRequest(filter_groups=filter_groups,
properties=["hs_object_id","name","state","domain"],
limit=0, after=0)

try:
 api_response = client.crm.companies.search_api.do_search(public_object_search_request=public_object_search_request)
 pprint(api_response)
except ApiException as e:
 print("Exception when calling search_api->do_search: %s\n" % e)

```

And the return is like:

![BLai_0-1658783182019.png](https://d2qpr2jzcazej7.cloudfront.net/optimized/3X/4/7/47f3e3bd782849f3f41f29d016ea1e8ed7386150_2_690x36.png)

I have verified that the ‘total: 76’ is exactly the number of companies meeting the requirement. So I guess the search api is working. The only problem is that it doesn’t return the properties I wanted. What should I do to the properties?

Thanks

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [July 26, 2022, 6:06pm UTC](https://community.hubspot.com/t/crm-search-api-doesnt-return-properties/61686/2 "2022-07-26T18:06:19Z")

</div>

@BLai

Try removing/updating your limit. Looks like you are requesting 0 to be returned.

Default is 10. Max is 100

---

<div class="post-metadata">

**Author:** ![SSyed94](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@SSyed94](https://community.hubspot.com/u/SSyed94)\
**Post date:** [October 3, 2023, 9:54pm UTC](https://community.hubspot.com/t/crm-search-api-doesnt-return-properties/61686/3 "2023-10-03T21:54:19Z")

</div>

Is there any way to get past the 100 limit

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [October 3, 2023, 10:06pm UTC](https://community.hubspot.com/t/crm-search-api-doesnt-return-properties/61686/4 "2023-10-03T22:06:13Z")

</div>

No, but you can page through the results of the result is more than 100

---

<div class="post-metadata">

**Author:** ![SSyed94](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@SSyed94](https://community.hubspot.com/u/SSyed94)\
**Post date:** [October 3, 2023, 10:07pm UTC](https://community.hubspot.com/t/crm-search-api-doesnt-return-properties/61686/5 "2023-10-03T22:07:41Z")

</div>

How do I do that within the python-hubspot client. I’m having a lot of trouble finding in-depth documentation for using this instead of regular http reqs

---

<div class="post-metadata">

**Author:** ![SSyed94](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@SSyed94](https://community.hubspot.com/u/SSyed94)\
**Post date:** [October 3, 2023, 10:28pm UTC](https://community.hubspot.com/t/crm-search-api-doesnt-return-properties/61686/6 "2023-10-03T22:28:51Z")

</div>

[https://community.hubspot.com/t5/APIs-Integrations/Python-API-do-search-only-allows-100/td-p/859074](https://community.hubspot.com/t5/APIs-Integrations/Python-API-do-search-only-allows-100/td-p/859074)

I made this post aboutit
