# DEALS endpoint with time parameter

**URL:** <https://community.hubspot.com/t/deals-endpoint-with-time-parameter/13713>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [March 27, 2019, 4:48pm UTC](https://community.hubspot.com/t/deals-endpoint-with-time-parameter/13713 "2019-03-27T16:48:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinelab](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/vinelab/32/43872_2.png) [@Vinelab](https://community.hubspot.com/u/Vinelab)\
**Post date:** [March 27, 2019, 4:48pm UTC](https://community.hubspot.com/t/deals-endpoint-with-time-parameter/13713/1 "2019-03-27T16:48:31Z")

</div>

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/paged)**

**[https://api.hubapi.com/deals/v1/deal/recent/created](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.

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [March 28, 2019, 8:45pm UTC](https://community.hubspot.com/t/deals-endpoint-with-time-parameter/13713/2 "2019-03-28T20:45:23Z")

</div>

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_](https://developers.hubspot.com/docs/methods/deals/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](https://www.unixtimestamp.com/) to calculate the timestamp when the quarter began, you can filter by any `createdate` values which are greater.
