# Getting all data points while pulling query datapoints

**URL:** <https://community.dynatrace.com/t/getting-all-data-points-while-pulling-query-datapoints/45965>\
**Category:** Dynatrace API\
**Tags:** dynatrace-managed, dynatrace-api\
**Created:** [June 6, 2024, 8:34pm UTC](https://community.dynatrace.com/t/getting-all-data-points-while-pulling-query-datapoints/45965 "2024-06-06T20:34:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdport](https://avatars.discourse-cdn.com/v4/letter/j/ce73a5/32.png) [@jdport](https://community.dynatrace.com/u/jdport)\
**Post date:** [June 6, 2024, 8:34pm UTC](https://community.dynatrace.com/t/getting-all-data-points-while-pulling-query-datapoints/45965/1 "2024-06-06T20:34:49Z")

</div>

I was trying to use the /api/v2/metrics/query API call to pull metric data points but it seems that the most granular resolution you can specify is 1 minute.&nbsp; &nbsp;Even if I specify a higher number of data points, it will limit the query to 1 minute granularity.

I know I can use “inf”&nbsp; to pull a single value, is there any such keyword to pull ALL data points?

Thanks!

---

<div class="post-metadata">

**Author:** ![jaume\_reverte](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jaume_reverte/32/1479_2.png) [@jaume\_reverte](https://community.dynatrace.com/u/jaume_reverte)\
**Post date:** [June 7, 2024, 7:21am UTC](https://community.dynatrace.com/t/getting-all-data-points-while-pulling-query-datapoints/45965/2 "2024-06-07T07:21:48Z")

</div>

Hello!

There is no way to have more granularity than 1 min for metrics. [Here](https://docs.dynatrace.com/docs/shortlink/data-retention#metrics-classic) you can find the granularity of the metrics inside Dynatrace.

Sorry for the inconvenience.

Best regards!
