# How to query external API from Dynatrace periodically and fetch the data?

**URL:** <https://community.dynatrace.com/t/how-to-query-external-api-from-dynatrace-periodically-and-fetch-the-data/49191>\
**Category:** Dynatrace API\
**Tags:** workflows, notebooks, dynatrace-api\
**Created:** [December 4, 2024, 9:25am UTC](https://community.dynatrace.com/t/how-to-query-external-api-from-dynatrace-periodically-and-fetch-the-data/49191 "2024-12-04T09:25:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sisapy09](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@Sisapy09](https://community.dynatrace.com/u/Sisapy09)\
**Post date:** [December 4, 2024, 9:25am UTC](https://community.dynatrace.com/t/how-to-query-external-api-from-dynatrace-periodically-and-fetch-the-data/49191/1 "2024-12-04T09:25:03Z")

</div>

How can I periodically query an external API from Dynatrace and fetch the data ? What requirements are needed from the external API side, and what is needed from Dynatrace side?

---

<div class="post-metadata">

**Author:** ![paolo\_fumanelli](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/paolo_fumanelli/32/1037_2.png) [@paolo\_fumanelli](https://community.dynatrace.com/u/paolo_fumanelli)\
**Post date:** [December 4, 2024, 10:00am UTC](https://community.dynatrace.com/t/how-to-query-external-api-from-dynatrace-periodically-and-fetch-the-data/49191/2 "2024-12-04T10:00:06Z")

</div>

You can set up a workflow that supports several different triggers and schedules, and create a task of **HTTP request** type.

External endpoint must be allowed under **settings - preferences - Limit outbound connections**.

---

<div class="post-metadata">

**Author:** ![Sisapy09](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@Sisapy09](https://community.dynatrace.com/u/Sisapy09)\
**Post date:** [December 4, 2024, 1:58pm UTC](https://community.dynatrace.com/t/how-to-query-external-api-from-dynatrace-periodically-and-fetch-the-data/49191/3 "2024-12-04T13:58:04Z")

</div>

Hi&nbsp;[@paolo\_fumanelli](https://community.dynatrace.com/user/19328)

Thank you. I will try that out.

Regards,  
Sivp09
