Twitter unfollow

hello guys.
i am using n8n and exploring nodes for a while. it’s amazing.
now i am using twitter node for some actions.

can i unfollow people who don’t follow me or get list of persons who unfollow me with n8n ?
i have no idea how to do it… i need JS function ?


Information on your n8n setup

  • n8n version: latest
  • Database you’re using (default: SQLite): degault
  • Running n8n with the execution process [own(default), main]: default
  • Running n8n via [Docker, npm,, desktop app]: Docker

This would unfortunately not be possible using n8n’s Twitter node because it doesn’t have operations for fetching followers, people you follow or for unfollowing a user.

So in order to implement this in n8n you would need to:

  • Research the respective Twitter API endpoints
  • Fetch the list of follwers and people you are following using the HTTP Request node (for authentication information you can refer to this post)
  • Possibly convert the results into n8n items (the Item Lists node might come in handy here)
  • Compare the two lists (the Merge node’s Remove Key Matches operation could be a good help with this)
  • Lastly, perform the unfollow operation for each user you follow but who doesn’t follow you back
1 Like