# Wrong result on contact search api by timestamp

**URL:** <https://community.hubspot.com/t/wrong-result-on-contact-search-api-by-timestamp/71211>\
**Category:** APIs & Integrations\
**Created:** [December 14, 2022, 3:32pm UTC](https://community.hubspot.com/t/wrong-result-on-contact-search-api-by-timestamp/71211 "2022-12-14T15:32:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![IntegriPro](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/integripro/32/37159_2.png) [@IntegriPro](https://community.hubspot.com/u/IntegriPro)\
**Post date:** [December 14, 2022, 3:32pm UTC](https://community.hubspot.com/t/wrong-result-on-contact-search-api-by-timestamp/71211/1 "2022-12-14T15:32:00Z")

</div>

I am using v3 and want to get all the contacts created in 24hrs

`$search_filter = ["filter_groups" => [ [ "filters" => [ [ "propertyName" => "createdate", "operator" => "lt", "value" => today()->timezone('UTC')->subDay()->timestamp * 1000,] ] ] ], 'properties' => $properties, 'limit' =>100, "after" => $after ]; `

but Hubspot returning me the all contacts instead of newly created records in given timeframe

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [December 16, 2022, 6:21pm UTC](https://community.hubspot.com/t/wrong-result-on-contact-search-api-by-timestamp/71211/2 "2022-12-16T18:21:59Z")

</div>

Hi, @IntegriPro 👋 Thanks for reaching out. You are using the Search API, correct?

Hey, @stefen @miljkovicmisa, do you have any suggestions for @IntegriPro on setting up the Search API filters in the manner they are wanting?

Best,

Jaycee
