Hi there,
I’m new to working with HubSpot’s API’s (relatively early on in my coding/developer journey, too, for what it’s worth) and would love some help strategizing how to get specific information from the CRM. I’m using Python, FYI.
The info I want to grab via API: any/all notes and tasks associated with deals that are in specific pipelines in a HubSpot account - and transform those results into .csv format.
The current strategy we’re using calls the notes and tasks API’s, using the basic “list” endpoints, then uses a conditional statement to filter for notes or tasks that are associated with deals, and then writes those filtered records to a .csv file. From there, our team can use the .csv to manually identify/match the deal ID’s to those in the desired pipeline(s).
This method could work for our purpose here - but this particular CRM has a ton of notes and tasks in the account (both associated to deals and not), so this current strategy certainly doesn’t feel efficient or ideal (since it first sifts through ALL notes / tasks, and then filters it down to only notes / tasks associated with deals before writing to .csv)
Long story short: I would love any advice or suggestions you may have on different (or similar) ways you would go about retrieving this specific data. The end goal is having two separate csv files - one that features any/all notes from all deals in a specific pipeline, and another that features any/all tasks from deals in a specific pipeline.
Are there different endpoints to call, parameters to include in our GET request, or conditional statements in Python we should use to get these results in a more effecient and/or effective way?
Thank you in advance for any feedback or assistance any of you are willing to provide!