# Call Elastic API to get an info on a parameter

**URL:** <https://discuss.elastic.co/t/call-elastic-api-to-get-an-info-on-a-parameter/254762>\
**Category:** Elasticsearch\
**Created:** [November 9, 2020, 1:32pm UTC](https://discuss.elastic.co/t/call-elastic-api-to-get-an-info-on-a-parameter/254762 "2020-11-09T13:32:04Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 9, 2020, 6:45pm UTC](https://discuss.elastic.co/t/call-elastic-api-to-get-an-info-on-a-parameter/254762/3 "2020-11-09T18:45:20Z")

</div>

You should try a simple `_search` using a `bool` query with a `must` array which contains a `term` query and a `range` query.

If you don't know how to do it, please share a minimal reproduction script as described in [About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

A full reproduction script is something anyone can copy and paste in Kibana dev console, click on the run button to reproduce your use case. It will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.

---

_[View the full topic](https://discuss.elastic.co/t/call-elastic-api-to-get-an-info-on-a-parameter/254762)._
