# Analytics Queries and pagination

**URL:** https://discuss.elastic.co/t/analytics-queries-and-pagination/242329
**Category:** Elastic Search
**Created:** [July 23, 2020, 11:05am UTC](https://discuss.elastic.co/t/analytics-queries-and-pagination/242329 "2020-07-23T11:05:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sam\_S](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sam_s/32/46221_2.png) [@Sam\_S](https://discuss.elastic.co/u/Sam_S)
#### Post date: [July 23, 2020, 11:05am UTC](https://discuss.elastic.co/t/analytics-queries-and-pagination/242329/1 "2020-07-23T11:05:05Z")

</div>

Although pagination is somewhat mentioned in the docs here  
[https://www.elastic.co/guide/en/app-search/current/queries.html#queries-more-queries](https://www.elastic.co/guide/en/app-search/current/queries.html#queries-more-queries), it seems like pagination doesn't work like it does in the documents results.

Can we expect to get the total pages and will we be able to request the next pages using the current field?

---

<div class="post-metadata">

### Author: ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)
#### Post date: [July 23, 2020, 12:25pm UTC](https://discuss.elastic.co/t/analytics-queries-and-pagination/242329/2 "2020-07-23T12:25:33Z")

</div>

Hey @Sam_S,

Sorry about that, our paging API is used a bit differently here, which is understandably a bit confusing.

You cannot page in the Analytics API, only adjust the requested "size" of the result set. A value of up to 1,000 can be provided. The "size" value that is returned on the response then represents the total number of results.

```auto
POST /api/as/v1/engines/{{engine_name}}/analytics/clicks
{
    "page": {
        "size": 1000
    }
}
{
    "meta": {
        "page": {
            "size": 21,
            "current": 1
        }
    },
    "results": [
        ...
    ]
}

```

---

<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: [November 4, 2022, 8:07am UTC](https://discuss.elastic.co/t/analytics-queries-and-pagination/242329/3 "2022-11-04T08:07:24Z")

</div>


