Export data to AWS datalake

SOLVE
Highlighted
New Contributor

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

Reply
0 Upvotes
1 Accepted solution

Accepted Solutions
Highlighted
Solution
HubSpot Moderator

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. 

View solution in original post

Reply
0 Upvotes
4 Replies 4
Highlighted
HubSpot Moderator

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.

Reply
0 Upvotes
Highlighted
New Contributor

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?

 

 

 

Reply
0 Upvotes
Highlighted
Solution
HubSpot Moderator

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. 

View solution in original post

Reply
0 Upvotes
Highlighted
New Contributor

Thanks again for your reply @WendyGoh .

 

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

 

Thanks for your support

 

Reply
0 Upvotes