# How to query multiple entityTypes in a single API call?

**URL:** <https://community.dynatrace.com/t/how-to-query-multiple-entitytypes-in-a-single-api-call/41380>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [August 27, 2023, 9:18am UTC](https://community.dynatrace.com/t/how-to-query-multiple-entitytypes-in-a-single-api-call/41380 "2023-08-27T09:18:31Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![NavenduGupta](https://avatars.discourse-cdn.com/v4/letter/n/50afbb/32.png) [@NavenduGupta](https://community.dynatrace.com/u/NavenduGupta)\
**Post date:** [August 27, 2023, 9:18am UTC](https://community.dynatrace.com/t/how-to-query-multiple-entitytypes-in-a-single-api-call/41380/1 "2023-08-27T09:18:31Z")

</div>

How can I query for multiple entityTypes in a single call?

e.g. I want to query for all the entities which are either type (HOST) or type(PROCESS\_GROUP\_INSTANCE) for an environment?

GET /e/\<env-id\>/api/v2/entities?pageSIze=500&entitySelector=tag(“TAGABCD”),type(HOST)&fields=firstSeenTms,lastSeenTms,properties,tags,managementZones,fromRelationships,toRelationships

in the above query, I can only entities of type HOST? can I query for multiple entity types e.g. give me the list of all the entities with are either “HOST” or “PROCESS\_GROUP\_INSTANCE”?

---

_[View the full topic](https://community.dynatrace.com/t/how-to-query-multiple-entitytypes-in-a-single-api-call/41380)._
