# crm api intégration endpoint objects/product/search

**URL:** <https://community.hubspot.com/t/crm-api-integration-endpoint-objects-product-search/33040>\
**Category:** APIs & Integrations\
**Tags:** python\
**Created:** [March 11, 2021, 4:05pm UTC](https://community.hubspot.com/t/crm-api-integration-endpoint-objects-product-search/33040 "2021-03-11T16:05:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ALelu](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alelu/32/53869_2.png) [@ALelu](https://community.hubspot.com/u/ALelu)\
**Post date:** [March 11, 2021, 4:05pm UTC](https://community.hubspot.com/t/crm-api-integration-endpoint-objects-product-search/33040/1 "2021-03-11T16:05:42Z")

</div>

Hello, i have an issue with the intégration of the endpoint /objects/product/search using python Requests.  
I have to type of **products** stored in two different folders: Programmes and Lots.  
I want to use the **search** endpoint to retrieve only one category of products (let’s say the Lots)

code exemple:

```lia-code-sample
data = {
 "properties": ["hs_folder_id,hs_price_eur,createdate,lot __availability_date,lot__ available,lot __description,lot__ equipements,lot __fiscality_type,lot_floor,lot__ floor_display,lot __id,lot__ images,lot __living_space,lot_number_of_rooms,lot__ orientation,lot __programme_id,lot__ programme_name,reference,lot __rent,lot__ type"],
 "filtersGroups": [{"filters": [
 {"propertyName": 'hs_folder_id',
 'operator': 'EQ',
 'value': HubspotFolders.LOTS.value}
 ]}]
}
response = r.post(base_url+'products/search', params={**base_query}, json=data)
hubspot_lots = response.json()['results']

```

**base\_query** contain my auth token, **data** is the payload of the request and **base\_url** is the url of the hubspot api

**HubspotFolders**. **LOTS** == 2382461

**HubspotFolders**. **PROGRAMMES** == 2382460

IDs of the hubspot folders object.

expected result:  
one lot with hs\_folder\_id == 2382461

actual result:

10 programmes objects with hs\_folder\_id 2382460 (10 being the default size of result list)

---

<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:** [March 15, 2021, 5:20pm UTC](https://community.hubspot.com/t/crm-api-integration-endpoint-objects-product-search/33040/2 "2021-03-15T17:20:41Z")

</div>

Hi @ALelu

Are you still working on this?

@BConnolly , @akaiser do you have some thoughts on this problem?

---

<div class="post-metadata">

**Author:** ![ALelu](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alelu/32/53869_2.png) [@ALelu](https://community.hubspot.com/u/ALelu)\
**Post date:** [March 15, 2021, 5:22pm UTC](https://community.hubspot.com/t/crm-api-integration-endpoint-objects-product-search/33040/3 "2021-03-15T17:22:55Z")

</div>

i have found the solution 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:** [March 15, 2021, 5:25pm UTC](https://community.hubspot.com/t/crm-api-integration-endpoint-objects-product-search/33040/4 "2021-03-15T17:25:53Z")

</div>

@ALelu , What was the issue?
