Skip to content

TikTok.Like

Someone sends likes.

  • Platform: tiktok
  • Shape: like
  • Source event: TikTok.Like
Widget.on("TikTok.Like", (event) => {
// event.user, event.platform…
});
  • user (string): Display name; «Anonymous» for anonymous gifts.
  • userId (string): User id on its platform.
  • userLogin (string): Login, lowercase.
  • amount (number): Likes in this batch; they arrive in bursts.
  • total (number): Likes of the stream so far, or 0.

It also carries platform (the source platform) and raw (the original payload).

The example payload that reaches the Studio simulator:

{
"likeCount": 15,
"totalLikeCount": 1500,
"userId": "7012345678901234567",
"uniqueId": "neonfox",
"nickname": "NeonFox",
"profilePictureUrl": "",
"followRole": 2,
"userBadges": [],
"userDetails": {
"createTime": "0",
"bioDescription": "",
"profilePictureUrls": []
},
"followInfo": {
"followingCount": 120,
"followerCount": 45,
"followStatus": 2,
"pushStatus": 0
},
"isModerator": false,
"isNewGifter": false,
"isSubscriber": false,
"topGifterRank": 0,
"msgId": "7298765432109876545",
"createTime": "1792031541410"
}