# Extract host names from last 90 days till now using API?

**URL:** <https://community.dynatrace.com/t/extract-host-names-from-last-90-days-till-now-using-api/19119>\
**Category:** Open Q&A\
**Tags:** management-zones, hosts-classic\
**Created:** [April 22, 2020, 5:32pm UTC](https://community.dynatrace.com/t/extract-host-names-from-last-90-days-till-now-using-api/19119 "2020-04-22T17:32:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahima\_goel](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@mahima\_goel](https://community.dynatrace.com/u/mahima_goel)\
**Post date:** [April 22, 2020, 5:32pm UTC](https://community.dynatrace.com/t/extract-host-names-from-last-90-days-till-now-using-api/19119/1 "2020-04-22T17:32:44Z")

</div>

Want to extract the details of host names from last 90 days till current date using API, can I do it?

---

<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:** [April 22, 2020, 5:35pm UTC](https://community.dynatrace.com/t/extract-host-names-from-last-90-days-till-now-using-api/19119/2 "2020-04-22T17:35:14Z")

</div>

yes you can via the Environment API.

 ![24752-1587577093833.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/0/f021cd305ce1d7a38b8303df8cb71a14c239fd88.png)

---

<div class="post-metadata">

**Author:** ![mahima\_goel](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@mahima\_goel](https://community.dynatrace.com/u/mahima_goel)\
**Post date:** [April 22, 2020, 5:37pm UTC](https://community.dynatrace.com/t/extract-host-names-from-last-90-days-till-now-using-api/19119/3 "2020-04-22T17:37:38Z")

</div>

I have some hosts, where one agent stopped working, so would I not be able to extract that hosts?

---

<div class="post-metadata">

**Author:** ![wolfgang\_beer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/wolfgang_beer/32/14717_2.png) [@wolfgang\_beer](https://community.dynatrace.com/u/wolfgang_beer)\
**Post date:** [April 23, 2020, 6:51am UTC](https://community.dynatrace.com/t/extract-host-names-from-last-90-days-till-now-using-api/19119/4 "2020-04-23T06:51:42Z")

</div>

Sure they are still receivable through the API, just use a past timeframe where OneAgent was running back then.
