# Rest api to get response time of all request for a particular host and its purepath

**URL:** <https://community.dynatrace.com/t/rest-api-to-get-response-time-of-all-request-for-a-particular-host-and-its-purepath/22527>\
**Category:** Dynatrace API\
**Tags:** distributed-traces-classic, dynatrace-api\
**Created:** [November 11, 2019, 6:26am UTC](https://community.dynatrace.com/t/rest-api-to-get-response-time-of-all-request-for-a-particular-host-and-its-purepath/22527 "2019-11-11T06:26:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sravankumar\_anu](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@sravankumar\_anu](https://community.dynatrace.com/u/sravankumar_anu)\
**Post date:** [November 11, 2019, 6:26am UTC](https://community.dynatrace.com/t/rest-api-to-get-response-time-of-all-request-for-a-particular-host-and-its-purepath/22527/1 "2019-11-11T06:26:12Z")

</div>

Using Rest APIwe trying to get details of particular host with all its web request Response time and its purepath.

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [January 14, 2020, 10:50am UTC](https://community.dynatrace.com/t/rest-api-to-get-response-time-of-all-request-for-a-particular-host-and-its-purepath/22527/2 "2020-01-14T10:50:00Z")

</div>

It’s not possible because transactional data are in general combined into services. Service is something on top of All hosts that are serving them. What you need is taking timeries data from each service instance that is working on all processes that particular host serves [Metrics API - Metric selector — Dynatrace Docs](https://www.dynatrace.com/support/help/extend-dynatrace/dynatrace-api/environment-api/metric-v2/selector-transformations/)

In general you have to first list all processes on particular host, than check on each process what services are there (to get ID’s of them) and than try to check data from those hosts via timeseries API with filtering particular service instance.

> **[Metrics API - Metric selector](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/metric-v2/metric-selector)**
>
> Configure the metric selector for the Metric v2 API.

here you have option to use parents transformation that should work for you. But as I said, you have to know ID’s of each process group instances that are working on particular hosts. When you will extract those data you have to calculate them manually to have them on host level.

Sebastian
