# Synthetic Monitoring: How to Convert Location IDs Between HTTP Monitors execution API and the Locations API

**URL:** <https://community.dynatrace.com/t/synthetic-monitoring-how-to-convert-location-ids-between-http-monitors-execution-api-and-the-locations-api/55072>\
**Category:** Troubleshooting\
**Tags:** http-monitor, synthetic-monitoring\
**Created:** [February 24, 2026, 8:04pm UTC](https://community.dynatrace.com/t/synthetic-monitoring-how-to-convert-location-ids-between-http-monitors-execution-api-and-the-locations-api/55072 "2026-02-24T20:04:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hannahmac](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hannahmac/32/41823_2.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [February 24, 2026, 8:04pm UTC](https://community.dynatrace.com/t/synthetic-monitoring-how-to-convert-location-ids-between-http-monitors-execution-api-and-the-locations-api/55072/1 "2026-02-24T20:04:52Z")

</div>

## **Summary**

When working with the [**Synthetic monitor executions API v2 - GET HTTP monitor**](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/synthetic-v2/synthetic-monitor-execution/get-http-monitor) and the [**Synthetic locations API v2**](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/synthetic-v2/synthetic-locations-v2/get-a-location), you may notice that **location IDs** don’t match.  
This happens because:

- The **HTTP Monitor executions API** returns location IDs **in decimal**
- The **Locations API** uses **hexadecimal** location IDs

To query location details using the ID from a monitor execution, you must convert the decimal ID → hexadecimal and prepend the required prefix.Example:  
`54` (decimal) → `34` (hex) → `SYNTHETIC_LOCATION-0000000000000034`

## **Problem**

When retrieving execution details from&nbsp;the [**Synthetic monitor executions API v2 - GET HTTP monitor**](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/synthetic-v2/synthetic-monitor-execution/get-http-monitor), the `locationId` field appears in **decimal format** , but when calling&nbsp;[Synthetic locations API v2 - GET a location,](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/synthetic-v2/synthetic-locations-v2/get-a-location) the API expects a **hexadecimal location ID**.This mismatch means that direct lookups are not possible unless the values are converted.

## **Resolution**

### **Steps**

1. Retrieve the&nbsp; **decimal** &nbsp;locationId from the HTTP Monitor execution API output
2. Convert decimal → hexadecimal (any standard converter works)  
Example:  
`54 (decimal)` → `34 (hex)`
3. Apply the prefix: `SYNTHETIC_LOCATION-00000000000000`.
  1. Apply zero-padding until the hex string is 16 characters long  
Final format required by the Locations API:

4. Add the location id to the Locations API call

## What’s Next?

If this article didn’t resolve your issue, please consider **opening a support ticket**.Include:

- A link to this article
- The monitor execution payload (with `locationId`)
- The request and full response body from your Locations API call
- Any scripts or automated workflow where the mismatch occurs

This will help us diagnose formatting or data-transformation issues quickly.

### Related reading

📖&nbsp;&nbsp;[Synthetic monitor executions API v2 - GET HTTP monitor](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/synthetic-v2/synthetic-monitor-execution/get-http-monitor)

📖&nbsp; [Synthetic locations API v2](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/synthetic-v2/synthetic-locations-v2/get-a-location)

📖&nbsp;&nbsp;[Synthetic Troubleshooting Map](https://community.dynatrace.com/topic/250426)

📖&nbsp; [HTTP Monitors (classic) documentation](https://docs.dynatrace.com/docs/observe/digital-experience/synthetic-monitoring/http-monitors-classic)

📖&nbsp; [Latest Dynatrace Synthetic App](https://docs.dynatrace.com/docs/observe/digital-experience/synthetic-on-grail/synthetic-app)
