var request = require('request');var options = { 'method': 'GET', 'url': 'https://account.xiaomi.com/pass/serviceLogin?sid=xiaomiio&_json=true', 'headers': { 'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': 'Android-7.1.1-1.0.0-ONEPLUS A3010-136-9D28921C354D7 APP/xiaomi.smarthome APPV/62830', 'Cookie': 'sdkVersion=accountsdk-18.8.15; userId=abc@abc.de; deviceId=taivtx; pass_trace=GBZqboswliVT5OUf+T0IZilucW1hziEHBi3SbwmdMo6+q8nCtEbuhheXzmCuFImSx5FVVJNiAMgAbQ2qtM4BMA==; pass_ua=web; uLocale=de_DE; JSESSIONID=aaakeq0WViSAReR74QMux' }};request(options, function (error, response) { if (error) throw new Error(error); console.log(response.body);});