Search by close date through v3 api

SOLVE
rikmaris
Contributor

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)

 

{
"filterGroups": [
{
"filters": [
{
"propertyName": "closedate",
"operator": "GT",
"value": "1588291200"
}
]
}
]
}
0 Upvotes
1 Accepted solution

Accepted Solutions
WendyGoh
Solution
HubSpot Employee

Hey @rikmaris,

 

HubSpot API accept UNIX formatted timestamps in milliseconds

 

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/.

View solution in original post

0 Upvotes
2 Replies 2
WendyGoh
Solution
HubSpot Employee

Hey @rikmaris,

 

HubSpot API accept UNIX formatted timestamps in milliseconds

 

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/.

View solution in original post

0 Upvotes
rikmaris
Contributor

Thanks! 

That was the solution!

0 Upvotes