# Error Searching Contact

**URL:** <https://community.hubspot.com/t/error-searching-contact/45134>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [October 11, 2021, 11:10am UTC](https://community.hubspot.com/t/error-searching-contact/45134 "2021-10-11T11:10:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AdKerremans](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/adkerremans/32/53612_2.png) [@AdKerremans](https://community.hubspot.com/u/AdKerremans)\
**Post date:** [October 11, 2021, 11:10am UTC](https://community.hubspot.com/t/error-searching-contact/45134/1 "2021-10-11T11:10:40Z")

</div>

Hi,

I am trying to find all contacts modified after a certain time.

I use the command below using the website

curl --request POST \  
--url ‘[https://api.hubapi.com/crm/v3/objects/contacts/search?hapikey=xxxxxxxxx](https://api.hubapi.com/crm/v3/objects/contacts/search?hapikey=xxxxxxxxx)’ \  
--header ‘content-type: application/json’ \  
--data ‘{  
“filterGroups”: [  
{  
“filters”: [  
{  
“value”: “2020-08-04T09:10:06.850Z”,  
“propertyName”: “lastmodifieddate”,  
“operator”: “GTE”  
}  
]  
}  
],  
“sorts”: [  
“lastmodifieddate”  
],  
“query”: “string”,  
“properties”: [  
“id”  
],  
“limit”: 0,  
“after”: 0  
}’

but I get the error below

HTTP 400

{  
“status”: “error”,  
“message”: “There was a problem with the request.”,  
“correlationId”: “9fe4f275-f2c5-44c3-9154-4806951255c2”  
}

Regards

Ad

---

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [October 11, 2021, 1:15pm UTC](https://community.hubspot.com/t/error-searching-contact/45134/2 "2021-10-11T13:15:53Z")

</div>

Hi @AdKerremans ,

The problem is the **value** for the **lastmodifieddate,** it should be a UNIX timestamp, so try [converting it](https://www.unixtimestamp.com/index.php). I tried a test call with your code, and it is working fine with a UNIX timestamp:

```lia-code-sample
curl --request POST \
 --url 'https://api.hubapi.com/crm/v3/objects/contacts/search?hapikey=' \
 --header 'content-type: application/json' \
 --data '{
 "filterGroups": [
 {
 "filters": [
 {
 "value": "1586329806",
 "propertyName": "lastmodifieddate",
 "operator": "GTE"
 }
 ]
 }
 ],
 "sorts": [
 "lastmodifieddate"
 ],
 "properties": [
 "email",
 "lastmodifieddate"
 ],
 "limit": 10,
 "after": 0
}'

```
