# Fetch the transaction metrics from dynatrace managed

**URL:** <https://community.dynatrace.com/t/fetch-the-transaction-metrics-from-dynatrace-managed/22313>\
**Category:** Dynatrace API\
**Tags:** dynatrace-managed, dynatrace-api\
**Created:** [October 15, 2019, 2:43pm UTC](https://community.dynatrace.com/t/fetch-the-transaction-metrics-from-dynatrace-managed/22313 "2019-10-15T14:43:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mayana\_s\_khan](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@mayana\_s\_khan](https://community.dynatrace.com/u/mayana_s_khan)\
**Post date:** [October 15, 2019, 2:43pm UTC](https://community.dynatrace.com/t/fetch-the-transaction-metrics-from-dynatrace-managed/22313/1 "2019-10-15T14:43:59Z")

</div>

Hi,

I want to fetch the client side response- time metric of a transaction in dynatrace managed and send to splunk

Ex: Shopping Bag.

Can any one help me here how to fetch the transactions metrics data from managed.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [January 13, 2020, 6:54pm UTC](https://community.dynatrace.com/t/fetch-the-transaction-metrics-from-dynatrace-managed/22313/2 "2020-01-13T18:54:46Z")

</div>

In your case, you need to use the metrics v2 API or the older one - timeseries API (less flexible). For the new metrics v2 API, the documentation is [located here](https://www.dynatrace.com/support/help/extend-dynatrace/dynatrace-api/environment-api/metric-v2/).

The client time response metric key for a service is called **builtin:service.response.client.**

An example curl call for fetching metrics for service with entity ID SERVICE-006A927F462E473C would be:

```auto
curl -XGET -H "Authorization: api-token $APITOKEN" "$TENANT/api/v2/metrics/series/builtin:service.response.client?scope=entity%28SERVICE-006A927F462E473C%29"

```

You can specify entities in more ways such as tags, names or management zones.  
Additionally you might want to specify aggregation, dimensions, resolution, time range (from/to) or paging.

Documentation is pretty good, additional blog post explaining the API with more examples is [here](https://www.dynatrace.com/news/blog/integrate-dynatrace-more-easily-using-the-new-metrics-rest-api/).
