# Storage integration-Python API

**URL:** <https://www.thethingsnetwork.org/forum/t/storage-integration-python-api/55098>\
**Category:** Uncategorized\
**Tags:** guide\
**Created:** [February 9, 2022, 6:45pm UTC](https://www.thethingsnetwork.org/forum/t/storage-integration-python-api/55098 "2022-02-09T18:45:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SyedMJ](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/syedmj/32/35697_2.png) [@SyedMJ](https://www.thethingsnetwork.org/forum/u/SyedMJ)\
**Post date:** [February 9, 2022, 6:45pm UTC](https://www.thethingsnetwork.org/forum/t/storage-integration-python-api/55098/1 "2022-02-09T18:45:08Z")

</div>

How can we convert the below curl command in python?

````auto
curl -G "https://thethings.example.com/api/v3/as/applications/<application-id>/packages/storage/uplink_message" \
    -H "Authorization: Bearer $API_KEY" \
    -H "Accept: text/event-stream" \
    -d "limit=10" \
    -d "after=2020-08-20T00:00:00Z" \
    -d "field_mask=up.uplink_message.decoded_payload"```
````

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [February 9, 2022, 7:07pm UTC](https://www.thethingsnetwork.org/forum/t/storage-integration-python-api/55098/2 "2022-02-09T19:07:53Z")

</div>

First instance search the forum!

As a kindness, it will come up with:

> <https://github.com/descartes/TheThingsStack-Integration-Starters/blob/main/DataStorage-to-Tab-Python3/TTS.DataStorage.Tab.py>
