# API to list Service Methods of a given Service

**URL:** <https://community.dynatrace.com/t/api-to-list-service-methods-of-a-given-service/34446>\
**Category:** Dynatrace API\
**Tags:** services-classic, dynatrace-api\
**Created:** [March 10, 2022, 6:11pm UTC](https://community.dynatrace.com/t/api-to-list-service-methods-of-a-given-service/34446 "2022-03-10T18:11:40Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![shreyas\_shivapr](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@shreyas\_shivapr](https://community.dynatrace.com/u/shreyas_shivapr)\
**Post date:** [March 10, 2022, 6:11pm UTC](https://community.dynatrace.com/t/api-to-list-service-methods-of-a-given-service/34446/1 "2022-03-10T18:11:40Z")

</div>

I’m trying to list Service Methods (entityId and name) of a given Service ID using API. I tried v2/entities API but it lists the Service Method Group ID and not Service Methods. Looking for assistance on this.&nbsp;  
Example:

```auto
/api/v2/entities?entitySelector=entityId%28%22SERVICE- **** %22%29&fields=fromRelationships%2C%20toRelationships

```

---

_[View the full topic](https://community.dynatrace.com/t/api-to-list-service-methods-of-a-given-service/34446)._
