Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Follower Count Is Wrong #1785

Open
Bijig0 opened this issue Jun 10, 2024 · 0 comments
Open

Follower Count Is Wrong #1785

Bijig0 opened this issue Jun 10, 2024 · 0 comments
Labels
question unconfirmed This issue hasn't been read/confirmed/accepted by an admin

Comments

@Bijig0
Copy link

Bijig0 commented Jun 10, 2024

Put an [x] if you meet the condition, else leave [ ].

Question

A specific question, so it's understandable to anyone.
You may add pictures.

How can I get the follower count for the logged in individual?

I have tried the following code but it gives me an answer of 25, much lower than my actual follower count of 100

Code

(async () => {
  const ig = new IgApiClient();
  ig.state.generateDevice(USERNAME);
  ig.state.proxyUrl = process.env.IG_PROXY;
  const user = await ig.account.login(USERNAME, PASSWORD);
  const followersFeed = ig.feed.accountFollowers(user.pk);
  const followers = (await followersFeed.items()).length;

  console.log({ followers });
})();
@Bijig0 Bijig0 added question unconfirmed This issue hasn't been read/confirmed/accepted by an admin labels Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question unconfirmed This issue hasn't been read/confirmed/accepted by an admin
Projects
None yet
Development

No branches or pull requests

1 participant