# Reporting API

**URL:** <https://community.hubspot.com/t/reporting-api/112347>\
**Category:** APIs & Integrations\
**Tags:** python, developer-tools\
**Created:** [July 18, 2024, 5:18pm UTC](https://community.hubspot.com/t/reporting-api/112347 "2024-07-18T17:18:55Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Bortami](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bortami/32/221350_2.png) [@Bortami](https://community.hubspot.com/u/Bortami)\
**Post date:** [July 19, 2024, 4:21pm UTC](https://community.hubspot.com/t/reporting-api/112347/4 "2024-07-19T16:21:34Z")

</div>

You can add a filter like you did. Once thing to know is that date timestamps are stored as miliseconds, so you’ll want to use a filter like

{hs\_created\_by\_\_gt: date}

```lia-code-sample
//today's date at midnight outside of query
const now = Date.now();
const today = new Date(now).setHours(0,0,0,0);
// 1721365200000

query MyQuery {
 CRM {
 p_on24_collection {
 items {
 hs_object_id
 associations {
 note_collection__on24_to_note(filter: {hs_createdate__gt: today}) {
 total
 items
 }
 }
 }
 }
 }
}

```

_Moderator Note: this post was reviewed for relevancy and optimized for clarity on September 30, 2026. Thank you for your contributions to the HubSpot Community!_

---

_[View the full topic](https://community.hubspot.com/t/reporting-api/112347)._
