# TTN v2 Data Storage

**URL:** <https://www.thethingsnetwork.org/forum/t/ttn-v2-data-storage/52092>\
**Category:** v2 Backend\
**Created:** [October 4, 2021, 9:22am UTC](https://www.thethingsnetwork.org/forum/t/ttn-v2-data-storage/52092 "2021-10-04T09:22:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CyngorGwynedd](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cyngorgwynedd/32/44666_2.png) [@CyngorGwynedd](https://www.thethingsnetwork.org/forum/u/CyngorGwynedd)\
**Post date:** [October 4, 2021, 9:22am UTC](https://www.thethingsnetwork.org/forum/t/ttn-v2-data-storage/52092/1 "2021-10-04T09:22:10Z")

</div>

Helo.

I need to retrieve data from the Data Storage in v2. When I try and access the integration info on https://.[data.thethingsnetwork.org/](http://data.thethingsnetwork.org/) it redirects me to the migrating to the TTS page. Any tips?

Thanks,

---

<div class="post-metadata">

**Author:** ![CyngorGwynedd](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cyngorgwynedd/32/44666_2.png) [@CyngorGwynedd](https://www.thethingsnetwork.org/forum/u/CyngorGwynedd)\
**Post date:** [October 4, 2021, 10:15am UTC](https://www.thethingsnetwork.org/forum/t/ttn-v2-data-storage/52092/2 "2021-10-04T10:15:50Z")

</div>

I’ve managed to find the curl commands to retrieve data, but can anyone explain as to why only data from 2 days is being retrieved? I thought the data storage was for 7 days?

The command is .data.thethingsnetwork.org/api/v2/query?last=7d

Thanks,
