# Pulling Synthetic API Data in Dashboards

**URL:** <https://community.dynatrace.com/t/pulling-synthetic-api-data-in-dashboards/47288>\
**Category:** Synthetic Monitoring\
**Tags:** dashboards, synthetic-monitoring, dynatrace-api\
**Created:** [August 23, 2024, 1:17pm UTC](https://community.dynatrace.com/t/pulling-synthetic-api-data-in-dashboards/47288 "2024-08-23T13:17:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GregOReilly](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gregoreilly/32/27713_2.png) [@GregOReilly](https://community.dynatrace.com/u/GregOReilly)\
**Post date:** [August 23, 2024, 1:17pm UTC](https://community.dynatrace.com/t/pulling-synthetic-api-data-in-dashboards/47288/1 "2024-08-23T13:17:30Z")

</div>

I want to create a new Dynatrace dashboard that not only shows synthetic availability but also includes detailed error and failure codes.

Currently, our dashboards provide essential metrics like speed, size, and success rates of synthetic tests, along with location filters. However, they don’t display specific failure messages.

For instance, when some of my synthetics fail, I receive error codes such as “Unexpected Content-Length.” I’d like to visualize these failure messages on dashboards over time.

The reason is that we have a global deployment of services, with synthetics running across Europe, Asia, and North America. When this error occurs, it often indicates a caching issue, causing some users to see outdated data.

Is there a way to use the Dynatrace API to pull specific “Failure Messages”? We have error and problem detection in place, but currently, we must manually check each synthetic and location to see the failure message.

Automating this would significantly streamline our process.

---

<div class="post-metadata">

**Author:** ![hannahmac](https://avatars.discourse-cdn.com/v4/letter/h/dec6dc/32.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [August 27, 2024, 9:51am UTC](https://community.dynatrace.com/t/pulling-synthetic-api-data-in-dashboards/47288/2 "2024-08-27T09:51:54Z")

</div>

How about something like

```markup
builtin:synthetic.http.execution.status:splitBy("dt.entity.http_check",execution_status_name):sort(value(auto,descending)):limit(20)

```

or

```markup
builtin:synthetic.browser.errorCodes.geo:splitBy("By error code","dt.entity.synthetic_test"):sort(value(auto,descending)):limit(20)

```
