var Client = require('instagram-private-api').V1;
var device = new Client.Device('myuser');
var storage = new Client.CookieFileStorage(__dirname + '/cookies/myuser.json');
var user = 'login'
var pass = 'passwod';
Client.Session.create(device, storage, user, pass).then(session => {});
var session = new Client.Session(device, storage);
Client.Account.searchForUser(session, 'instagram')
.then(data => {
console.log(data._params);
});