Unfollow
POST
/tw-v2/interaction/unfollowDescription
Unfollow a Twitter/X user account.
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
| authToken | string | required | Twitter authentication token (auth_token cookie value) |
| userId | string | required | The numeric user ID of the account to unfollow |
| proxy | string | optional | Optional proxy in format 'host:port@user:pass' |
Code Examples
const body = {
authToken: 'YOUR_AUTH_TOKEN',
userId: '44196397'
};
const response = await fetch('https://api.tweetapi.com/tw-v2/interaction/unfollow', {
method: 'POST',
headers: {
'X-API-Key': 'YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify(body)
});
const data = await response.json();
console.log(data);
Response
Success Response (200 OK)
200
{
"data": {
"id": "1968007982257405952",
"action": "unfollow",
"timestamp": "2025-10-05T06:53:54.233Z",
"success": true,
"metadata": {
"user_id": "1968007982257405952"
}
}
}API Playground
POST
/tw-v2/interaction/unfollowSensitive Credentials Required
Requires your Twitter authToken. Use a test account.
Press ⌘ + Enter to execute
curl -X POST "https://api.tweetapi.com/tw-v2/interaction/unfollow" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json"Response
Click "Try It!" to see the response