# Synthetic monitoring of an API with performance metrics

**URL:** https://discuss.elastic.co/t/synthetic-monitoring-of-an-api-with-performance-metrics/266331
**Category:** Synthetics
**Tags:** synthetics
**Created:** [March 5, 2021, 8:01am UTC](https://discuss.elastic.co/t/synthetic-monitoring-of-an-api-with-performance-metrics/266331 "2021-03-05T08:01:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Moritz\_Rieger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/moritz_rieger/32/84048_2.png) [@Moritz\_Rieger](https://discuss.elastic.co/u/Moritz_Rieger)
#### Post date: [March 5, 2021, 8:01am UTC](https://discuss.elastic.co/t/synthetic-monitoring-of-an-api-with-performance-metrics/266331/1 "2021-03-05T08:01:39Z")

</div>

Hi elastic team,

I really love the idea of synthetic monitoring and having it integrated in the uptime monitoring app. At the moment, I am working on an API as a product project and would love to use synthetic monitoring to verify that the API is working properly. I added some new journeys to the example project to test the API with some simple fetch calls. When I looked into the uptime app, I realized that there is no performance breakdown for all steps where I am not using the playwright page object. Is there a way to also gain these performance insights for API calls without using the page object from playwright?  
I think it would be really cool to use synthetic monitoring for products without an UI as well.

Thanks in advance!

---

<div class="post-metadata">

### Author: ![PaulB-Elastic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paulb-elastic/32/78691_2.png) [@PaulB-Elastic](https://discuss.elastic.co/u/PaulB-Elastic)
#### Post date: [March 5, 2021, 2:16pm UTC](https://discuss.elastic.co/t/synthetic-monitoring-of-an-api-with-performance-metrics/266331/2 "2021-03-05T14:16:44Z")

</div>

Hi @Moritz_Rieger, the Synthetic Agent would typically be used for real browser tests loading and interacting with websites (using a Synthetic/Playwright script). If you’re mainly after hitting API endpoints, maybe HTTP Ping monitor types in Heartbeat would be more appropriate.

There is more information on Heartbeat monitors [here](https://www.elastic.co/guide/en/beats/heartbeat/current/configuration-heartbeat-options.html), with details on the HTTP type, [here](https://www.elastic.co/guide/en/beats/heartbeat/current/monitor-http-options.html).

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [March 29, 2021, 2:16pm UTC](https://discuss.elastic.co/t/synthetic-monitoring-of-an-api-with-performance-metrics/266331/3 "2021-03-29T14:16:52Z")

</div>

This topic was automatically closed 24 days after the last reply. New replies are no longer allowed.
