Unfollow a user
curl --request DELETE \
--url https://api.twitterxapi.com/twitter/user/follow \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"username": "<string>",
"cookie": "<string>"
}'
{
"code": 123,
"msg": "<string>",
"data": {
"id": "1717001045992251392",
"name": "Cryptoklepto",
"screen_name": "CK_Cryptoklepto",
"created_at": "Mon Oct 28 02:32:47 +0000 2024",
"created_at_datetime": "2024-10-28T02:32:47.000Z",
"can_dm": true,
"can_media_tag": true,
"default_profile": true,
"default_profile_image": true,
"description": "<string>",
"description_urls": [],
"fast_followers_count": 123,
"favourites_count": 123,
"followers_count": 123,
"following_count": 123,
"has_custom_timelines": true,
"is_blue_verified": true,
"is_translator": true,
"listed_count": 123,
"location": "New York, USA",
"media_count": 123,
"normal_followers_count": 123,
"pinned_tweet_ids": [],
"possibly_sensitive": true,
"profile_banner_url": "<string>",
"profile_image_url": "<string>",
"protected": true
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
A confirmation of the action's success.
The response is of type object
.
curl --request DELETE \
--url https://api.twitterxapi.com/twitter/user/follow \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"username": "<string>",
"cookie": "<string>"
}'
{
"code": 123,
"msg": "<string>",
"data": {
"id": "1717001045992251392",
"name": "Cryptoklepto",
"screen_name": "CK_Cryptoklepto",
"created_at": "Mon Oct 28 02:32:47 +0000 2024",
"created_at_datetime": "2024-10-28T02:32:47.000Z",
"can_dm": true,
"can_media_tag": true,
"default_profile": true,
"default_profile_image": true,
"description": "<string>",
"description_urls": [],
"fast_followers_count": 123,
"favourites_count": 123,
"followers_count": 123,
"following_count": 123,
"has_custom_timelines": true,
"is_blue_verified": true,
"is_translator": true,
"listed_count": 123,
"location": "New York, USA",
"media_count": 123,
"normal_followers_count": 123,
"pinned_tweet_ids": [],
"possibly_sensitive": true,
"profile_banner_url": "<string>",
"profile_image_url": "<string>",
"protected": true
}
}
Unfollow a user
curl --request DELETE \
--url https://api.twitterxapi.com/twitter/user/follow \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"username": "<string>",
"cookie": "<string>"
}'
{
"code": 123,
"msg": "<string>",
"data": {
"id": "1717001045992251392",
"name": "Cryptoklepto",
"screen_name": "CK_Cryptoklepto",
"created_at": "Mon Oct 28 02:32:47 +0000 2024",
"created_at_datetime": "2024-10-28T02:32:47.000Z",
"can_dm": true,
"can_media_tag": true,
"default_profile": true,
"default_profile_image": true,
"description": "<string>",
"description_urls": [],
"fast_followers_count": 123,
"favourites_count": 123,
"followers_count": 123,
"following_count": 123,
"has_custom_timelines": true,
"is_blue_verified": true,
"is_translator": true,
"listed_count": 123,
"location": "New York, USA",
"media_count": 123,
"normal_followers_count": 123,
"pinned_tweet_ids": [],
"possibly_sensitive": true,
"profile_banner_url": "<string>",
"profile_image_url": "<string>",
"protected": true
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
A confirmation of the action's success.
The response is of type object
.
curl --request DELETE \
--url https://api.twitterxapi.com/twitter/user/follow \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"username": "<string>",
"cookie": "<string>"
}'
{
"code": 123,
"msg": "<string>",
"data": {
"id": "1717001045992251392",
"name": "Cryptoklepto",
"screen_name": "CK_Cryptoklepto",
"created_at": "Mon Oct 28 02:32:47 +0000 2024",
"created_at_datetime": "2024-10-28T02:32:47.000Z",
"can_dm": true,
"can_media_tag": true,
"default_profile": true,
"default_profile_image": true,
"description": "<string>",
"description_urls": [],
"fast_followers_count": 123,
"favourites_count": 123,
"followers_count": 123,
"following_count": 123,
"has_custom_timelines": true,
"is_blue_verified": true,
"is_translator": true,
"listed_count": 123,
"location": "New York, USA",
"media_count": 123,
"normal_followers_count": 123,
"pinned_tweet_ids": [],
"possibly_sensitive": true,
"profile_banner_url": "<string>",
"profile_image_url": "<string>",
"protected": true
}
}