# API to get a list of Web Transactions

**URL:** <https://community.dynatrace.com/t/api-to-get-a-list-of-web-transactions/10858>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [February 1, 2018, 12:20am UTC](https://community.dynatrace.com/t/api-to-get-a-list-of-web-transactions/10858 "2018-02-01T00:20:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![raghu\_iitr](https://avatars.discourse-cdn.com/v4/letter/r/9de053/32.png) [@raghu\_iitr](https://community.dynatrace.com/u/raghu_iitr)\
**Post date:** [February 1, 2018, 12:20am UTC](https://community.dynatrace.com/t/api-to-get-a-list-of-web-transactions/10858/1 "2018-02-01T00:20:10Z")

</div>

I just got onto dynatrace SaaS offering and installed the dynatrace one agent. I then installed an apache tomcat webserver on the box and started sending it some traffic. The traffic shows up in the UI under this

Transactions & Services → Service Name → View dynamic request

 ![15658-screen-shot-2018-01-31-at-40434-pm.png](https://global.discourse-cdn.com/dynatrace/original/2X/9/93df7823d57493a60d325da351749dc4fc7632b0.png)

What i need is to get this list of web transactions (with their time series ids etc) through REST API so that i can fetch their data and do some analysis.

I looked at the documentation here [https://www.dynatrace.com/support/help/dynatrace-a…](https://www.dynatrace.com/support/help/dynatrace-api/) and i explored the timeseries and Topology & Smartscape apis. There are things i noticed

1. When i asked for all the time series metrics i get a huge list of time series metrics but it doesn’t show any of my application metrics.  
2. I could not find any way to filter these time series by any service or application.

Need this urgently so any help is greatly appreciated.

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [February 1, 2018, 7:36pm UTC](https://community.dynatrace.com/t/api-to-get-a-list-of-web-transactions/10858/2 "2018-02-01T19:36:41Z")

</div>

If you make a call to the timeseries API endpoint with no filters or incorrect parameters it will return a list of all available timeseries metrics, that is probably what you are seeing.

If you want a timeseries for a specific request, first you need to mark it as a [key request](https://www.dynatrace.com/support/help/server-side-services/service-monitoring/what-are-key-requests/?_ga=2.183771938.56615752.1517449574-792069763.1469092424&_gac=1.61251038.1516024528.Cj0KCQiAv_HSBRCkARIsAGaSsrCC9FXaxYz1NKqjaUFhKyH3KMIJtAKxIIS8BgWRXqv8fEhUEuuzuVgaApFSEALw_wcB) and then choose the right timeseries ID, for the response time e.g:

_com.dynatrace.builtin:servicemethod.responsetime_

The API call then could be:

```auto
..../api/v1/timeseries?relativeTime=day&aggregationType=MEDIAN&timeseriesId=com.dynatrace.builtin:servicemethod.responsetime

```

This will give you the response time for all key requests, e.g.:

```auto
{
    "result": {
        "dataPoints": {
            "SERVICE_METHOD-899CCEBC08736F7A": [
                [
                    1517512200000,
                    2613281.5
                ],
                [
                    1517512800000,
                    null
                ]
            ]
        },
        "timeseriesId": "com.dynatrace.builtin:servicemethod.responsetime",
        "unit": "MicroSecond (µs)",
        "entities": {
            "SERVICE_METHOD-899CCEBC08736F7A": " /dologin.action"
        },
        "resolutionInMillisUTC": 600000,
        "aggregationType": "MEDIAN"
    }
}

```

Each entry in the first array is a timestamp and the corresponding response time (or null if the request did not occur in that timeframe).

You can then filter for specific entities with the _entity_ parameter.

If I had multiple request in the previous example and wanted to filter on the _/dologin.action_ request I could do so with:

```auto
..../api/v1/timeseries?relativeTime=day&aggregationType=MEDIAN&timeseriesId=com.dynatrace.builtin:servicemethod.responsetime&entity=SERVICE_METHOD-899CCEBC08736F7A

```

You can also find the entity parameter in the URL if you open any entity, be it request, application, host, service, …

Hope this gets you going, if you have any further question, just shoot them over!

---

<div class="post-metadata">

**Author:** ![hayden\_miedema](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hayden_miedema/32/29357_2.png) [@hayden\_miedema](https://community.dynatrace.com/u/hayden_miedema)\
**Post date:** [February 1, 2018, 7:39pm UTC](https://community.dynatrace.com/t/api-to-get-a-list-of-web-transactions/10858/3 "2018-02-01T19:39:57Z")

</div>

There is no way to get a list of transactions serviced by a particular service at this time through the API, though. If you are looking for metrics then the timeseries API is what you need, but these are things like response time, failure rate, 4xx/5xx errors, etc. Unfortunately, no method to just pull a list of transactions for a given time.

Hayden

---

<div class="post-metadata">

**Author:** ![vladislav\_samoy](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/vladislav_samoy/32/27470_2.png) [@vladislav\_samoy](https://community.dynatrace.com/u/vladislav_samoy)\
**Post date:** [October 11, 2018, 2:28pm UTC](https://community.dynatrace.com/t/api-to-get-a-list-of-web-transactions/10858/4 "2018-10-11T14:28:38Z")

</div>

Hi!

Is there any way to get list of transactions with metrics right now?

---

<div class="post-metadata">

**Author:** ![ben\_wrightson](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ben_wrightson/32/34776_2.png) [@ben\_wrightson](https://community.dynatrace.com/u/ben_wrightson)\
**Post date:** [March 20, 2023, 1:34pm UTC](https://community.dynatrace.com/t/api-to-get-a-list-of-web-transactions/10858/5 "2023-03-20T13:34:03Z")

</div>

Product idea at&nbsp;[https://community.dynatrace.com/t5/Dynatrace-product-ideas/API-to-get-the-request-list-of-a-service/idc-p/207425](https://community.dynatrace.com/post/207425)&nbsp;.
