# Composite aggregation

**URL:** https://discuss.elastic.co/t/composite-aggregation/134036
**Category:** Elasticsearch
**Created:** [May 31, 2018, 11:34am UTC](https://discuss.elastic.co/t/composite-aggregation/134036 "2018-05-31T11:34:27Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![pjanzen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pjanzen/32/13756_2.png) [@pjanzen](https://discuss.elastic.co/u/pjanzen)
#### Post date: [May 31, 2018, 11:34am UTC](https://discuss.elastic.co/t/composite-aggregation/134036/1 "2018-05-31T11:34:27Z")

</div>

Hi All,

I am write some code in python to execute a composite aggregation, this in it self work. However I am having trouble pulling the data from ES. Because it is a aggregation I cannot use scroll to get the data, I need pagination but I have no idea how this work nor can I find any example.

Is there someone that can give me some pointer (any programming language will do) on how to do this?

Thanks,  
Paul.

---

<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: [June 28, 2018, 11:34am UTC](https://discuss.elastic.co/t/composite-aggregation/134036/2 "2018-06-28T11:34:29Z")

</div>

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