# Retrieve Entity Display Names and IDs Using the Dynatrace API

**URL:** <https://community.dynatrace.com/t/retrieve-entity-display-names-and-ids-using-the-dynatrace-api/45275>\
**Category:** Dynatrace API\
**Tags:** dynatrace-managed, dynatrace-api\
**Created:** [April 24, 2024, 8:34am UTC](https://community.dynatrace.com/t/retrieve-entity-display-names-and-ids-using-the-dynatrace-api/45275 "2024-04-24T08:34:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![palemmahesh](https://avatars.discourse-cdn.com/v4/letter/p/c68b51/32.png) [@palemmahesh](https://community.dynatrace.com/u/palemmahesh)\
**Post date:** [April 24, 2024, 8:34am UTC](https://community.dynatrace.com/t/retrieve-entity-display-names-and-ids-using-the-dynatrace-api/45275/1 "2024-04-24T08:34:10Z")

</div>

_Summary:&nbsp;This thread explains which Dynatrace API endpoints return displayName together with entityId. It outlines available fields, parameter requirements, and typical patterns for entity queries._

While getting metrics using&nbsp;[Metrics API - GET metric data points — Dynatrace Docs](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/metric-v2/get-data-points)&nbsp;api, getting the entity\_id in the dimension field.

Is there a way to get the entity display name or display value along with the entity\_id as part of the metric get data points api?

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [April 24, 2024, 10:09am UTC](https://community.dynatrace.com/t/retrieve-entity-display-names-and-ids-using-the-dynatrace-api/45275/2 "2024-04-24T10:09:31Z")

</div>

Hi,

You need to make a second call to&nbsp;[Monitored entities API - GET an entity](https://docs.dynatrace.com/docs/shortlink/api-entities-v2-get-entity).

It has that information.

Best regards

---

<div class="post-metadata">

**Author:** ![palemmahesh](https://avatars.discourse-cdn.com/v4/letter/p/c68b51/32.png) [@palemmahesh](https://community.dynatrace.com/u/palemmahesh)\
**Post date:** [April 24, 2024, 3:23pm UTC](https://community.dynatrace.com/t/retrieve-entity-display-names-and-ids-using-the-dynatrace-api/45275/3 "2024-04-24T15:23:55Z")

</div>

Yes we can do with two calls, But checking whether we can get entity\_id and entity display name in a single metric data points apis, without making extra call again.
