# Is there Any api for to get the HOSTID and TIMESERIESID??

**URL:** <https://community.dynatrace.com/t/is-there-any-api-for-to-get-the-hostid-and-timeseriesid/6099>\
**Category:** Dynatrace API\
**Created:** [May 3, 2017, 8:00am UTC](https://community.dynatrace.com/t/is-there-any-api-for-to-get-the-hostid-and-timeseriesid/6099 "2017-05-03T08:00:36Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![naveena](https://avatars.discourse-cdn.com/v4/letter/n/919ad9/32.png) [@naveena](https://community.dynatrace.com/u/naveena)\
**Post date:** [May 3, 2017, 8:00am UTC](https://community.dynatrace.com/t/is-there-any-api-for-to-get-the-hostid-and-timeseriesid/6099/1 "2017-05-03T08:00:36Z")

</div>

![12095-hosttimeseriesid.jpg](https://global.discourse-cdn.com/dynatrace/original/3X/c/a/ca48ed12f21b7c73d1f1184461de9f1c2afb4638.jpeg)

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [May 3, 2017, 8:15am UTC](https://community.dynatrace.com/t/is-there-any-api-for-to-get-the-hostid-and-timeseriesid/6099/2 "2017-05-03T08:15:11Z")

</div>

Timeseries ids are in the table here: [https://help.dynatrace.com/dynatrace-api/timeserie…](https://help.dynatrace.com/dynatrace-api/timeseries/how-do-i-fetch-the-metrics-of-monitored-entities/)

Host ids can be found in the URL param when you navigate in UI to that particular host details page.

---

<div class="post-metadata">

**Author:** ![naveena](https://avatars.discourse-cdn.com/v4/letter/n/919ad9/32.png) [@naveena](https://community.dynatrace.com/u/naveena)\
**Post date:** [May 3, 2017, 8:26am UTC](https://community.dynatrace.com/t/is-there-any-api-for-to-get-the-hostid-and-timeseriesid/6099/3 "2017-05-03T08:26:27Z")

</div>

Rad,

Sorry , i didn’t get your answer.

I want to run the below API in postman.

https://{id}.live.dynatrace.com/api/v1/timeseries?relativeTime=hour&entity=HOST-B64B6B9CB11E2244&aggregationType=AVG&timeseriesId=com.dynatrace.builtin:host.cpu.user

what shall i give as entity and timeseriesId ?

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [May 3, 2017, 8:32am UTC](https://community.dynatrace.com/t/is-there-any-api-for-to-get-the-hostid-and-timeseriesid/6099/4 "2017-05-03T08:32:27Z")

</div>

Depends what metric you want to get use a timeserie Id from the table described here: [https://help.dynatrace.com/dynatrace-api/timeserie…](https://help.dynatrace.com/dynatrace-api/timeseries/how-do-i-fetch-the-metrics-of-monitored-entities/?_ga=2.75353298.110615924.1493800053-1791379439.1429300141#available-timeseries)

Then to get entity Id - for instance host :

1. Go to Hosts page in UI

2. Select host that you want to use

3. Look at the page URL. There should be entity ID included in the parameters.

Better now ?

---

<div class="post-metadata">

**Author:** ![naveena](https://avatars.discourse-cdn.com/v4/letter/n/919ad9/32.png) [@naveena](https://community.dynatrace.com/u/naveena)\
**Post date:** [May 3, 2017, 10:01am UTC](https://community.dynatrace.com/t/is-there-any-api-for-to-get-the-hostid-and-timeseriesid/6099/5 "2017-05-03T10:01:04Z")

</div>

Thanks Radoslaw,

sorry for asking, if possible can you please attach the screenshot for entity ID.

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [May 3, 2017, 7:14pm UTC](https://community.dynatrace.com/t/is-there-any-api-for-to-get-the-hostid-and-timeseriesid/6099/6 "2017-05-03T19:14:34Z")

</div>

**Entity ID** is highlighted in the URL :

 ![12114-2017-05-03-21-10-59-host-demo-tenant-rafal-psciuk.png](https://global.discourse-cdn.com/dynatrace/original/1X/c7db8bc04833f334646e9b713dcd8661ace55b4c.png)

---

<div class="post-metadata">

**Author:** ![abhaynav](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@abhaynav](https://community.dynatrace.com/u/abhaynav)\
**Post date:** [May 4, 2017, 8:19am UTC](https://community.dynatrace.com/t/is-there-any-api-for-to-get-the-hostid-and-timeseriesid/6099/7 "2017-05-04T08:19:00Z")

</div>

Hi Radoslaw,

I installed easyTravel and i ran that, but i couldn’t find any host id. Please check attachement for reference.

Thanks,

Naveen

 ![12122-hostid.jpg](https://global.discourse-cdn.com/dynatrace/original/2X/a/aeb8b784928da67cf7e30585aa8c8e0176c8419c.jpeg)

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [May 4, 2017, 8:23am UTC](https://community.dynatrace.com/t/is-there-any-api-for-to-get-the-hostid-and-timeseriesid/6099/8 "2017-05-04T08:23:04Z")

</div>

ohh … that is app mon. I was writing about Dynatrace Saas & Managed. The API also refers to that.

---

<div class="post-metadata">

**Author:** ![abhaynav](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@abhaynav](https://community.dynatrace.com/u/abhaynav)\
**Post date:** [May 4, 2017, 8:31am UTC](https://community.dynatrace.com/t/is-there-any-api-for-to-get-the-hostid-and-timeseriesid/6099/9 "2017-05-04T08:31:17Z")

</div>

What is the difference between them and am i in correct track ?

---

<div class="post-metadata">

**Author:** ![abhaynav](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@abhaynav](https://community.dynatrace.com/u/abhaynav)\
**Post date:** [May 5, 2017, 5:32am UTC](https://community.dynatrace.com/t/is-there-any-api-for-to-get-the-hostid-and-timeseriesid/6099/10 "2017-05-05T05:32:57Z")

</div>

![12131-oneagent.jpg](https://global.discourse-cdn.com/dynatrace/original/2X/5/5716f0ba2c022035a1ad9600fb58b8d2dd14dbea.jpeg)

Hi Radoslaw,

 ![12130-host-id.jpg](https://global.discourse-cdn.com/dynatrace/original/3X/7/a/7ab0fcb7baad69a13cda0348efeee54a6b233524.jpeg)

When iam adding tier iam getting above error. Can you please guide me.

Thanks,

Naveen Ambala

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [May 5, 2017, 3:39pm UTC](https://community.dynatrace.com/t/is-there-any-api-for-to-get-the-hostid-and-timeseriesid/6099/11 "2017-05-05T15:39:05Z")

</div>

Sorry, I’m a bit confused now. Do you have an issue with App mon (screenshot 1) or with Dynatrace SaaS (screenshot 2) ?

Both screenshots show that you should restart some java processes. You need to do it manually from the OS.

---

<div class="post-metadata">

**Author:** ![naveena](https://avatars.discourse-cdn.com/v4/letter/n/919ad9/32.png) [@naveena](https://community.dynatrace.com/u/naveena)\
**Post date:** [May 8, 2017, 4:47am UTC](https://community.dynatrace.com/t/is-there-any-api-for-to-get-the-hostid-and-timeseriesid/6099/12 "2017-05-08T04:47:46Z")

</div>

Dynatrace Saas URL is

[Account Management](https://xxxxxx.live.dynatrace.com/#deploymentstatus)&nbsp;how can we execute that in our local machine to get the HOSTID.

 ![12162-deploy-dynatrace-hostid.jpg](https://global.discourse-cdn.com/dynatrace/original/2X/6/6f4297ec9a9725ff659d2731fcf1a43d513129cf.jpeg)

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [May 9, 2017, 8:26am UTC](https://community.dynatrace.com/t/is-there-any-api-for-to-get-the-hostid-and-timeseriesid/6099/13 "2017-05-09T08:26:41Z")

</div>

From the screenshot HOSTID = HOST-DEMO0000000001

but this is a demo host that is only to show you some data in UI. A dummy host.

You should try to find a real one.

---

<div class="post-metadata">

**Author:** ![naveena](https://avatars.discourse-cdn.com/v4/letter/n/919ad9/32.png) [@naveena](https://community.dynatrace.com/u/naveena)\
**Post date:** [May 10, 2017, 6:00am UTC](https://community.dynatrace.com/t/is-there-any-api-for-to-get-the-hostid-and-timeseriesid/6099/14 "2017-05-10T06:00:10Z")

</div>

Hi Radoslaw,

Acutally iam also asking the same , not able to get the real one, how to get the real HOST-ID . Can you please suggest some steps.

Thanks,

Naveen Ambala

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [May 10, 2017, 10:07am UTC](https://community.dynatrace.com/t/is-there-any-api-for-to-get-the-hostid-and-timeseriesid/6099/15 "2017-05-10T10:07:13Z")

</div>

Naveen… you need to deploy an agent firstly on a host.
