# Get exact timestamp in response

**URL:** <https://community.dynatrace.com/t/get-exact-timestamp-in-response/36861>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [October 11, 2022, 7:53pm UTC](https://community.dynatrace.com/t/get-exact-timestamp-in-response/36861 "2022-10-11T19:53:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jay-udt](https://avatars.discourse-cdn.com/v4/letter/j/f6c823/32.png) [@jay-udt](https://community.dynatrace.com/u/jay-udt)\
**Post date:** [October 11, 2022, 7:53pm UTC](https://community.dynatrace.com/t/get-exact-timestamp-in-response/36861/1 "2022-10-11T19:53:08Z")

</div>

Hi

I am trying to get the max value of metric data point using API for last 1 hour. I want the exact timestamp returned in response. But I am always getting the timestamp as to value I framed in query. In the below example I am getting timestamp as&nbsp;2022-10-11T10:00:00.

[https://abc.live.dynatrace.com/api/v2/metrics/query?metricSelector=builtin:host.cpu.usage:fold(max):filter(or(eq("dt.entity.host","HOST")))&from=2022-10-11T00:00:00.000%2B05:30&to=2022-10-11T10:00:00.000%2B05:30](https://abc.live.dynatrace.com/api/v2/metrics/query?metricSelector=builtin:host.cpu.usage:fold(max):filter(or(eq(%22dt.entity.host%22,%22HOST%22)))&from=2022-10-11T00:00:00.000%2B05:30&to=2022-10-11T10:00:00.000%2B05:30)

response:

“timestamps”:&nbsp;[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1665462600000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;],&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;“values”:&nbsp;[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;100&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]

Please help me to overcome this problem

Thanks!

---

<div class="post-metadata">

**Author:** ![abbachr](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/abbachr/32/28551_2.png) [@abbachr](https://community.dynatrace.com/u/abbachr)\
**Post date:** [October 12, 2022, 5:43am UTC](https://community.dynatrace.com/t/get-exact-timestamp-in-response/36861/2 "2022-10-12T05:43:10Z")

</div>

The finest resolution that Dynatrace is able to provide is 1 minute. You will not be able to get the exact timestamp in seconds, milliseconds, etc.; because Dynatrace does not store it.

If minute resolution is good enough for you, you can request it by using the resolution parameter:&nbsp;[Metrics API - GET metric data points — Dynatrace Docs](https://www.dynatrace.com/support/help/shortlink/api-metrics-v2-get-datapoints#parameters)
