# Aggregartion by Elastic Uri

**URL:** <https://discuss.elastic.co/t/aggregartion-by-elastic-uri/191538>\
**Category:** Elasticsearch\
**Created:** [July 21, 2019, 8:34pm UTC](https://discuss.elastic.co/t/aggregartion-by-elastic-uri/191538 "2019-07-21T20:34:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![software\_developer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/software_developer/32/45428_2.png) [@software\_developer](https://discuss.elastic.co/u/software_developer)\
**Post date:** [July 21, 2019, 8:34pm UTC](https://discuss.elastic.co/t/aggregartion-by-elastic-uri/191538/1 "2019-07-21T20:34:38Z")

</div>

I am using Elastic uri to search documents but i want its aggregations by using url based on url structure Is this possible?

My Url is:

[http://localhost:9200/my\_index/type/\_search?q=f\_name=human](http://localhost:9200/my_index/type/_search?q=f_name=human)

i want to just get aggs by using this uri

Searched and tested lot of other solutions but finally i posted if someone can help out.

I have already tried with json formats but i want to get resolved by uri if possible.

---

<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:** [July 21, 2019, 8:46pm UTC](https://discuss.elastic.co/t/aggregartion-by-elastic-uri/191538/2 "2019-07-21T20:46:26Z")

</div>

It's not possible. You need provide the query dsl or use the sql endpoint

---

<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:** [August 18, 2019, 8:46pm UTC](https://discuss.elastic.co/t/aggregartion-by-elastic-uri/191538/3 "2019-08-18T20:46:30Z")

</div>

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