# Retrieve API Timestamps Using DQL for Accurate Event Tracking

**URL:** <https://community.dynatrace.com/t/retrieve-api-timestamps-using-dql-for-accurate-event-tracking/50052>\
**Category:** DQL\
**Tags:** dql, dynatrace-api\
**Created:** [February 3, 2025, 12:49pm UTC](https://community.dynatrace.com/t/retrieve-api-timestamps-using-dql-for-accurate-event-tracking/50052 "2025-02-03T12:49:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yann\_Buccellato](https://avatars.discourse-cdn.com/v4/letter/y/97f17d/32.png) [@Yann\_Buccellato](https://community.dynatrace.com/u/Yann_Buccellato)\
**Post date:** [February 3, 2025, 12:49pm UTC](https://community.dynatrace.com/t/retrieve-api-timestamps-using-dql-for-accurate-event-tracking/50052/1 "2025-02-03T12:49:02Z")

</div>

Hello community,

wanted to know something about the new DT DQL API.

If I set up timeframe withing the DQL query and remove the “start” and “end” parameter from the API, will the timeframe set up in the DQL query be applied instead of the expected parameters in the API call?

 ![y_buccellato_0-1738586899604.png](https://global.discourse-cdn.com/dynatrace/original/1X/265a174dbe4a05d393358eded7512d08c3022da6.png)

Regards

---

<div class="post-metadata">

**Author:** ![mmsz\_ext](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@mmsz\_ext](https://community.dynatrace.com/u/mmsz_ext)\
**Post date:** [February 3, 2025, 1:08pm UTC](https://community.dynatrace.com/t/retrieve-api-timestamps-using-dql-for-accurate-event-tracking/50052/2 "2025-02-03T13:08:39Z")

</div>

Hey,

I tried once and it complains about a missing parameter. So I supposed it does not work.

Regards

---

<div class="post-metadata">

**Author:** ![Yann\_Buccellato](https://avatars.discourse-cdn.com/v4/letter/y/97f17d/32.png) [@Yann\_Buccellato](https://community.dynatrace.com/u/Yann_Buccellato)\
**Post date:** [February 6, 2025, 3:25pm UTC](https://community.dynatrace.com/t/retrieve-api-timestamps-using-dql-for-accurate-event-tracking/50052/3 "2025-02-06T15:25:34Z")

</div>

This works without and you can just set the time frame withing the DQL query.
