Follow a User by Their Username
A 2-step recipe with X (Twitter). We can help you get access.
Recipe · 2 steps
Follow a User by Their Username
with X (Twitter)
Resolve a username and follow that user as the authenticated account.
- Resolve the target username into a numeric user id.
- Follow 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 follow.
- targetUsername: The @username of the account to follow, without the leading @.
- authorization: OAuth2 user token to authorize the requests (e.g. "Bearer xxx").
For your developer
Arazzo workflow twitter:follow-user-by-username, 2 operations: getUsersByUsername → followUser. Specs on APIs.io.