getFollowers()

get a list of ids of followers who follow a given screen_name

The method takes the user's screen name or a user-id

Usage

bot.getFollowers('someone').then(r => console.log(r));

To limit how much ids it will return add the option limit the default is 10

This also supports ids

bot.getFollowers('321425244').then(r => console.log(r));

Result

This will console.log something similar to this

{
  ids: [
    1305122789318258700,
    1272481475146010600,
    1299802869978206200,
    14540793,
    1523381677,
    1308385097528283100,
    1001240911,
    4296999745,
    276853177,
    17375650
  ],
  next_cursor: 1688941735375221800,
  next_cursor_str: '1688941735375221860',
  previous_cursor: 0,
  previous_cursor_str: '0',
  total_count: null
}

Last updated