capabilities.work

Unfollow a User by Their Username

A 2-step recipe with X (Twitter). We can help you get access.

Recipe · 2 steps

Unfollow a User by Their Username

Resolve a username and unfollow that user as the authenticated account.

  1. Resolve the target username into a numeric user id.
  2. Unfollow the resolved target user as the authenticated user.
What you'll need to have ready
  • authUserId: The numeric id of the authenticated user who will unfollow.
  • targetUsername: The @username of the account to unfollow, without the leading @.
  • authorization: OAuth2 user token to authorize the requests (e.g. "Bearer xxx").
For your developer

Arazzo workflow twitter:unfollow-user-by-username, 2 operations: getUsersByUsername → unfollowUser. Specs on APIs.io.