DELETE /2/users/:source_user_id/following/:target_user_id

Allows a user ID to unfollow another user.

The request succeeds with no action when the source user sends a request to a user they're not following or have already unfollowed.



Endpoint URL

https://api.twitter.com/2/users/:source_user_id/following/:target_user_id

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

NameTypeDescription
source_user_id
 Required 
stringThe user ID who you would like to initiate the unfollow on behalf of. It must match the username of the authenticating user.
target_user_id
 Required 
stringThe user ID of the user that you would like the source_user_id to unfollow.


Example requests

  • cURL
  • twurl
      curl -X DELETE https://api.twitter.com/2/users/2244994945/following/6253282 -H "Authorization: OAuth $OAUTH_SIGNATURE"
    
      twurl -X DELETE /2/users/2244994945/following/6253282

    

Example responses

  • Successful response
      {
  "data": {
      "following": false
  }
}
    

Response fields

NameTypeDescription
followingbooleanIndicates whether the source user is following the specified user as a result of this request. This value is false for a successful the unfollow 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.