# How to fetch Problems data for last month?

**URL:** <https://community.dynatrace.com/t/how-to-fetch-problems-data-for-last-month/46514>\
**Category:** Dynatrace API\
**Tags:** problems-classic, dynatrace-api\
**Created:** [July 9, 2024, 7:47am UTC](https://community.dynatrace.com/t/how-to-fetch-problems-data-for-last-month/46514 "2024-07-09T07:47:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![akashsaini](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@akashsaini](https://community.dynatrace.com/u/akashsaini)\
**Post date:** [July 9, 2024, 7:47am UTC](https://community.dynatrace.com/t/how-to-fetch-problems-data-for-last-month/46514/1 "2024-07-09T07:47:21Z")

</div>

Hi Team,

We required data for last 1 month for problem triggered in Dynatrace.

How to process this

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Abidyaseen](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/abidyaseen/32/19726_2.png) [@Abidyaseen](https://community.dynatrace.com/u/Abidyaseen)\
**Post date:** [July 9, 2024, 10:35am UTC](https://community.dynatrace.com/t/how-to-fetch-problems-data-for-last-month/46514/2 "2024-07-09T10:35:56Z")

</div>

You can perform this using the Environment API V2. Follow these steps:

1. Click on your account section.
2. Go to the Environment API V2.
3. Select “problems” and use the “read problems” token.
4. Specify the time frame and set the page size to 500.
5. If there are more than 500 problems, copy the next page key from the response and execute the request again to retrieve the additional problems.  
 ![2.jpg](https://global.discourse-cdn.com/dynatrace/original/3X/2/7/27e6c30dd32eea30b40bcd774500d0c910f6ee8a.jpeg)  
 ![1.jpg](https://global.discourse-cdn.com/dynatrace/original/3X/7/d/7db721161a9ce3e4b2f8447a939afb5bfdd789f6.jpeg)

---

<div class="post-metadata">

**Author:** ![Eric\_Yu](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/eric_yu/32/20360_2.png) [@Eric\_Yu](https://community.dynatrace.com/u/Eric_Yu)\
**Post date:** [July 9, 2024, 3:09pm UTC](https://community.dynatrace.com/t/how-to-fetch-problems-data-for-last-month/46514/3 "2024-07-09T15:09:11Z")

</div>

Adding to this, if you need to see trace and session data, you have to take data retention periods into consideration:

> **[Data retention periods](https://docs.dynatrace.com/docs/manage/data-privacy-and-security/data-privacy/data-retention-periods)**
>
> Check retention times for various data types.
