# Python API - downlink\_callback

**URL:** <https://www.thethingsnetwork.org/forum/t/python-api-downlink-callback/40573>\
**Category:** Application Development\
**Created:** [October 14, 2020, 2:36pm UTC](https://www.thethingsnetwork.org/forum/t/python-api-downlink-callback/40573 "2020-10-14T14:36:55Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![goodrun](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/goodrun/32/25844_2.png) [@goodrun](https://www.thethingsnetwork.org/forum/u/goodrun)\
**Post date:** [October 15, 2020, 8:31am UTC](https://www.thethingsnetwork.org/forum/t/python-api-downlink-callback/40573/6 "2020-10-15T08:31:52Z")

</div>

> [@kersing](#):
>
> How about the mqtt api?

Yes, I tried it with this API, but still do not receive data about the downlink.  
As already mentioned, I used the code from [A Python program to listen to your devices with MQTT](https://www.thethingsnetwork.org/forum/t/a-python-program-to-listen-to-your-devices-with-mqtt/9036/6)  
Instead of looking for uplinks, I look for downlinks.

```
mqttc.subscribe('+/devices/+/down')

```

> [@kersing](#):
>
> Please don’t send confirmed data and if you need to keep within the allowed 10 ACKs per day for a device

I am aware of this. I usually send uncnf, it was just a test to check if I am receiving anything execpt uplinks.

I am running a python script locally on a RPi and want to store uplink and downlink data to a csv. But I only get uplink data.

---

_[View the full topic](https://www.thethingsnetwork.org/forum/t/python-api-downlink-callback/40573)._
