DEALS endpoint with time parameter

Hello there,

I’d like to get all the deals from the current quarter. I’ve been trying to work with the two options of endpoints (“all deals” and “recent” deals") and adding parameters but it seems that they cannot be parameterized.

https://api.hubapi.com/deals/v1/deal/paged

https://api.hubapi.com/deals/v1/deal/recent/created

First gets all the deals with no date restriction, Second only get the deals from last 30 days. Is it possible to get a time parameter or something “in-between” all deals and the deals from the last 30 days.

Welcome, @Vinelab.

At this time, it’s not possible to directly filter either of those deal endpoints to return only deals created in the current quarter.

The best method I have found is to query the Get all deals endpoint and include a properties=createdate parameter.

You can then filter the deals returned on your end by the createdate property’s value. If you use this tool to calculate the timestamp when the quarter began, you can filter by any createdate values which are greater.