# How to get host id  for a specific service through REST API

**URL:** <https://community.dynatrace.com/t/how-to-get-host-id-for-a-specific-service-through-rest-api/5075>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [April 12, 2017, 9:44pm UTC](https://community.dynatrace.com/t/how-to-get-host-id-for-a-specific-service-through-rest-api/5075 "2017-04-12T21:44:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ann\_huang](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@ann\_huang](https://community.dynatrace.com/u/ann_huang)\
**Post date:** [April 12, 2017, 9:44pm UTC](https://community.dynatrace.com/t/how-to-get-host-id-for-a-specific-service-through-rest-api/5075/1 "2017-04-12T21:44:53Z")

</div>

For a service, can we know where is it running by using REST API?

---

<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:** [December 7, 2017, 2:00pm UTC](https://community.dynatrace.com/t/how-to-get-host-id-for-a-specific-service-through-rest-api/5075/2 "2017-12-07T14:00:10Z")

</div>

Right now you have to follow the relationship to the process group and then to the hosts that are within the process group. In an upcoming release we will also show the direct relation between a process and a service.
