# Dynatrace API get data points metric

**URL:** <https://community.dynatrace.com/t/dynatrace-api-get-data-points-metric/49039>\
**Category:** Dynatrace API\
**Tags:** javascript, dynatrace-api\
**Created:** [November 25, 2024, 12:38am UTC](https://community.dynatrace.com/t/dynatrace-api-get-data-points-metric/49039 "2024-11-25T00:38:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JhonU](https://avatars.discourse-cdn.com/v4/letter/j/f14d63/32.png) [@JhonU](https://community.dynatrace.com/u/JhonU)\
**Post date:** [November 25, 2024, 12:38am UTC](https://community.dynatrace.com/t/dynatrace-api-get-data-points-metric/49039/1 "2024-11-25T00:38:05Z")

</div>

Hi, can I execute a call to the dynatrace API of a tenant, in another tenant through notebooks?  
I have this idea to have data from an old tenant in a new tenant, I obtained the access token and in the curl I make the call to the data I want but when trying to put together a code in javascript for notebooks I can’t get the data.

---

<div class="post-metadata">

**Author:** ![p\_devulapalli](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/p_devulapalli/32/41590_2.png) [@p\_devulapalli](https://community.dynatrace.com/u/p_devulapalli)\
**Post date:** [November 25, 2024, 12:59am UTC](https://community.dynatrace.com/t/dynatrace-api-get-data-points-metric/49039/2 "2024-11-25T00:59:46Z")

</div>

[@JhonU](https://community.dynatrace.com/user/75688)&nbsp;have you allowed the outbound connection from your DT tenant?

> **[Allow external requests | Dynatrace Developer](https://developer.dynatrace.com/develop/guides/app-functions/allow-outbound-connections/)**
>
> Enable request to external hosts.

 ![p_devulapalli_0-1732496275828.png](https://global.discourse-cdn.com/dynatrace/original/2X/0/0d48489706d779f8a727802e2e1b144587e8b9cc.png)
