# API Call for visualization

**URL:** <https://community.dynatrace.com/t/api-call-for-visualization/33916>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, application-monitoring, user-sessions\
**Created:** [January 28, 2022, 9:48am UTC](https://community.dynatrace.com/t/api-call-for-visualization/33916 "2022-01-28T09:48:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThibautDKT](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/thibautdkt/32/8522_2.png) [@ThibautDKT](https://community.dynatrace.com/u/ThibautDKT)\
**Post date:** [January 28, 2022, 9:48am UTC](https://community.dynatrace.com/t/api-call-for-visualization/33916/1 "2022-01-28T09:48:45Z")

</div>

Hello Everyone !

My company is mainly using google data studio to visualize data.

In order the visualize&nbsp; the metrics available in Dynatrace I’d like to use app script to (1) make and API call, (2) import the json into Google sheet, (3) Visualize the data with Data studio.

May I ask if some of you have ever used google app script to make an API call into Dynatrace ?

If you feel like the steps below don’t make sense feel free to suggest a different method.

Regards

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [March 31, 2022, 1:39pm UTC](https://community.dynatrace.com/t/api-call-for-visualization/33916/2 "2022-03-31T13:39:53Z")

</div>

I’ve done a bunch of API Metric exports from Dynatrace. Just remember this API Call is RAW data and will not have any visuals. It would be up to your ingesting platform to visualize that data. Much like Dynatrace does with metric ingestion.

I recommend defining out what metrics you are looking to pull and visualize, then find that data in the API, create a token and pull the data.

---

<div class="post-metadata">

**Author:** ![ThibautDKT](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/thibautdkt/32/8522_2.png) [@ThibautDKT](https://community.dynatrace.com/u/ThibautDKT)\
**Post date:** [April 1, 2022, 6:58am UTC](https://community.dynatrace.com/t/api-call-for-visualization/33916/3 "2022-04-01T06:58:39Z")

</div>

Hello,

After few weeks of research I’ve found a solution to my issue,

-&nbsp; Test SQL " query user session "

-&nbsp; Paste the request under APIV1 RUM Section.

-&nbsp; Copy the generated URL

- Export data from the URL using Python or appscript to a visualization System.

 ![ThibautDKT_0-1648796164891.png](https://global.discourse-cdn.com/dynatrace/original/2X/8/8ec252f0b6b5fec4430863bdfae58ae0d1b38ad8.png)

thank you very much for your answer anyway. Much appreciated !

I’ll be happy to help however needs help with this.

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [April 1, 2022, 8:40am UTC](https://community.dynatrace.com/t/api-call-for-visualization/33916/4 "2022-04-01T08:40:25Z")

</div>

Also to include that you can make the JSON calls directly in Excel and get data into sheets.

I believe Google sheet does have a similar functionality, but have not tested it yet.

---

<div class="post-metadata">

**Author:** ![ThibautDKT](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/thibautdkt/32/8522_2.png) [@ThibautDKT](https://community.dynatrace.com/u/ThibautDKT)\
**Post date:** [April 4, 2022, 7:08am UTC](https://community.dynatrace.com/t/api-call-for-visualization/33916/5 "2022-04-04T07:08:51Z")

</div>

II wrote the scipt myself to do the API call and import the data in google sheet,

I can share it with anyone who needs it.

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [April 4, 2022, 8:28am UTC](https://community.dynatrace.com/t/api-call-for-visualization/33916/6 "2022-04-04T08:28:51Z")

</div>

[@ThibautDKT](https://community.dynatrace.com/user/45127), awesome! If you can, you could share how you’ve done it in the “Tips and tricks” section. I’m pretty much sure that other members in the Community will appreciate it!
