# Get metric data points by specifying IST time zone

**URL:** <https://community.dynatrace.com/t/get-metric-data-points-by-specifying-ist-time-zone/48560>\
**Category:** Dynatrace API\
**Tags:** dynatrace-managed, dynatrace-api\
**Created:** [October 25, 2024, 1:20pm UTC](https://community.dynatrace.com/t/get-metric-data-points-by-specifying-ist-time-zone/48560 "2024-10-25T13:20:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MeetShah](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@MeetShah](https://community.dynatrace.com/u/MeetShah)\
**Post date:** [October 25, 2024, 1:20pm UTC](https://community.dynatrace.com/t/get-metric-data-points-by-specifying-ist-time-zone/48560/1 "2024-10-25T13:20:59Z")

</div>

I want to extract last 24hrs data points but the issue is I can get the data points based on UTC time zone I want based in IST which is UTC+05:30

---

<div class="post-metadata">

**Author:** ![p\_devulapalli](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/p_devulapalli/32/41590_2.png) [@p\_devulapalli](https://community.dynatrace.com/u/p_devulapalli)\
**Post date:** [October 28, 2024, 1:42am UTC](https://community.dynatrace.com/t/get-metric-data-points-by-specifying-ist-time-zone/48560/2 "2024-10-28T01:42:47Z")

</div>

[@MeetShah](https://community.dynatrace.com/user/82376)&nbsp;, default would be UTC,&nbsp; one of the option would be to convert the IST time range to UTC and use it as parameter

- from and to parameters

> **[Metrics API - GET metric data points](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/metric-v2/get-data-points)**
>
> Read data points of one or multiple metrics via Metrics v2 API.

---

<div class="post-metadata">

**Author:** ![MeetShah](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@MeetShah](https://community.dynatrace.com/u/MeetShah)\
**Post date:** [October 28, 2024, 7:48am UTC](https://community.dynatrace.com/t/get-metric-data-points-by-specifying-ist-time-zone/48560/3 "2024-10-28T07:48:32Z")

</div>

I tried this but It didn’t work out

---

<div class="post-metadata">

**Author:** ![MeetShah](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@MeetShah](https://community.dynatrace.com/u/MeetShah)\
**Post date:** [October 28, 2024, 7:59am UTC](https://community.dynatrace.com/t/get-metric-data-points-by-specifying-ist-time-zone/48560/4 "2024-10-28T07:59:23Z")

</div>

I have tried something like this&nbsp;  
https://{environmentid}.live.dynatrace.com/api/v2/metrics/query?metricSelector=builtin:apps.other.uaCount.osAndApdex:splitBy(““Apdex category””):value:sort(value(sum,descending)) & from=2024-10-28T01:00:00 + 05:30

---

<div class="post-metadata">

**Author:** ![p\_devulapalli](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/p_devulapalli/32/41590_2.png) [@p\_devulapalli](https://community.dynatrace.com/u/p_devulapalli)\
**Post date:** [October 28, 2024, 9:15am UTC](https://community.dynatrace.com/t/get-metric-data-points-by-specifying-ist-time-zone/48560/5 "2024-10-28T09:15:39Z")

</div>

[@MeetShah](https://community.dynatrace.com/user/82376)&nbsp;, what was the output when you executed the above query ?

---

<div class="post-metadata">

**Author:** ![MeetShah](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@MeetShah](https://community.dynatrace.com/u/MeetShah)\
**Post date:** [October 28, 2024, 9:26am UTC](https://community.dynatrace.com/t/get-metric-data-points-by-specifying-ist-time-zone/48560/6 "2024-10-28T09:26:40Z")

</div>

Hey I understood my mistake of time conversion. so this issue is resolved.  
But I had a quick question.  
These url will pull all the data? Or do i need to apply some pagination logic ?
