# Create a service list API with response time, failure rate, and request per min

**URL:** <https://community.dynatrace.com/t/create-a-service-list-api-with-response-time-failure-rate-and-request-per-min/42695>\
**Category:** Dynatrace API\
**Tags:** dynatrace-managed, tokens, dynatrace-api\
**Created:** [November 18, 2023, 12:07pm UTC](https://community.dynatrace.com/t/create-a-service-list-api-with-response-time-failure-rate-and-request-per-min/42695 "2023-11-18T12:07:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paulo1989](https://avatars.discourse-cdn.com/v4/letter/p/3bc359/32.png) [@Paulo1989](https://community.dynatrace.com/u/Paulo1989)\
**Post date:** [November 18, 2023, 12:07pm UTC](https://community.dynatrace.com/t/create-a-service-list-api-with-response-time-failure-rate-and-request-per-min/42695/1 "2023-11-18T12:07:02Z")

</div>

Hi Everyone, Can Anyone explain me&nbsp;how to create a service list API with response time, failure rate and request per minute?

The reason is that I want to import this list to Power BI after I get the list from Dynatrace. Im trying to do get the service API but dont know how to do it properly 😞

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [November 18, 2023, 10:19pm UTC](https://community.dynatrace.com/t/create-a-service-list-api-with-response-time-failure-rate-and-request-per-min/42695/2 "2023-11-18T22:19:23Z")

</div>

Hi&nbsp;[@Paulo1989](https://community.dynatrace.com/user/58841)&nbsp;,

Have you tried using the [Service Metrics Api](https://docs.dynatrace.com/docs/dynatrace-api/configuration-api/calculated-metrics/service-metrics/get-all#service-metrics-api)?

Radek

---

<div class="post-metadata">

**Author:** ![Paulo1989](https://avatars.discourse-cdn.com/v4/letter/p/3bc359/32.png) [@Paulo1989](https://community.dynatrace.com/u/Paulo1989)\
**Post date:** [November 19, 2023, 2:46pm UTC](https://community.dynatrace.com/t/create-a-service-list-api-with-response-time-failure-rate-and-request-per-min/42695/3 "2023-11-19T14:46:06Z")

</div>

not yet because I don´t where to start it from. would you mind to guide me if possible?

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [November 20, 2023, 3:08pm UTC](https://community.dynatrace.com/t/create-a-service-list-api-with-response-time-failure-rate-and-request-per-min/42695/4 "2023-11-20T15:08:49Z")

</div>

Are you using Dynatrace SaaS or managed?

---

<div class="post-metadata">

**Author:** ![Paulo1989](https://avatars.discourse-cdn.com/v4/letter/p/3bc359/32.png) [@Paulo1989](https://community.dynatrace.com/u/Paulo1989)\
**Post date:** [November 20, 2023, 9:17pm UTC](https://community.dynatrace.com/t/create-a-service-list-api-with-response-time-failure-rate-and-request-per-min/42695/5 "2023-11-20T21:17:38Z")

</div>

Hi Radek

Im using SaaS

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [November 21, 2023, 1:26pm UTC](https://community.dynatrace.com/t/create-a-service-list-api-with-response-time-failure-rate-and-request-per-min/42695/6 "2023-11-21T13:26:36Z")

</div>

Hi [@Paulo1989](https://community.dynatrace.com/user/58841)

I recommend you use the built-in swagger, which is available at:

https://{your-environment-id}.live.dynatrace.com/rest-api-doc/

There you search for elements matching metrics for services (I’ve already hinted at you before) and build a query to pull a specific metric. You can then use such a curl already from your tool (e.g. Postman).

Remember to select the appropriate scope for the token - in this case it would be: **metrics.read**

Radek
