Ticket Count | Community
Skip to main content

Ticket Count

  • March 11, 2024
  • 5 replies
  • 0 views

Tyler21

I ran the Zendesk API to get an overall count of tickets.  I am getting a low number.  Is there a way I can get an overall ticket count? 

5 replies

  • March 12, 2024

Hello @tyler21

I would appreciate it if you could share the API you used for that purpose.

I can see that api/v2/tickets/count does not include archived tickets (tickets in closed state for more than 120 days), this could explain why your result is lower than anticipated. 





  • March 12, 2024

Tyler21
  • Author
  • March 12, 2024

I apologize for lack of information regarding the API.  I am referring to the Ticket API 

  • GET /api/v2/tickets/count
  • GET /api/v2/tickets

Would there be a way to get the count of the archive tickets? 


  • March 12, 2024
Hi Tyler, 
 
All ticket API endpoints except Count Tickets, Listing Tickets, Listing Ticket Metrics, Ticket Skips, and Listing Ticket Audits return archived tickets.
 
More information can be found here: About ticket archiving

Tyler21
  • Author
  • March 12, 2024

Thank you.  I can now proceed with my current project.