Obtain device key in sonoff LAN mode

Hello, I am aware that this is not an incident, but I need help and I think this is the best place to ask for it :slight_smile:

I have a few DualR3 and miniR4, I am currently connecting the DualR3 only by LAN to control them from a Raspberry Pi, but they do not have the DIY mode and I have to obtain the apikey manually by following these links:


So far, I have been able to program the following with python:

1./ I scan the entire network seeing the “itead” APs and connect to them by their SSID

2./ I do a GET to and I get something like this:


Which I assume is the coding for this:


the answer is… How can I decode the GET data?

Thank you very much in advance