jlobos / instagram-web-api

🤳 Instagram Private Web API client for Node
https://npmjs.com/instagram-web-api
MIT License
1.12k stars 185 forks source link

How to retrieve other profiles information? #283

Open rsa408 opened 2 years ago

rsa408 commented 2 years ago

Hi @jlobos this is not an issue report is just a request for a feature: How is it possible to pass Username e.g. to the getProfile() method or some other methods, to retrieve the information we request other than what we logged in? I used my own account to log in but I was looking for information on specific accounts/accounts.

for (User in  UsersList) {
UserProfile = await client.getProfile(User)
Wrriteit( User+'.json', UserProfile)
}

Thanks for your great tool.

maxrdz commented 2 years ago

There already is a method in the API that does this,

;(async => {
    let profile = await client.getUserByUsername({username: “user”});
})();

You can check out the full documentation here.