# Search by close date through v3 api

**URL:** <https://community.hubspot.com/t/search-by-close-date-through-v3-api/20902>\
**Category:** APIs & Integrations\
**Tags:** object\
**Created:** [May 15, 2020, 9:53am UTC](https://community.hubspot.com/t/search-by-close-date-through-v3-api/20902 "2020-05-15T09:53:18Z")\
**Posts on this page:** 3\
**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, 9:53am UTC](https://community.hubspot.com/t/search-by-close-date-through-v3-api/20902/1 "2020-05-15T09:53:18Z")

</div>

Hi,

I’m struggeling to get the right API call.

My target is to get all deals from a specific day that are closed. But with this call i get all deals. I want just the deals from that unix time stamp. (this is 14th of may 2020)

```auto
{
"filterGroups": [
{
"filters": [
{
"propertyName": "closedate",
"operator": "GT",
"value": "1588291200"
}
]
}
]
}

```

---

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [May 18, 2020, 4:03am UTC](https://community.hubspot.com/t/search-by-close-date-through-v3-api/20902/2 "2020-05-18T04:03:11Z")

</div>

Hey @rikmaris,

HubSpot API accept [UNIX formatted timestamps in **milliseconds**](https://developers.hubspot.com/docs/faq/how-should-timestamps-be-formatted-for-hubspots-apis).

If you’d like to retrieve deals in which the close date is after 14th May 2020, you can use 1589414400000 in which it represent **Date and time (GMT)**: Thursday, May 14, 2020 0:00:00 .

The external tool I’m using: [https://www.epochconverter.com/](https://www.epochconverter.com/).

---

<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 18, 2020, 6:29am UTC](https://community.hubspot.com/t/search-by-close-date-through-v3-api/20902/3 "2020-05-18T06:29:25Z")

</div>

Thanks!

That was the solution!
