API error - Invalid search: Requested response size was greater than Search Response Limits | Community
Skip to main content

API error - Invalid search: Requested response size was greater than Search Response Limits

  • September 24, 2021
  • 1 reply
  • 0 views

I am making a call using the search API and paging through the API call results.

https://myzendeskURL/api/v2/search.json?page=$pageNumber$&query=type%3Auser+created_at%3E2021-08-01

 

This works fine until I get to page 11 and I get the error in the title.

1 reply

Jeff46
  • October 7, 2021

Hello Mark,

This is expected and is documented in our developer docs for the Search API Results Limits whereas this endpoint returns up to 1000 results per query with a maximum of 100 results per page. If you request past the limit, a 422 response is expected. 

You many want to consider using the Incremental Export endpoint instead if you are looking to retrieve a huge set of data or by breaking the query into smaller pieces by limiting results to a specific date range.

Best,

Jeff C