# Where to find "search latency" in the API's?

**URL:** https://discuss.elastic.co/t/where-to-find-search-latency-in-the-apis/59202
**Category:** Elasticsearch
**Created:** [August 29, 2016, 3:29pm UTC](https://discuss.elastic.co/t/where-to-find-search-latency-in-the-apis/59202 "2016-08-29T15:29:15Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![frankkoornstra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frankkoornstra/32/6780_2.png) [@frankkoornstra](https://discuss.elastic.co/u/frankkoornstra)
#### Post date: [August 29, 2016, 3:29pm UTC](https://discuss.elastic.co/t/where-to-find-search-latency-in-the-apis/59202/1 "2016-08-29T15:29:15Z")

</div>

On the Marvel screens you can see the "search latency" but I can't seem to find that metric in any of the API's (at least not with that name or something similar), granted that there are quite a lot of them and in turn a lot of number in each. Could someone point me in the right direction, so which API and what the metric is called in that API?

---

<div class="post-metadata">

### Author: ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)
#### Post date: [August 30, 2016, 8:45am UTC](https://discuss.elastic.co/t/where-to-find-search-latency-in-the-apis/59202/2 "2016-08-30T08:45:47Z")

</div>

Hi @frankkoornstra,

the description of this field says:

> Average latency for searching, which is time it takes to execute searches divided by number of searches submitted. This considers primary and replica shards.

There is no API where you get this exact metric but you should be able to get the raw data from the [indices stats API](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-stats.html).

Daniel

---

<div class="post-metadata">

### Author: ![frankkoornstra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frankkoornstra/32/6780_2.png) [@frankkoornstra](https://discuss.elastic.co/u/frankkoornstra)
#### Post date: [August 30, 2016, 10:33am UTC](https://discuss.elastic.co/t/where-to-find-search-latency-in-the-apis/59202/3 "2016-08-30T10:33:42Z")

</div>

Alright, thanks for the help 🙂

---

<div class="post-metadata">

### Author: ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)
#### Post date: [August 30, 2016, 10:38am UTC](https://discuss.elastic.co/t/where-to-find-search-latency-in-the-apis/59202/4 "2016-08-30T10:38:07Z")

</div>

You're welcome. 🙂

---

<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: [July 5, 2017, 10:24pm UTC](https://discuss.elastic.co/t/where-to-find-search-latency-in-the-apis/59202/5 "2017-07-05T22:24:06Z")

</div>


