# How to get entities only that have problems using API?

**URL:** <https://community.dynatrace.com/t/how-to-get-entities-only-that-have-problems-using-api/38910>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [March 20, 2023, 5:21pm UTC](https://community.dynatrace.com/t/how-to-get-entities-only-that-have-problems-using-api/38910 "2023-03-20T17:21:08Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![McVitas](https://avatars.discourse-cdn.com/v4/letter/m/b487fb/32.png) [@McVitas](https://community.dynatrace.com/u/McVitas)\
**Post date:** [September 19, 2023, 12:07pm UTC](https://community.dynatrace.com/t/how-to-get-entities-only-that-have-problems-using-api/38910/3 "2023-09-19T12:07:23Z")

</div>

Hello. I am trying similar thing: I want to list all open problems but only with some fields. I want problem title and hostname. Unfortunately I can’t get the hostname into the resulting JSON. I tried name, hostname, but it doesn’t put it there and I get result completely without hostnames or with hostnames but also with many other information which I don’t want. The best thing would be to be able to get a CSV format result, but I guess this is not possible?

---

_[View the full topic](https://community.dynatrace.com/t/how-to-get-entities-only-that-have-problems-using-api/38910)._
