# Total Number of tickets

**URL:** https://community.zammad.org/t/total-number-of-tickets/17395
**Category:** Development
**Created:** [April 8, 2025, 7:09am UTC](https://community.zammad.org/t/total-number-of-tickets/17395 "2025-04-08T07:09:06Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![swaroopchenchu](https://community.zammad.org/user_avatar/community.zammad.org/swaroopchenchu/32/10668_2.png) [@swaroopchenchu](https://community.zammad.org/u/swaroopchenchu)
#### Post date: [April 8, 2025, 7:09am UTC](https://community.zammad.org/t/total-number-of-tickets/17395/1 "2025-04-08T07:09:06Z")

</div>

Hi All,  
there was once a ticket → [Request over 100 tickets via /api/v1/tickets/](https://community.zammad.org/t/request-over-100-tickets-via-api-v1-tickets/1915) asking for the possibility to query the total amount of tickets in Zammad (mandatory for pagination).

I think this is closed [Show count of objects in API response headers · Issue #451 · zammad/zammad · GitHub](https://github.com/zammad/zammad/issues/451)  
Is there any plan to make this available within API?

Thanks a lot for your help,

---

<div class="post-metadata">

### Author: ![dvanzuijlekom](https://community.zammad.org/user_avatar/community.zammad.org/dvanzuijlekom/32/4510_2.png) [@dvanzuijlekom](https://community.zammad.org/u/dvanzuijlekom)
#### Post date: [April 8, 2025, 7:51am UTC](https://community.zammad.org/t/total-number-of-tickets/17395/2 "2025-04-08T07:51:37Z")

</div>

See [here](https://docs.zammad.org/en/latest/api/intro.html#endpoint-search) and specifically the `Only Total Count` Parameter.

---

<div class="post-metadata">

### Author: ![swaroopchenchu](https://community.zammad.org/user_avatar/community.zammad.org/swaroopchenchu/32/10668_2.png) [@swaroopchenchu](https://community.zammad.org/u/swaroopchenchu)
#### Post date: [April 8, 2025, 8:27am UTC](https://community.zammad.org/t/total-number-of-tickets/17395/3 "2025-04-08T08:27:14Z")

</div>

I have tried that queryParam, but it didn’t dished out “total\_count” as it documented

{{host}}/api/v1/tickets?only\_total\_count=true

It again dished out 100 objects in api response but no “total\_count” in response.

Am i missing anything, please help.

Thanks

---

<div class="post-metadata">

### Author: ![dvanzuijlekom](https://community.zammad.org/user_avatar/community.zammad.org/dvanzuijlekom/32/4510_2.png) [@dvanzuijlekom](https://community.zammad.org/u/dvanzuijlekom)
#### Post date: [April 8, 2025, 6:03pm UTC](https://community.zammad.org/t/total-number-of-tickets/17395/4 "2025-04-08T18:03:07Z")

</div>

Posting this request to the API gives me just the total number of open tickets:

```conf
api/v1/tickets/search?query=state.name:new&only_total_count=true

```

---

<div class="post-metadata">

### Author: ![system](https://community.zammad.org/uploads/default/original/1X/5c5afaea2d23f811dbec33cd4edb02fa29d3262f.png) [@system](https://community.zammad.org/u/system)
#### Post date: [April 3, 2026, 7:09am UTC](https://community.zammad.org/t/total-number-of-tickets/17395/5 "2026-04-03T07:09:53Z")

</div>

This topic was automatically closed after 360 days. New replies are no longer allowed.
