Skip to main content
Question

Could'n get tickets using per_page


andrewcruzr
Apprentice

Hello! I need to use pagination to get all open tickets from freshdesk, but it’s not working as expected when i try to use “per_page”:

api/v2/search/tickets?query="status:2" works fine, but don’t retrieve all results

 

If i use the “page” parameter, it work fine too. api/v2/search/tickets?query="status:2"&page=2

 

But if i try to use “per_page” parameter it doesn’t work. 

api/v2/search/tickets?query="status:2"&per_page=2

 

Can someone help me figuring out what i’m missing? Thanks

 

 

Did this topic help you find an answer to your question?

3 replies

jim.stephen
Community Debut
Forum|alt.badge.img+5
  • Community Debut
  • 100 replies
  • March 5, 2023

Hi @andrewcruzr 

 

Greetings from Freshworks community! 

 

I understand that you are unable to use the Pagination query for the Filter Tickets API endpoint, kindly note that the Filter Tickets API will return 30 tickets per page by default and the per page query will not be supported in the Filter Tickets API endpoint. This is the reason the API endpoint you tried accessing did not return any value. 

 

I hope this clarifies your query. 


chris_sanu
Community Debut
  • Community Debut
  • 1 reply
  • May 7, 2024

Hello! @jim.stephen 

 

Do you have any recommendations to retrieve more than 300 tickets using the Filter Tickets API? I've used the page query, but it's limited to page 10. It would be great if the response could include the total number of pages and allow us to go beyond page 10. Thanks!


l1ll1
Community Debut
  • Community Debut
  • 1 reply
  • February 25, 2025

Wow this is fascinating. All the replies are repeating the same non-answer and including links to vape pages. ​@andrewcruzr letting you know you are not alone in searching for a way to get over 300 tickets but I haven’t found it yet either.


Reply