I have created some integration already using the Contacts and Contacts List API.
Now, I have a requirement to work with the Deals API as well. Follow the problem I am facing -
Hubspot API does not allow filters in it's requests. Which means I would need to retrieve ALL contacts in Hubspot (every time I want to update the information on my side) and it's relevant properties, then I can separate information on my side.
For Contacts we can create contacts lists, though. This allows us filtering them using some properties and then fetch the data within this contact list using the contact list API:
Using dates and properties filters to setup a bunch of lists, I don't need to go through all contacts everytime I want to update my side. This worked fantasticly for my last automation.
Now, more information (Deals) are also required and I can't find any workaround for this. I was hoping have the same ability with the deals, creating pipelines instead of lists, for example, but the API doesn't have the option to "return deals inside a pipeline" endpoint. Follow what we have -
Hi @Adaptive , we definitely feel your pain here. Over the coming months we'll be looking ot add filtering to all of our APIs, but the issue is that some of our older APIs, like deals, just can't support that without a major overhaul. I think you're doing everything correctly here, and apologies if there's no really great solution. The only thing I can think of to help you is either to use the recently created deals endpoint here: https://developers.hubspot.com/docs/methods/deals/get_deals_created, or listen to deal creations in your account by using the Webhooks API in conjunction with your already-existing processes. This way, you can listen for deal creations, and not have to page through all deals to get what you need.
Hi @Adaptive , we definitely feel your pain here. Over the coming months we'll be looking ot add filtering to all of our APIs, but the issue is that some of our older APIs, like deals, just can't support that without a major overhaul. I think you're doing everything correctly here, and apologies if there's no really great solution. The only thing I can think of to help you is either to use the recently created deals endpoint here: https://developers.hubspot.com/docs/methods/deals/get_deals_created, or listen to deal creations in your account by using the Webhooks API in conjunction with your already-existing processes. This way, you can listen for deal creations, and not have to page through all deals to get what you need.