# Limit on the number of data retrieved for Dynatrace API

**URL:** <https://community.dynatrace.com/t/limit-on-the-number-of-data-retrieved-for-dynatrace-api/49348>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [December 13, 2024, 2:08am UTC](https://community.dynatrace.com/t/limit-on-the-number-of-data-retrieved-for-dynatrace-api/49348 "2024-12-13T02:08:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elizawang](https://avatars.discourse-cdn.com/v4/letter/e/439d5e/32.png) [@elizawang](https://community.dynatrace.com/u/elizawang)\
**Post date:** [December 13, 2024, 2:08am UTC](https://community.dynatrace.com/t/limit-on-the-number-of-data-retrieved-for-dynatrace-api/49348/1 "2024-12-13T02:08:46Z")

</div>

We want to use dynatrace api to retrieve problems and comments data from dynatrace. But if we add the recentComments field, the limit on the number of retrieved items is too small, allowing only 10 items to be fetched at once. Is there have any way can break this limitation? Our header is: params = { “fields”:“recentComments”, “from”: from\_time.isoformat(timespec=“milliseconds”), “to”: to\_time.isoformat(timespec=“milliseconds”), }

---

<div class="post-metadata">

**Author:** ![Gosia\_Murawska](https://avatars.discourse-cdn.com/v4/letter/g/2bfe46/32.png) [@Gosia\_Murawska](https://community.dynatrace.com/u/Gosia_Murawska)\
**Post date:** [January 2, 2025, 4:30pm UTC](https://community.dynatrace.com/t/limit-on-the-number-of-data-retrieved-for-dynatrace-api/49348/2 "2025-01-02T16:30:53Z")

</div>

Hi,&nbsp;[@elizawang](https://community.dynatrace.com/user/84407)! Have you managed to find the answer to your question? It would be great if you share it with the Community 🙂

---

<div class="post-metadata">

**Author:** ![RohitBisht](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rohitbisht/32/38577_2.png) [@RohitBisht](https://community.dynatrace.com/u/RohitBisht)\
**Post date:** [January 2, 2025, 9:35pm UTC](https://community.dynatrace.com/t/limit-on-the-number-of-data-retrieved-for-dynatrace-api/49348/3 "2025-01-02T21:35:23Z")

</div>

Hi&nbsp;[@elizawang](https://community.dynatrace.com/user/84407)&nbsp;,

I think what you are looking for is “pageSize”.

 ![RohitBisht_0-1735853664596.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/5f81c392ff7b539e90a008ffb8d39b47f33670c1.png)

If you want more data, you may have to iterate using the “nextPageKey” programmatically.  
Here is the link to doc:  
[Problems API v2 - GET problems list — Dynatrace Docs](https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/environment-api/problems-v2/problems/get-problems-list)
