Twitter API v2 copy
  1. Users
Twitter API v2 copy
  • General
    • Returns the open api spec document.
      GET
  • Spaces
    • Space lookup up Space IDs
      GET
    • Space lookup by their creators
      GET
    • Search for Spaces
      GET
    • Space lookup by Space ID
      GET
  • Tweets
    • Tweet lookup by Tweet IDs
      GET
    • Full archive search counts
      GET
    • Recent search counts
      GET
    • Sample stream
      GET
    • Full-archive search
      GET
    • Recent search
      GET
    • Filtered stream
      GET
    • Rules lookup
      GET
    • Add/Delete rules
      POST
    • Tweet lookup by Tweet ID
      GET
    • Hide replies
      PUT
    • Returns Tweet objects liked by the provided User ID
      GET
    • Causes the user (in the path) to like the specified tweet
      POST
    • Causes the user (in the path) to unlike the specified tweet
      DELETE
    • User mention timeline by User ID
      GET
    • Causes the user (in the path) to retweet the specified tweet
      POST
    • Causes the user (in the path) to unretweet the specified tweet
      DELETE
    • User Tweets timeline by User ID
      GET
  • Users
    • Returns user objects that have liked the provided Tweet ID
      GET
    • Returns user objects that have retweeted the provided Tweet ID
      GET
    • User lookup by IDs
      GET
    • User lookup by usernames
      GET
    • User lookup by username
      GET
    • User lookup by ID
      GET
    • Returns user objects that are blocked by provided user ID
      GET
    • Block User by User ID
      POST
    • Returns user objects that follow the provided user ID
      GET
    • Following by User ID
      GET
    • Follow User
      POST
    • Mute User by User ID
      POST
    • Unblock User by User ID
      DELETE
    • Unfollow User
      DELETE
    • Unmute User by User ID
      DELETE
  • Schemas
    • Schemas
      • AddOrDeleteRulesRequest
      • AddOrDeleteRulesResponse
      • AddRulesRequest
      • AddRulesResponse
      • AnimatedGif
      • CashtagEntity
      • CashtagFields
      • ClientDisconnectedProblem
      • ClientForbiddenProblem
      • CommonMediaFields
      • ComplianceJob
      • ComplianceJobName
      • ComplianceJobStatus
      • ComplianceJobType
      • ConflictProblem
      • ConnectionExceptionProblem
      • ContextAnnotation
      • ContextAnnotationDomainFields
      • ContextAnnotationEntityFields
      • CountryCode
      • CreatedAt
      • DeleteRulesRequest
      • DeleteRulesResponse
      • DisallowedResourceProblem
      • DownloadExpiration
      • DownloadUrl
      • DuplicateRuleProblem
      • End
      • EntityIndicesInclusiveExclusive
      • EntityIndicesInclusiveInclusive
      • Error
      • Expansions
      • FieldUnauthorizedProblem
      • FilteredStreamingTweet
      • FullTextEntities
      • GenericMultipleUsersLookupResponse
      • GenericProblem
      • GenericTweetsTimelineResponse
      • Geo
      • Granularity
      • HTTPStatusCode
      • HashtagEntity
      • HashtagFields
      • InvalidRequestProblem
      • InvalidRuleProblem
      • JobId
      • Media
      • MediaHeight
      • MediaKey
      • MediaWidth
      • MentionEntity
      • MentionFields
      • MultiComplianceJobResponse
      • MultiSpaceLookupResponse
      • MultiTweetLookupResponse
      • MultiUserLookupResponse
      • OperationalDisconnectProblem
      • Photo
      • Place
      • PlaceId
      • PlaceType
      • Point
      • Poll
      • PollId
      • PollOption
      • Position
      • Problem
      • ProblemFields
      • ReplySettings
      • ResourceNotFoundProblem
      • ResourceUnauthorizedProblem
      • ResourceUnavailableProblem
      • Rule
      • RuleId
      • RuleNoId
      • RuleTag
      • RuleValue
      • RulesCapProblem
      • RulesRequestSummary
      • RulesResponseMetadata
      • SearchCount
      • SingleComplianceJobResponse
      • SingleSpaceLookupResponse
      • SingleTweetLookupResponse
      • SingleUserLookupResponse
      • Space
      • SpaceID
      • Start
      • StreamingTweet
      • Tweet
      • TweetCount
      • TweetCountsResponse
      • TweetDeleteResponse
      • TweetID
      • TweetSearchResponse
      • TweetWithheld
      • URL
      • URLFields
      • URLImage
      • UnsupportedAuthenticationProblem
      • UploadExpiration
      • UploadUrl
      • UrlEntity
      • UsageCapExceededProblem
      • User
      • UserID
      • UserName
      • UserWithheld
      • UsersBlockingMutationResponse
      • UsersFollowingCreateResponse
      • UsersFollowingDeleteResponse
      • UsersFollowingLookupResponse
      • UsersLikesCreateRequest
      • UsersLikesCreateResponse
      • UsersLikesDeleteResponse
      • UsersMutingMutationResponse
      • UsersRetweetsCreateRequest
      • UsersRetweetsCreateResponse
      • UsersRetweetsDeleteResponse
      • Video
    • Response
      • HttpErrorResponse
  1. Users

Unfollow User

DELETE
/2/users/{source_user_id}/following/{target_user_id}
Causes the source user to unfollow the target user. The source user must match the user context authorizing the request

Request

Path Params

Responses

🟢200The request was successful
application/json
Body

🔴500500
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request DELETE '/2/users//following/'
Response Response Example
200 - Example 1
{
    "data": {
        "following": true
    },
    "errors": [
        {
            "detail": "string",
            "title": "string",
            "status": 0,
            "type": "about:blank"
        }
    ]
}
Modified at 2025-07-31 05:59:41
Previous
Unblock User by User ID
Next
Unmute User by User ID
Built with