# Multiple Aggregation API

**URL:** <https://discuss.elastic.co/t/multiple-aggregation-api/134495>\
**Category:** Elasticsearch\
**Created:** [June 4, 2018, 10:08pm UTC](https://discuss.elastic.co/t/multiple-aggregation-api/134495 "2018-06-04T22:08:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Varun\_Somani](https://avatars.discourse-cdn.com/v4/letter/v/ecccb3/32.png) [@Varun\_Somani](https://discuss.elastic.co/u/Varun_Somani)\
**Post date:** [June 4, 2018, 10:08pm UTC](https://discuss.elastic.co/t/multiple-aggregation-api/134495/1 "2018-06-04T22:08:39Z")

</div>

I am trying to do multiple aggregations, for the same set of documents I want to get percentile for different fields. I can do multiple query programmatically but thought of asking if there is easier way.

---

<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 2, 2018, 10:08pm UTC](https://discuss.elastic.co/t/multiple-aggregation-api/134495/2 "2018-07-02T22:08:41Z")

</div>

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