# Metrics API to query values

**URL:** <https://community.dynatrace.com/t/metrics-api-to-query-values/50295>\
**Category:** Dynatrace API\
**Tags:** dynatrace-managed, grail, dynatrace-api\
**Created:** [February 17, 2025, 12:28pm UTC](https://community.dynatrace.com/t/metrics-api-to-query-values/50295 "2025-02-17T12:28:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ErwinB](https://avatars.discourse-cdn.com/v4/letter/e/bb73d2/32.png) [@ErwinB](https://community.dynatrace.com/u/ErwinB)\
**Post date:** [February 18, 2025, 11:18am UTC](https://community.dynatrace.com/t/metrics-api-to-query-values/50295/2 "2025-02-18T11:18:58Z")

</div>

Found it, this time the answer was actually in the documentation&nbsp;🤣

This does the trick: api/v2/metrics/query?metricSelector=log.kong.status:filter(eq(“service.name”,“ASW\_Europe\_MyService”)):fold(sum)&from=now-1M

---

_[View the full topic](https://community.dynatrace.com/t/metrics-api-to-query-values/50295)._
