POST /2/users/:source_user_id/following

Allows a user ID to follow another user.

If the target user does not have public Tweets, this endpoint will send a follow request.

The request succeeds with no action when the source user sends a request to a user they're already following, or if they're sending a follower request to a user that does not have public Tweets.

Endpoint URL

Authentication and rate limits

Authentication methods
supported by this endpoint

OAuth 1.0a User context

Rate limit

50 requests per 15-minute window (user auth)

Learn more about rate limits.

Path parameters

stringThe user ID who you would like to initiate the follow on behalf of. It must match the username of the authenticating user.

JSON body parameters

stringThe user ID of the user that you would like the source_user_id to follow.

Example requests

  • cURL
  • twurl
      curl -X POST -H "Authorization: OAuth $OAUTH_SIGNATURE" -H "Content-type: application/json" -d '{"target_user_id": "2244994945"}'
      twurl -X POST /2/users/6253282/following  -A "Content-type: application/json" -d '{"target_user_id": "2244994945"}'

Example responses

  • Successful response (public user)
  • Successful response (protected user)
  "data": {
      "following": true,
      "pending_follow": false
  "data": {
      "following": false,
      "pending_follow": true

Response fields

followingbooleanIndicates whether the source user is following the specified user as a result of this request. This value is false if the target user does not have public Tweets, as they will have to approve the follower request.
pending_followbooleanIndicates whether the target user will need to approve the follow request. Note that the source user will follow the target user only when they approve the incoming follower request.
Was this document helpful?
Thank you

Thank you for the feedback. We’re really glad we could help!

Thank you for the feedback. How could we improve this document?
Thank you for the feedback. Your comments will help us improve our documents in the future.