Skip to main content

HI Everyone, 

We are currently working on enhancing our incident management automation where we can fetch more than 10000 records into our email reports via Python.

Kindly suggest any option or any method for fetching more than 10000 records 

Thanks 
Kabilan

Hi ​@kabilanrajasekar_c,

The PagerDuty API does have a hard cap of 10,000 results per query, even when using pagination. This is a built-in API limitation and can’t be bypassed directly.

The best way to fetch more than 10,000 incidents is to split your queries into smaller chunks. You can do this by breaking up your time range (for example, querying one week or one day at a time), or by filtering on other fields like service or team. This way, each individual query stays under the 10,000-record limit, but you can still collect all the data you need by combining the results.

I suggest using the official PagerDuty Python API library to make this process easier. It handles authentication, pagination, and API requests for you, so you can focus on your logic for splitting up the queries.

Let me know if this works as a solution for your case, and have a nice day!


Reply