# Cloud.elastic.co customer, need to perform REST search queries

**URL:** <https://discuss.elastic.co/t/cloud-elastic-co-customer-need-to-perform-rest-search-queries/213402>\
**Category:** Elasticsearch\
**Created:** [December 31, 2019, 2:01am UTC](https://discuss.elastic.co/t/cloud-elastic-co-customer-need-to-perform-rest-search-queries/213402 "2019-12-31T02:01:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arman\_Sharafshahi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arman_sharafshahi/32/47533_2.png) [@Arman\_Sharafshahi](https://discuss.elastic.co/u/Arman_Sharafshahi)\
**Post date:** [December 31, 2019, 2:01am UTC](https://discuss.elastic.co/t/cloud-elastic-co-customer-need-to-perform-rest-search-queries/213402/1 "2019-12-31T02:01:36Z")

</div>

Hi,  
I'm a user of Elastic and Kibana via the [cloud.elastic.co](http://cloud.elastic.co) service. I have an aggregation search query which works perfectly from the Kibana devtools console. I now need to perform this query via a REST HTTP call from another application. Which URL endpoint and API path would I use for this and what authentication method? I know how to get the URL endpoints from the portal for Elasticsearch and Kibana, but which one do I use? I have tried POSTing to '/api/v1/\_search' but do not get the same response as the devtools console.

Thanks  
Arman

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [December 31, 2019, 3:24am UTC](https://discuss.elastic.co/t/cloud-elastic-co-customer-need-to-perform-rest-search-queries/213402/2 "2019-12-31T03:24:04Z")

</div>

Start here:

- [https://www.elastic.co/guide/en/elasticsearch/reference/7.5/getting-started-search.html](https://www.elastic.co/guide/en/elasticsearch/reference/7.5/getting-started-search.html)

and then

- [https://www.elastic.co/guide/en/elasticsearch/reference/7.5/search.html](https://www.elastic.co/guide/en/elasticsearch/reference/7.5/search.html)

The basic concept is that you need to send the query to the `_search` endpoint on Elasticsearch.  
In the Cloud console there's a "Copy Endpoint URL" button - you want the one for your Elasticsearch deployment.

Then you can `POST` your query to `https://your.cloud.deployment.url/_search`

But I really recommend reading some docs, and/or completing a training course, because there's so much more that it's worth getting familiar with.

---

<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:** [January 28, 2020, 3:24am UTC](https://discuss.elastic.co/t/cloud-elastic-co-customer-need-to-perform-rest-search-queries/213402/3 "2020-01-28T03:24:09Z")

</div>

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