I’m using the Twitter API to block followers that meet a specific criteria. There are some users following me who’s account is suspended (e.g., @odettegodeau3) but they’re still included in the output of a GET request to followers/list. If my app tries to block these users, it fails because they’re suspended.

  • Why are suspended users included in the output to followers/list?
  • How can I exclude suspended users from followers/list?
  • Is there any way to detect if a user is suspended in the output of followers/list? There doesn’t appear to be a suspended attribute.

Yeah that’s a weird one - also another known issue is not being able to unretweet tweets from suspended users.

For detecting, would it work if you used users/lookup in batches or users/show for individuals? if the user is suspended or private the account will not be returned in the request at all. Unfortunately this is hacky and awkward way of doing this, otherwise the solution might be to just rely on the error response from twitter and handle that on your end (it should be {"code":63,"message":"User has been suspended."}).

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.