twitter engagement
Unfollow a user
Unfollow a user on X/Twitter.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
accountIdstring
targetUserIdstring
The Twitter ID of the user to unfollow
Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.twitterengagement.unfollowUser({ query: { accountId: 'account_abc123', targetUserId: 'targetuser_abc123', },});console.log(data);{
"status": "success",
"targetUserId": "string",
"following": false,
"platform": "twitter"
}Empty
{
"error": "Unauthorized"
}Empty