ig.feed.accountFollowers does not yield correct followers list when requesting on another accounnt

Author: khalilachecheCreated Dec 4, 2020Updated Apr 16, 2026
Labelsbugunconfirmed

Bug Report

Form

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

Requirements

Platform

  • I'm using Node.js version 10.13.0
  • I'm using electron
  • I'm using the browser YOUR_BROWSER_AND_VERSION
  • I'm using some other environment YOUR_ENV

Description

YOUR DESCRIPTION HERE Hello, it seems that I'm having an issue while trying to get the full followers list of an account, from a different account. I used the items() function to retrieve the data in a while loop that checks if there's more availbale data. When I check the resulting followers list, I get the correct number of followers (length of the items array), however, when I inspect the list elements, I get different results from call to call (whilst being sure there are no updates on the real followers list on instagram), with duplicate usernames in the list. However, this issue doesn't appear when I user this same method to check the followers list of the same account. I tried setting the maxId manually, as I thought there might be an issue with pagination, but it doesn't seem to solve the problem. I don't know if this is a bug, or if I'm not using something the right way, so if you could help me, that would be awesome :) !

Code

Add a meaningful section of your code here. If you are using TypeScript replace js with typescript.

javascript
  const ig = new IgApiClient();
  ig.state.generateDevice(*username*);
  //ig.state.proxyUrl = process.env.IG_PROXY;
  const auth = await ig.account.login(*username*, *password*);
  const followersFeed = ig.feed.accountFollowers(*different account pk*);
  var items = []
  do{
    const a  = await followersFeed.items();
    items = items.concat(a)
  }while(followersFeed.isMoreAvailable())

Source: dilame/instagram-private-api