Getting only list of tickets that were closed by yesterday | Community
Skip to main content

Getting only list of tickets that were closed by yesterday

  • September 20, 2021
  • 1 reply
  • 0 views

Dear Expert,

I would like to get all the closed tickets by yesterday via API. How I can achieve on that ?

Many thanks,

1 reply

Tipene
  • September 21, 2021

Hey @Hüseyin Aksu,

Thanks for reaching out!

It sounds like the Search API would be able to help you in this case. Here’s an example using the Search API to retrieve tickets that were updated with a status of closed yesterday (20 September 2021):

https://{subdomain}.zendesk.com/api/v2/search.json?query=updated:2021-09-20 status:closed

I’ve included a couple of links below which will give you a more in-depth explanation of how the Search API works and what it can be used for.

https://developer.zendesk.com/api-reference/ticketing/ticket-management/search/

https://support.zendesk.com/hc/en-us/articles/203663226

I hope this helps! Feel free to reach out if you have any questions.

Tipene