APIs & Integrations

mirko_ds
Mitglied

Export data to AWS datalake

lösung

Hi everyone,

 

our company has a datalake architecture on AWS with a classic stack lambda + athena + S3.

 

I'd like to transfer all the Hubspot data related to deals on our datalake during the night. I have considered this cases:

 

- using deals API that all the nights get all the data

- using deals API to have only the data of the last 24 hours

 

For rate limit reason, the second way is better but don't garantee that nothing has been cancelled or updated on deals older than 24 hours.

 

Do you have some suggestions or use cases already realized for this scenario?

 

Thanks

0 Upvotes
1 Akzeptierte Lösung
WendyGoh
Lösung
HubSpot Employee
HubSpot Employee

Export data to AWS datalake

lösung

Hi @mirko_ds,

 

By cancelled do you mean that when a deal is being deleted? If that's the case, currently the endpoint doesn't return deleted deal. Any deal that returned from deals API hasn't been deleted. 

 

When looking to get notified of deleted deals, you can explore the HubSpot Webhook: Webhooks API Overview and subscribe to the deal deletions events. 

Lösung in ursprünglichem Beitrag anzeigen

0 Upvotes
4 Antworten
WendyGoh
HubSpot Employee
HubSpot Employee

Export data to AWS datalake

lösung

Hi @mirko_ds,

 

When looking to retrieved deals that recently got updated/created, you can look into using this endpoint here: Get Recent Deals | Deals API so that you do not have to use the get all deals endpoint and page through all the deals.

0 Upvotes
mirko_ds
Mitglied

Export data to AWS datalake

lösung

Hi @WendyGoh ,

 

thanks for your feedback. The endpoint you linked it's very good to understand the what is changed/created in last x time.  How can I understand if something has been cancelled?

 

 

 

0 Upvotes
WendyGoh
Lösung
HubSpot Employee
HubSpot Employee

Export data to AWS datalake

lösung

Hi @mirko_ds,

 

By cancelled do you mean that when a deal is being deleted? If that's the case, currently the endpoint doesn't return deleted deal. Any deal that returned from deals API hasn't been deleted. 

 

When looking to get notified of deleted deals, you can explore the HubSpot Webhook: Webhooks API Overview and subscribe to the deal deletions events. 

0 Upvotes
mirko_ds
Mitglied

Export data to AWS datalake

lösung

Thanks again for your reply @WendyGoh .

 

Yes for cancelled I mean that a deal is being deleted. 

 

Thanks for your support

 

0 Upvotes