# Retrieving host instances from Host Classics

**URL:** <https://community.dynatrace.com/t/retrieving-host-instances-from-host-classics/52476>\
**Category:** Dynatrace API\
**Tags:** hosts-classic, dynatrace-api\
**Created:** [July 14, 2025, 7:42pm UTC](https://community.dynatrace.com/t/retrieving-host-instances-from-host-classics/52476 "2025-07-14T19:42:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tylerv](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@tylerv](https://community.dynatrace.com/u/tylerv)\
**Post date:** [July 14, 2025, 7:42pm UTC](https://community.dynatrace.com/t/retrieving-host-instances-from-host-classics/52476/1 "2025-07-14T19:42:16Z")

</div>

Good day,

is there perhaps an API endpoint that could help with retrieving only hosts in the “Host Classics” app? Running a GET entities and selecting type HOST seems to return more objects than shown in Classic.

I’ve also tried adding parameters to “scope” it properly, such as time and monitoring modes, but the counts do not match. Maybe there is an exposed parameter I am not aware of?

Thank you.

---

<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:** [July 15, 2025, 5:21am UTC](https://community.dynatrace.com/t/retrieving-host-instances-from-host-classics/52476/2 "2025-07-15T05:21:55Z")

</div>

[@tylerv](https://community.dynatrace.com/user/93339)&nbsp;Please try the below API, make sure you set the&nbsp;entitySelector as&nbsp;type(“HOST”)

> **[Monitored entities API - GET entities list](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/entity-v2/get-entities-list)**
>
> View a list of monitored entities via Dynatrace API.

---

<div class="post-metadata">

**Author:** ![tylerv](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@tylerv](https://community.dynatrace.com/u/tylerv)\
**Post date:** [July 15, 2025, 1:12pm UTC](https://community.dynatrace.com/t/retrieving-host-instances-from-host-classics/52476/3 "2025-07-15T13:12:57Z")

</div>

Hi, Thank you for your reply.

I have tried that, but the number of hosts returned from that request is more than what is shown in hosts classic. For example, running the GETwith entityselector=HOST returns 700 entities of type HOST, but only 500 are shown in host classic. Is there an endpoint that can be used to return exactly the host entities only shown on host classic?

Thank you!

---

<div class="post-metadata">

**Author:** ![GerardJ](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gerardj/32/154_2.png) [@GerardJ](https://community.dynatrace.com/u/GerardJ)\
**Post date:** [July 15, 2025, 2:43pm UTC](https://community.dynatrace.com/t/retrieving-host-instances-from-host-classics/52476/4 "2025-07-15T14:43:24Z")

</div>

Hi&nbsp;[@tylerv](https://community.dynatrace.com/user/93339)&nbsp;  
You can try this in the entitySelector&nbsp; : type(“HOST”),isMonitoringCandidate(“false”)

to exclude “monitoring candidate” from host list

---

<div class="post-metadata">

**Author:** ![tylerv](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@tylerv](https://community.dynatrace.com/u/tylerv)\
**Post date:** [July 16, 2025, 3:04pm UTC](https://community.dynatrace.com/t/retrieving-host-instances-from-host-classics/52476/5 "2025-07-16T15:04:20Z")

</div>

hello, thank you for your answer.

It was something I did not consider, but the amount provided from the request still does not match compared to the amount of hosts in hosts classic. These are the parameters I have tested: isMonitoringCandidate(false), monitoringmode(FULLSTACK), entitySelector=type(HOST),from now-some time. I guess the question would be what the internal filters are for hosts classic.

Thank you.

---

<div class="post-metadata">

**Author:** ![GerardJ](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gerardj/32/154_2.png) [@GerardJ](https://community.dynatrace.com/u/GerardJ)\
**Post date:** [July 17, 2025, 12:09pm UTC](https://community.dynatrace.com/t/retrieving-host-instances-from-host-classics/52476/6 "2025-07-17T12:09:06Z")

</div>

I’ve tried this on a tenant :

 ![GerardJ_1-1752754025498.png](https://global.discourse-cdn.com/dynatrace/original/2X/c/c6f6435d67c71975359f3982f63c0b116ad9edb6.png)

Got 672 hosts in result :

 ![GerardJ_2-1752754125859.png](https://global.discourse-cdn.com/dynatrace/original/2X/b/bb1dbcb29b3da081cfd9ae387a0a9c9f3edd5c4e.png)

Same result in default view in hosts classic :

 ![GerardJ_0-1752754008781.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/d/6dafb48f3dccf724cd5187f5a0d0ab84a234d744.png)
