# LocationId in synthetic monitoring execution endpoint

**URL:** <https://community.dynatrace.com/t/locationid-in-synthetic-monitoring-execution-endpoint/38520>\
**Category:** Dynatrace API\
**Tags:** synthetic-monitoring, dynatrace-api\
**Created:** [February 21, 2023, 7:00pm UTC](https://community.dynatrace.com/t/locationid-in-synthetic-monitoring-execution-endpoint/38520 "2023-02-21T19:00:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bryandavis](https://avatars.discourse-cdn.com/v4/letter/b/a4c791/32.png) [@bryandavis](https://community.dynatrace.com/u/bryandavis)\
**Post date:** [February 21, 2023, 7:00pm UTC](https://community.dynatrace.com/t/locationid-in-synthetic-monitoring-execution-endpoint/38520/1 "2023-02-21T19:00:58Z")

</div>

When retrieving the results of an HTTP Check I see request results for each location. The location is identified with a locationId, like below from “/synthetic/execution”.

```markup
{
    "monitorId": "HTTP_CHECK-ABB43CF5DB511A5D",
    "locationsExecutionResults": [
        {
            "locationId": "88",
            "executionId": "26726351503",
            "requestResults": [
            ....
        },
        {
            "locationId": "124",
            "executionId": "26726351345",
            "requestResults": [
            ....
        },

```

I would like to be able to tie that locationId value back to a named public/private location. There’s no similar field value in “/synthetic/locations”, or "/synthetic/locations/\<location id\>. Is there an easy way to tie that id to a location name/record?

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [February 21, 2023, 8:38pm UTC](https://community.dynatrace.com/t/locationid-in-synthetic-monitoring-execution-endpoint/38520/2 "2023-02-21T20:38:47Z")

</div>

That’s true, the location ID does not matchs the one we get from /synthetic/locations/ API

One way to match it is checking the execution result from Synthetic monitor details page in UI

 ![Screenshot 2023-02-21 at 17.36.28.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/5fe358605df23f9d43b19f61a4aa76701c3b9dc1.png)

 ![Screenshot 2023-02-21 at 17.35.30.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/7/57e7889dce41d12b62a51ca253dbc01def0792dc.png)

In my tenant, the locationId 16 is meant for Virgnia.

---

<div class="post-metadata">

**Author:** ![bryandavis](https://avatars.discourse-cdn.com/v4/letter/b/a4c791/32.png) [@bryandavis](https://community.dynatrace.com/u/bryandavis)\
**Post date:** [February 22, 2023, 9:00pm UTC](https://community.dynatrace.com/t/locationid-in-synthetic-monitoring-execution-endpoint/38520/3 "2023-02-22T21:00:10Z")

</div>

Thanks, I can build out a static list of locationid’s from the UI and use that to tie the locationId from the API to a proper name.
