jlobos / instagram-web-api

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

Just getting an empty data array. #241

Open Marcus2810 opened 3 years ago

Marcus2810 commented 3 years ago

const Instagram = require('instagram-web-api') const { username, password } = process.env

const client = new Instagram({ username, password })

const findUser = async () => {

const followers = await client.getFollowers({userId: '460563723',first:20})

console.log(followers);

}

findUser()

Hi there just was testing this before I use it on my account for tensorflow stuff but was wondering why I'm getting empty data.

MonsieurBibo commented 3 years ago

There are multiple reasons why you're getting empty data array. I can't really help you for the moment but be sure you're working with the good credentials (uppercase?), you're actually being authenticated (no 403?) etc...

Eniamza commented 3 years ago

Same for me, was working a week ago, now It's an empty data array