Filter Deals based on property

Highlighted
New Contributor

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
HubSpot Moderator

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
Reply
0 Upvotes