Hi ricardo-rojas, I use both of these api requests frequently without fail. One thing I will mention, if the device has never been online regardless of its configuration, the value for the key 'lanIp' will be None and give you the KeyError. I believe the same to be true if a device as been down for an extended period of time as well, though I'm not 100% positive about that. Typically, when I'm trying to get that specific value from the key ['lanIp'] it is an indicator for me that the device is either down or has yet to be provisioned and I create an exception KeyError handler for that situation. This is not the case for the ['serial'] or ['mac'] keys, they will report those values regardless to up/down(online/offline) status. Add a "try:" and "except KeyError:" and have the exception print the whole devices dictionary just to see if that key is giving you a value of None. That's my best guess as to what may be happening with the information you provided. -mforman
... View more