No search filter for lastmodifieddate in Contacts API?

Hi,

I try to search for the last modified contacts after a secific date. The recent API does even not react on the timestamp, so I tried seach. But it has no effect.

I tried the search with a date formated string and timestamp, I tried lastmodiefieddate and updateDate.

{
 "filter_groups": [
 {
 "filters": [
 {
 "value": "2022-12-13T15:14:57.000Z",
 "propertyName": "lastmodifieddate",
 "operator": "GTE"
 }
 ]
 }
 ],
 "sorts": [
 {
 "propertyName": "lastmodifieddate",
 "direction": "DESCENDING"
 }
 ],
 "properties": [
 "id"
 ],
 "limit": 2
}

The result is still total 8269, but there is no entry after the search date.

(object) array(
 'total' => 8268,
 'results' => 
 array (
 0 => 
 (object) array(
 'id' => '21951',
 'properties' => 
 (object) array(
 'createdate' => '2022-11-07T16:58:45.767Z',
 'hs_object_id' => '21951',
 'lastmodifieddate' => '2022-12-13T13:00:43.177Z',
 ),
 'createdAt' => '2022-11-07T16:58:45.767Z',
 'updatedAt' => '2022-12-13T13:00:43.177Z',
 'archived' => false,
 ),
 1 => 
 (object) array(
 'id' => '151',
 'properties' => 
 (object) array(
 'createdate' => '2021-11-16T16:40:56.132Z',
 'hs_object_id' => '151',
 'lastmodifieddate' => '2022-12-07T12:40:03.796Z',
 ),
 'createdAt' => '2021-11-16T16:40:56.132Z',
 'updatedAt' => '2022-12-07T12:40:03.796Z',
 'archived' => false,
 ),
 ),
 'paging' => 
 (object) array(
 'next' => 
 (object) array(
 'after' => '2',
 ),
 ),
)

Any idea?

Solved::

I must use filterGroups instead of filter_groups. The filter value must be a timestamp.

Hi !

I still cannot manage to make it works. I always get all my contacts whatever I try…

Can you send the exact post request you are doing please ?

Thanks