# close date of deal api request

**URL:** <https://community.hubspot.com/t/close-date-of-deal-api-request/20904>\
**Category:** APIs & Integrations\
**Tags:** object\
**Created:** [May 15, 2020, 11:15am UTC](https://community.hubspot.com/t/close-date-of-deal-api-request/20904 "2020-05-15T11:15:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rikmaris](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rikmaris/32/30597_2.png) [@rikmaris](https://community.hubspot.com/u/rikmaris)\
**Post date:** [May 15, 2020, 11:15am UTC](https://community.hubspot.com/t/close-date-of-deal-api-request/20904/1 "2020-05-15T11:15:48Z")

</div>

Hi all,

i am struggling to get the right API request. I have this request

```auto
to: https://api.hubapi.com/crm/v3/objects/deals/search
{
"filterGroups": [
{
"filters": [
{
"propertyName": "closedate",
"operator": "GT",
"value": "1588291200"
}
]
}
]
}

```

The result is that i get all deals with a close date.

I just want the deals with the specific close date.

What do i wrong?

---

<div class="post-metadata">

**Author:** ![Willson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/willson/32/84663_2.png) [@Willson](https://community.hubspot.com/u/Willson)\
**Post date:** [May 15, 2020, 2:15pm UTC](https://community.hubspot.com/t/close-date-of-deal-api-request/20904/2 "2020-05-15T14:15:01Z")

</div>

Hey @rikmaris

Looking into the request, the timestamp you’re posting is for January 19th, 1970 10:11 AM therefore all Deals in your Portal are being returned.

When using this, the timestamp needs to be a UNIX timestamp in milliseconds. Can you try this to see if that works?

Thanks!
