Skip to content

xhs_reply_comment ​

Reply to a comment.

Parameters ​

ParameterTypeRequiredDescription
noteIdstringYesNote ID
xsecTokenstringYesSecurity token
commentIdstringYesComment ID to reply to
contentstringYesReply content
accountstringNoAccount to use

Response ​

json
{
  "success": true,
  "commentId": "reply-id"
}

Example ​

xhs_reply_comment({
  noteId: "abc123",
  xsecToken: "token",
  commentId: "comment-456",
  content: "Thanks for your support!"
})

Getting Comment ID ​

Comment ID can be obtained from xhs_get_note response:

xhs_get_note({ noteId: "abc123", xsecToken: "token" })
// Response includes comments[].id

Released under the MIT License.