APIs & Integrations

Viren
Member

Filter Deals based on property

I want to filter deals according to deal stage while using api ? Please let me know how I can fetch only some deals on the basis of particular deal property using api (php)??

1 Reply 1
lscanlan
HubSpot Alumni
HubSpot Alumni

Filter Deals based on property

Hi @Viren,

 

You can include specific properties in your response from the API, but it's not currently possible to filter server-side. You'll need to pull all deals (or recently created or modified) and then do a search client-side after you've gotten all deals.

 

I'd encourage you to vote on the existing idea for CRM object filters, which you can find here: https://community.hubspot.com/t5/HubSpot-Ideas/Company-Deal-and-Contact-filter-for-API/idi-p/269803.

 

Let me know if you have any other questions here.

 

Leland Scanlan

HubSpot Developer Support
0 Upvotes