Get only the tickets count without all tickets details | Community
Skip to main content

Get only the tickets count without all tickets details

  • July 2, 2018
  • 3 replies
  • 0 views

Hi team,

Just I want to call an API to get only the tickets count without returning all data and details about each ticket. 
I can get the count of the tickets (via for example: search.json?query=type:ticket status:open) but this will return the count and all details about each ticket.

Thanks, 
Mostafa

This topic has been closed for replies.

3 replies

  • July 2, 2018

Hello Mostafa. Current behavior is that /api/v2/search.json results are paged with 100 results returned per page. The overall count, however, is returned with that first page and can be used without paging through all the results.

Still, my understanding is that you only want the count and nothing else -- the current behavior doesn't allow for that. This request for smarter query results and reduced data sets has been brought up before and could be a possibility for an API version down the road -- no information on when or even if this will happen though.

In the meantime, depending on what you're doing, the incremental APIs may be another way to pull in and analyze smaller changes as they happen and track those yourself.


  • July 2, 2018

PS -- I'm moving this to the Question & Answer section of the Zendesk Support community. In the future, please check out the developer focused community at develop.zendesk.com -- the developer focused topics were moved there recently and are the best place to post developer oriented questions. Thanks!


  • Author
  • July 2, 2018

Hi Bryan,

Thanks for your reply. Hope to be developed and added as endpoint soon.

Best regards,
Mostafa