---
title: "Xiaohongshu (RedNote) Note Comments API (V2)"
description: "Retrieves comments for a Xiaohongshu (RedNote) note with cursor pagination and normal, latest, or like-count sorting. Use it to support feedback review, discussion analysis, and comment moderation workflows."
aiUsagePrompt: true
---

# Xiaohongshu \(RedNote\) Note Comments API \(V2\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/xiaohongshu/get-note-comment/v2\"")'
  :summary='JSON.parse("\"Note Comments (V2)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/xiaohongshu-rednote/note-comments-v2-en.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"Access token for this API service.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"noteId\",\"in\":\"query\",\"description\":\"A Xiaohongshu note ID or an explore URL containing /explore/.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"lastCursor\",\"in\":\"query\",\"description\":\"Pagination cursor from the previous page (use the cursor value returned by the last response).\",\"required\":false,\"schema\":{\"type\":\"string\"}},{\"name\":\"sort\",\"in\":\"query\",\"description\":\"Sort strategy for the result set.\\n\\nAvailable Values:\\n- `normal`: Normal\\n- `latest`: Latest\\n- `like_count`: Like Count\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"latest\",\"description\":\"Xiaohongshu Comment Sort V3\",\"enum\":[\"normal\",\"latest\",\"like_count\"]}}]")'
  :requestBody='JSON.parse("null")'
  :responses='JSON.parse("{\"200\":{\"description\":\"OK\",\"content\":{\"application/json\":{\"schema\":{\"if\":{\"properties\":{\"code\":{\"const\":0}},\"required\":[\"code\"]},\"then\":{\"properties\":{\"data\":{\"description\":\"Fields returned when the response contains a page of Xiaohongshu note comments.\",\"properties\":{\"comments\":{\"type\":\"array\",\"description\":\"Top-level comments on the returned page.\",\"items\":{\"type\":\"object\",\"description\":\"A top-level comment on the note.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"The unique Xiaohongshu comment ID.\"},\"note_id\":{\"type\":\"string\",\"description\":\"The ID of the note associated with this comment.\"},\"content\":{\"type\":\"string\",\"description\":\"The comment text returned by Xiaohongshu.\"},\"time\":{\"type\":\"integer\",\"description\":\"The comment creation time as a Unix timestamp in seconds.\"},\"ip_location\":{\"type\":\"string\",\"description\":\"The IP location label shown for the comment, when returned.\"},\"like_count\":{\"type\":\"integer\",\"description\":\"The number of likes reported for the comment.\"},\"liked\":{\"type\":\"boolean\",\"description\":\"Whether the platform marks this comment as liked in the response context.\"},\"downvoted\":{\"type\":\"boolean\",\"description\":\"Whether the platform marks this comment as downvoted in the response context.\"},\"collected\":{\"type\":\"boolean\",\"description\":\"Whether the platform marks this comment as saved in the response context.\"},\"hidden\":{\"type\":\"boolean\",\"description\":\"Whether the platform marks this comment as hidden.\"},\"status\":{\"type\":\"integer\",\"description\":\"The status code returned for the comment.\"},\"comment_type\":{\"type\":\"integer\",\"description\":\"The platform comment type code.\"},\"show_type\":{\"type\":\"string\",\"description\":\"The display type code returned for the comment.\"},\"score\":{\"type\":\"integer\",\"description\":\"The platform-reported comment score.\"},\"track_id\":{\"type\":\"string\",\"description\":\"The trace identifier attached to the comment by Xiaohongshu.\"},\"translation_strategy\":{\"type\":\"integer\",\"description\":\"The platform code for comment translation behavior.\"},\"share_strategy\":{\"type\":\"integer\",\"description\":\"The platform code for comment sharing behavior.\"},\"friend_liked_msg\":{\"type\":\"string\",\"description\":\"The platform message about likes by friends, which can be empty.\"},\"user\":{\"type\":\"object\",\"description\":\"The author of this top-level comment.\",\"properties\":{\"userid\":{\"type\":\"string\",\"description\":\"The Xiaohongshu user ID of this account.\"},\"red_id\":{\"type\":\"string\",\"description\":\"The visible Xiaohongshu account ID, which can be empty.\"},\"nickname\":{\"type\":\"string\",\"description\":\"The display name of this account.\"},\"images\":{\"type\":\"string\",\"description\":\"The profile avatar URL returned for this account.\"},\"current_user\":{\"type\":\"string\",\"description\":\"The platform current-user indicator, returned as a string.\"},\"ai_agent\":{\"type\":\"boolean\",\"description\":\"Whether the platform marks this account as an AI agent.\"},\"level\":{\"type\":\"object\",\"description\":\"Level information returned for this account.\",\"properties\":{\"image\":{\"type\":\"string\",\"description\":\"The image returned for the account level.\"}}},\"additional_tags\":{\"type\":\"object\",\"description\":\"Additional account tag metadata, which can be empty.\"}}},\"at_users\":{\"type\":\"array\",\"description\":\"Accounts mentioned in the comment.\",\"items\":{\"type\":\"object\",\"description\":\"An account mentioned in the comment.\",\"properties\":{\"userid\":{\"type\":\"string\",\"description\":\"The Xiaohongshu user ID of the mentioned account.\"},\"nickname\":{\"type\":\"string\",\"description\":\"The display name of the mentioned account.\"},\"ai_agent\":{\"type\":\"boolean\",\"description\":\"Whether the platform marks the mentioned account as an AI agent.\"},\"level\":{\"type\":\"object\",\"description\":\"Level information for the mentioned account.\",\"properties\":{\"image\":{\"type\":\"string\",\"description\":\"The image returned for the mentioned account&#39;s level.\"}}}}}},\"hash_tags\":{\"type\":\"array\",\"description\":\"Hashtags associated with the comment, when returned.\",\"items\":{\"type\":\"object\",\"description\":\"A hashtag associated with the comment.\",\"properties\":{\"name\":{\"type\":\"string\",\"description\":\"The display name of the hashtag.\"},\"link\":{\"type\":\"string\",\"description\":\"The link associated with the hashtag.\"},\"type\":{\"type\":\"string\",\"description\":\"The platform hashtag type code.\"},\"disable_jump\":{\"type\":\"boolean\",\"description\":\"Whether the platform disables navigation from the hashtag.\"}}}},\"show_tags\":{\"type\":\"array\",\"description\":\"Display tags returned for the comment. The array can be empty.\"},\"show_tags_v2\":{\"type\":\"array\",\"description\":\"Structured display tags returned for the comment.\",\"items\":{\"type\":\"object\",\"description\":\"A structured display tag.\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"The platform type code for the tag.\"},\"text\":{\"type\":\"string\",\"description\":\"The display text for the tag.\"},\"style_id\":{\"type\":\"string\",\"description\":\"The display style identifier for the tag.\"},\"pos\":{\"type\":\"string\",\"description\":\"The display position code for the tag.\"}}}},\"biz_label\":{\"type\":\"object\",\"description\":\"Business and rich-text markers for the comment.\",\"properties\":{\"product_review\":{\"type\":\"boolean\",\"description\":\"Whether the platform marks this item as a product review.\"},\"group_invite\":{\"type\":\"string\",\"description\":\"Group invitation metadata returned as a string.\"},\"rich_text\":{\"type\":\"string\",\"description\":\"Rich-text metadata returned as a string.\"}}},\"pictures\":{\"type\":\"array\",\"description\":\"Image or sticker attachments, when returned.\",\"items\":{\"type\":\"object\",\"description\":\"An image or sticker attachment to the comment.\",\"properties\":{\"file_id\":{\"type\":\"string\",\"description\":\"The platform file ID of the attachment.\"},\"url\":{\"type\":\"string\",\"description\":\"The attachment image URL returned for display.\"},\"origin_url\":{\"type\":\"string\",\"description\":\"The original attachment image URL returned by the platform.\"},\"width\":{\"type\":\"integer\",\"description\":\"The width value returned for the attachment image.\"},\"height\":{\"type\":\"integer\",\"description\":\"The height value returned for the attachment image.\"},\"box_w\":{\"type\":\"integer\",\"description\":\"The display box width value returned for the attachment.\"},\"box_h\":{\"type\":\"integer\",\"description\":\"The display box height value returned for the attachment.\"},\"meme_package\":{\"type\":\"object\",\"description\":\"Metadata for a sticker or meme associated with the attachment.\",\"properties\":{\"meme_id\":{\"type\":\"string\",\"description\":\"The ID of the sticker or meme, when returned.\"},\"image_url\":{\"type\":\"string\",\"description\":\"The sticker or meme image URL, when returned.\"},\"width\":{\"type\":\"integer\",\"description\":\"The width value returned for the sticker or meme.\"},\"height\":{\"type\":\"integer\",\"description\":\"The height value returned for the sticker or meme.\"}}}}}},\"media_source_type\":{\"type\":\"integer\",\"description\":\"The platform media source type code for the comment attachment.\"},\"sub_comment_count\":{\"type\":\"integer\",\"description\":\"The number of replies reported for this top-level comment.\"},\"sub_comment_cursor\":{\"type\":\"string\",\"description\":\"Optional reply pagination context for this top-level comment. The reply endpoint supplies its own continuation cursor.\"},\"sub_comments\":{\"type\":\"array\",\"description\":\"Replies embedded in the comment page. The list can be partial or empty even when sub_comment_count is positive.\",\"items\":{\"type\":\"object\",\"description\":\"A reply embedded under a top-level comment.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"The Xiaohongshu ID of the reply.\"},\"note_id\":{\"type\":\"string\",\"description\":\"The ID of the note associated with this reply.\"},\"content\":{\"type\":\"string\",\"description\":\"The reply text returned by Xiaohongshu.\"},\"time\":{\"type\":\"integer\",\"description\":\"The reply creation time as a Unix timestamp in seconds.\"},\"ip_location\":{\"type\":\"string\",\"description\":\"The IP location label shown for the reply, when returned.\"},\"like_count\":{\"type\":\"integer\",\"description\":\"The number of likes reported for the reply.\"},\"liked\":{\"type\":\"boolean\",\"description\":\"Whether the platform marks the reply as liked in the response context.\"},\"downvoted\":{\"type\":\"boolean\",\"description\":\"Whether the platform marks the reply as downvoted in the response context.\"},\"collected\":{\"type\":\"boolean\",\"description\":\"Whether the platform marks the reply as saved in the response context.\"},\"hidden\":{\"type\":\"boolean\",\"description\":\"Whether the platform marks the reply as hidden.\"},\"status\":{\"type\":\"integer\",\"description\":\"The status code returned for the reply.\"},\"comment_type\":{\"type\":\"integer\",\"description\":\"The platform reply type code.\"},\"show_type\":{\"type\":\"string\",\"description\":\"The display type code returned for the reply.\"},\"score\":{\"type\":\"integer\",\"description\":\"The platform-reported reply score.\"},\"translation_strategy\":{\"type\":\"integer\",\"description\":\"The platform code for reply translation behavior.\"},\"share_strategy\":{\"type\":\"integer\",\"description\":\"The platform code for reply sharing behavior.\"},\"friend_liked_msg\":{\"type\":\"string\",\"description\":\"The platform message about likes by friends, which can be empty.\"},\"at_users\":{\"type\":\"array\",\"description\":\"Accounts mentioned in the reply. The array can be empty.\"},\"show_tags\":{\"type\":\"array\",\"description\":\"Display tags returned for the reply. The array can be empty.\"},\"show_tags_v2\":{\"type\":\"array\",\"description\":\"Structured display tags returned for the reply.\",\"items\":{\"type\":\"object\",\"description\":\"A structured display tag.\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"The platform type code for the tag.\"},\"text\":{\"type\":\"string\",\"description\":\"The display text for the tag.\"},\"style_id\":{\"type\":\"string\",\"description\":\"The display style identifier for the tag.\"},\"pos\":{\"type\":\"string\",\"description\":\"The display position code for the tag.\"}}}},\"biz_label\":{\"type\":\"object\",\"description\":\"Business and rich-text markers for the reply.\",\"properties\":{\"product_review\":{\"type\":\"boolean\",\"description\":\"Whether the platform marks this item as a product review.\"},\"group_invite\":{\"type\":\"string\",\"description\":\"Group invitation metadata returned as a string.\"},\"rich_text\":{\"type\":\"string\",\"description\":\"Rich-text metadata returned as a string.\"}}},\"user\":{\"type\":\"object\",\"description\":\"The author of the embedded reply.\",\"properties\":{\"userid\":{\"type\":\"string\",\"description\":\"The Xiaohongshu user ID of this account.\"},\"red_id\":{\"type\":\"string\",\"description\":\"The visible Xiaohongshu account ID, which can be empty.\"},\"nickname\":{\"type\":\"string\",\"description\":\"The display name of this account.\"},\"images\":{\"type\":\"string\",\"description\":\"The profile avatar URL returned for this account.\"},\"current_user\":{\"type\":\"string\",\"description\":\"The platform current-user indicator, returned as a string.\"},\"ai_agent\":{\"type\":\"boolean\",\"description\":\"Whether the platform marks this account as an AI agent.\"},\"level\":{\"type\":\"object\",\"description\":\"Level information returned for this account.\",\"properties\":{\"image\":{\"type\":\"string\",\"description\":\"The image returned for the account level.\"}}},\"additional_tags\":{\"type\":\"object\",\"description\":\"Additional account tag metadata, which can be empty.\"}}},\"target_comment\":{\"type\":\"object\",\"description\":\"Information about the comment that this reply addresses.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"The ID of the addressed comment.\"},\"status\":{\"type\":\"integer\",\"description\":\"The status code returned for the addressed comment.\"},\"user\":{\"type\":\"object\",\"description\":\"The author of the addressed comment.\",\"properties\":{\"userid\":{\"type\":\"string\",\"description\":\"The Xiaohongshu user ID of this account.\"},\"red_id\":{\"type\":\"string\",\"description\":\"The visible Xiaohongshu account ID, which can be empty.\"},\"nickname\":{\"type\":\"string\",\"description\":\"The display name of this account.\"},\"images\":{\"type\":\"string\",\"description\":\"The profile avatar URL returned for this account.\"},\"current_user\":{\"type\":\"string\",\"description\":\"The platform current-user indicator, returned as a string.\"},\"ai_agent\":{\"type\":\"boolean\",\"description\":\"Whether the platform marks this account as an AI agent.\"},\"level\":{\"type\":\"object\",\"description\":\"Level information returned for this account.\",\"properties\":{\"image\":{\"type\":\"string\",\"description\":\"The image returned for the account level.\"}}},\"additional_tags\":{\"type\":\"object\",\"description\":\"Additional account tag metadata, which can be empty.\"}}}}}}}}}}},\"user_id\":{\"type\":\"string\",\"description\":\"The Xiaohongshu user ID of the note author.\"},\"comment_count\":{\"type\":\"integer\",\"description\":\"The overall comment count reported by Xiaohongshu for the note.\"},\"comment_count_l1\":{\"type\":\"integer\",\"description\":\"The reported count of top-level comments across the note&#39;s pages.\"},\"has_more\":{\"type\":\"boolean\",\"description\":\"Whether the response reports another page of top-level comments.\"},\"cursor\":{\"type\":\"string\",\"description\":\"The top-level comment continuation cursor. When available, pass it unchanged as lastCursor for the same note and sort. It can be empty or absent at the end.\"},\"page_context\":{\"type\":\"string\",\"description\":\"Opaque page context returned by Xiaohongshu.\"},\"current_sort_strategy\":{\"type\":\"string\",\"description\":\"The sort strategy code reported with the response. Its value can differ from the requested sort value.\"},\"all_sort_strategies\":{\"type\":\"array\",\"description\":\"Sort options reported with this page, when returned.\",\"items\":{\"type\":\"object\",\"description\":\"A sort option reported with this page.\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"The sort option code reported by Xiaohongshu.\"},\"optional_name\":{\"type\":\"string\",\"description\":\"The primary display label for the sort option.\"},\"suffix_name\":{\"type\":\"string\",\"description\":\"The supplementary display label for the sort option.\"}}}}}}}},\"allOf\":[{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}]}}}},\"400\":{\"description\":\"Invalid request parameters or body\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"401\":{\"description\":\"Invalid or inactive access token\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"403\":{\"description\":\"Permission denied\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"429\":{\"description\":\"Request rate or daily quota limit exceeded\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"500\":{\"description\":\"Internal server error\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"503\":{\"description\":\"Service temporarily unavailable\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}}}")'
  :servers='JSON.parse("[{\"url\":\"https://api.justoneapi.com\",\"description\":\"Global production API (default)\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

<ApiHealthSection :api='JSON.parse("\"/api/xiaohongshu/get-note-comment/v2\"")' />

<p>Retrieves comments for a Xiaohongshu (RedNote) note with cursor pagination and normal, latest, or like-count sorting. Use it to support feedback review, discussion analysis, and comment moderation workflows.</p>

## Highlights

::: tip Guidance
<p>We recommend using the <code>latest</code> sort by default. If comments cannot be retrieved for some notes with <code>latest</code>, try again using <code>normal</code>.</p>
:::

## Parameters

<div class="api-doc-table api-doc-table--params">

| Name | In | Type | Required | Default | Description |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | Yes | - | Access token for this API service. |
| <code>noteId</code> | query | <code>string</code> | Yes | - | A Xiaohongshu note ID or an explore URL containing /explore/. |
| <code>lastCursor</code> | query | <code>string</code> | No | - | Pagination cursor from the previous page (use the cursor value returned by the last response). |
| <code>sort</code> | query | <code>string</code> | No | <code>latest</code> | Sort strategy for the result set.<br /><br><br>Available Values:<br /><br>- <code>normal</code>: Normal<br /><br>- <code>latest</code>: Latest<br /><br>- <code>like_count</code>: Like Count |

</div>

## Code Samples

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/xiaohongshu/get-note-comment/v2?token=YOUR_API_KEY&noteId=VALUE'
```

```text [🤖 AI Prompt]
I want to use the "Note Comments (V2)" API from JustOneAPI.
Base URL: https://api.justoneapi.com.
API Path: /api/xiaohongshu/get-note-comment/v2?token=YOUR_API_KEY&noteId=VALUE
API Endpoint: BASE_URL + /api/xiaohongshu/get-note-comment/v2?token=YOUR_API_KEY&noteId=VALUE
HTTP Method: GET
Authentication: Append the "token" query parameter to the URL.
OpenAPI Definition: https://docs.justoneapi.com/openapi/xiaohongshu-rednote/note-comments-v2-en.json

Parameters:
- token (query): Access token for this API service. (Required)
- noteId (query): A Xiaohongshu note ID or an explore URL containing /explore/. (Required)
- lastCursor (query): Pagination cursor from the previous page (use the cursor value returned by the last response).
- sort (query): Sort strategy for the result set.

Available Values:
- `normal`: Normal
- `latest`: Latest
- `like_count`: Like Count

Return format: safely handle JSON or text according to the actual Content-Type.

Response Handling & Error Codes:
1. Business results should be determined by the "code" field in the response body (code 0 means success).
2. Timeout Recommendation: Set the request timeout to 120 seconds. If 120 seconds is too long for your use case, use at least 60 seconds, but a small number of requests may time out before receiving a result.
3. Business Code Reference:
   - 0: Success
   - 100: Invalid or Inactive Token
   - 301: Collection Failed. Please Retry.
   - 302: Rate Limit Exceeded
   - 303: Daily Quota Exceeded
   - 400: Invalid Parameters
   - 500: Internal Server Error
   - 600: Permission Denied
   - 601: Insufficient Balance
   - 602: Token Budget Exceeded
4. Code 601 means the shared account balance is insufficient. Code 602 means the current API token's own cumulative budget limit has been reached. Token budget limits do not transfer funds out of the shared account balance.

Please help me write a script in my preferred programming language to call this API and handle the response.
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # Provided by OpenAPI servers

url = BASE_URL + "/api/xiaohongshu/get-note-comment/v2?token=YOUR_API_KEY&noteId=VALUE"
response = requests.get(url, timeout=120)
print(response.status_code)
if response.content:
    content_type = response.headers.get("content-type", "").lower()
    if "json" in content_type:
        try:
            print(response.json())
        except ValueError:
            print(response.text)
    elif content_type.startswith("text/") or "xml" in content_type or content_type.split(";", 1)[0].strip() in {"application/javascript", "application/x-www-form-urlencoded", "application/graphql"}:
        print(response.text)
    else:
        with open("response.bin", "wb") as output:
            output.write(response.content)
        print(f"Saved {len(response.content)} bytes to response.bin")
```

```js [🌐 JavaScript]
const BASE_URL = "https://api.justoneapi.com"; // Provided by OpenAPI servers
const url = BASE_URL + "/api/xiaohongshu/get-note-comment/v2?token=YOUR_API_KEY&noteId=VALUE";

const response = await fetch(url, {
  method: "GET",
  signal: AbortSignal.timeout(120000)
});
console.log(response.status);
const responseBytes = await response.arrayBuffer();
if (responseBytes.byteLength) {
  const contentType = (response.headers.get("content-type") || "").toLowerCase();
  const mediaType = contentType.split(";", 1)[0].trim();
  const textual = contentType.startsWith("text/") || contentType.includes("json") || contentType.includes("xml") || ["application/javascript", "application/x-www-form-urlencoded", "application/graphql"].includes(mediaType);
  if (textual) {
    const responseText = new TextDecoder().decode(responseBytes);
    let data = responseText;
    if (contentType.includes("json")) {
      try { data = JSON.parse(responseText); } catch { /* Keep the raw body. */ }
    }
    console.log(data);
  } else {
    console.log(`Received ${responseBytes.byteLength} binary bytes`);
  }
}
```

```java [☕ Java]
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;

public class Main {
    public static void main(String[] args) throws Exception {
        final String BASE_URL = "https://api.justoneapi.com"; // Provided by OpenAPI servers
        final String url = BASE_URL + "/api/xiaohongshu/get-note-comment/v2?token=YOUR_API_KEY&noteId=VALUE";

        HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
        HttpRequest.Builder builder = HttpRequest.newBuilder()
            .uri(URI.create(url))
            .timeout(Duration.ofSeconds(120))
            .method("GET", HttpRequest.BodyPublishers.noBody());

        HttpRequest request = builder.build();

        HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
        System.out.println(response.statusCode());
        String contentType = response.headers().firstValue("content-type").orElse("").toLowerCase();
        String mediaType = contentType.split(";", 2)[0].trim();
        if (contentType.startsWith("text/") || contentType.contains("json") || contentType.contains("xml") || mediaType.equals("application/javascript") || mediaType.equals("application/x-www-form-urlencoded") || mediaType.equals("application/graphql")) {
            System.out.println(new String(response.body(), StandardCharsets.UTF_8));
        } else {
            Files.write(Path.of("response.bin"), response.body());
            System.out.println("Saved " + response.body().length + " bytes to response.bin");
        }
    }
}
```

```go [🐹 Go]
package main

import (
	"fmt"
	"io"
	"os"
	"strings"
	"net/http"
	"time"
)

const BASE_URL = "https://api.justoneapi.com" // Provided by OpenAPI servers

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/xiaohongshu/get-note-comment/v2?token=YOUR_API_KEY&noteId=VALUE"
	req, _ := http.NewRequest("GET", url, nil)
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	fmt.Println(resp.StatusCode)
	bodyBytes, _ := io.ReadAll(resp.Body)
	contentType := strings.ToLower(resp.Header.Get("Content-Type"))
	mediaType := strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0])
	if strings.HasPrefix(contentType, "text/") || strings.Contains(contentType, "json") || strings.Contains(contentType, "xml") || mediaType == "application/javascript" || mediaType == "application/x-www-form-urlencoded" || mediaType == "application/graphql" {
		fmt.Println(string(bodyBytes))
	} else {
		os.WriteFile("response.bin", bodyBytes, 0600)
		fmt.Printf("Saved %d bytes to response.bin\n", len(bodyBytes))
	}
}
```

```php [🐘 PHP]
<?php
$BASE_URL = 'https://api.justoneapi.com'; // Provided by OpenAPI servers
$url = $BASE_URL . '/api/xiaohongshu/get-note-comment/v2?token=YOUR_API_KEY&noteId=VALUE';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
$contentType = strtolower((string) curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
curl_close($ch);
echo $status . PHP_EOL;
$mediaType = trim(explode(';', $contentType, 2)[0]);
if (str_starts_with($contentType, 'text/') || str_contains($contentType, 'json') || str_contains($contentType, 'xml') || in_array($mediaType, ['application/javascript', 'application/x-www-form-urlencoded', 'application/graphql'], true)) {
    echo $response;
} else {
    file_put_contents('response.bin', $response);
    echo 'Saved ' . strlen($response) . ' bytes to response.bin' . PHP_EOL;
}
```

:::

<div style="text-align: right; margin-top: -20px; margin-bottom: 20px;">
<a href="/openapi/xiaohongshu-rednote/note-comments-v2-en.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[OpenAPI Definition (JSON)]</a>
</div>

## Response Fields

Key fields in a successful response (`code = 0`).

<div class="api-doc-table api-doc-table--response">

| Field path | Type | Description |
| --- | --- | --- |
| <code>data</code> | - | Fields returned when the response contains a page of Xiaohongshu note comments. |
| <code>data.comments</code> | <code>array</code> | Top-level comments on the returned page. |
| <code>data.comments[]</code> | <code>object</code> | A top-level comment on the note. |
| <code>data.comments[].id</code> | <code>string</code> | The unique Xiaohongshu comment ID. |
| <code>data.comments[].note_id</code> | <code>string</code> | The ID of the note associated with this comment. |
| <code>data.comments[].content</code> | <code>string</code> | The comment text returned by Xiaohongshu. |
| <code>data.comments[].time</code> | <code>integer</code> | The comment creation time as a Unix timestamp in seconds. |
| <code>data.comments[].ip_location</code> | <code>string</code> | The IP location label shown for the comment, when returned. |
| <code>data.comments[].like_count</code> | <code>integer</code> | The number of likes reported for the comment. |
| <code>data.comments[].liked</code> | <code>boolean</code> | Whether the platform marks this comment as liked in the response context. |
| <code>data.comments[].downvoted</code> | <code>boolean</code> | Whether the platform marks this comment as downvoted in the response context. |
| <code>data.comments[].collected</code> | <code>boolean</code> | Whether the platform marks this comment as saved in the response context. |
| <code>data.comments[].hidden</code> | <code>boolean</code> | Whether the platform marks this comment as hidden. |
| <code>data.comments[].status</code> | <code>integer</code> | The status code returned for the comment. |
| <code>data.comments[].comment_type</code> | <code>integer</code> | The platform comment type code. |
| <code>data.comments[].show_type</code> | <code>string</code> | The display type code returned for the comment. |
| <code>data.comments[].score</code> | <code>integer</code> | The platform-reported comment score. |
| <code>data.comments[].track_id</code> | <code>string</code> | The trace identifier attached to the comment by Xiaohongshu. |
| <code>data.comments[].translation_strategy</code> | <code>integer</code> | The platform code for comment translation behavior. |
| <code>data.comments[].share_strategy</code> | <code>integer</code> | The platform code for comment sharing behavior. |
| <code>data.comments[].friend_liked_msg</code> | <code>string</code> | The platform message about likes by friends, which can be empty. |
| <code>data.comments[].user</code> | <code>object</code> | The author of this top-level comment. |
| <code>data.comments[].user.userid</code> | <code>string</code> | The Xiaohongshu user ID of this account. |
| <code>data.comments[].user.red_id</code> | <code>string</code> | The visible Xiaohongshu account ID, which can be empty. |
| <code>data.comments[].user.nickname</code> | <code>string</code> | The display name of this account. |
| <code>data.comments[].user.images</code> | <code>string</code> | The profile avatar URL returned for this account. |
| <code>data.comments[].user.current_user</code> | <code>string</code> | The platform current-user indicator, returned as a string. |
| <code>data.comments[].user.ai_agent</code> | <code>boolean</code> | Whether the platform marks this account as an AI agent. |
| <code>data.comments[].user.level</code> | <code>object</code> | Level information returned for this account. |
| <code>data.comments[].user.level.image</code> | <code>string</code> | The image returned for the account level. |
| <code>data.comments[].user.additional_tags</code> | <code>object</code> | Additional account tag metadata, which can be empty. |
| <code>data.comments[].at_users</code> | <code>array</code> | Accounts mentioned in the comment. |
| <code>data.comments[].at_users[]</code> | <code>object</code> | An account mentioned in the comment. |
| <code>data.comments[].at_users[].userid</code> | <code>string</code> | The Xiaohongshu user ID of the mentioned account. |
| <code>data.comments[].at_users[].nickname</code> | <code>string</code> | The display name of the mentioned account. |
| <code>data.comments[].at_users[].ai_agent</code> | <code>boolean</code> | Whether the platform marks the mentioned account as an AI agent. |
| <code>data.comments[].at_users[].level</code> | <code>object</code> | Level information for the mentioned account. |
| <code>data.comments[].at_users[].level.image</code> | <code>string</code> | The image returned for the mentioned account's level. |
| <code>data.comments[].hash_tags</code> | <code>array</code> | Hashtags associated with the comment, when returned. |
| <code>data.comments[].hash_tags[]</code> | <code>object</code> | A hashtag associated with the comment. |
| <code>data.comments[].hash_tags[].name</code> | <code>string</code> | The display name of the hashtag. |
| <code>data.comments[].hash_tags[].link</code> | <code>string</code> | The link associated with the hashtag. |
| <code>data.comments[].hash_tags[].type</code> | <code>string</code> | The platform hashtag type code. |
| <code>data.comments[].hash_tags[].disable_jump</code> | <code>boolean</code> | Whether the platform disables navigation from the hashtag. |
| <code>data.comments[].show_tags</code> | <code>array</code> | Display tags returned for the comment. The array can be empty. |
| <code>data.comments[].show_tags_v2</code> | <code>array</code> | Structured display tags returned for the comment. |
| <code>data.comments[].show_tags_v2[]</code> | <code>object</code> | A structured display tag. |
| <code>data.comments[].show_tags_v2[].type</code> | <code>string</code> | The platform type code for the tag. |
| <code>data.comments[].show_tags_v2[].text</code> | <code>string</code> | The display text for the tag. |
| <code>data.comments[].show_tags_v2[].style_id</code> | <code>string</code> | The display style identifier for the tag. |
| <code>data.comments[].show_tags_v2[].pos</code> | <code>string</code> | The display position code for the tag. |
| <code>data.comments[].biz_label</code> | <code>object</code> | Business and rich-text markers for the comment. |
| <code>data.comments[].biz_label.product_review</code> | <code>boolean</code> | Whether the platform marks this item as a product review. |
| <code>data.comments[].biz_label.group_invite</code> | <code>string</code> | Group invitation metadata returned as a string. |
| <code>data.comments[].biz_label.rich_text</code> | <code>string</code> | Rich-text metadata returned as a string. |
| <code>data.comments[].pictures</code> | <code>array</code> | Image or sticker attachments, when returned. |
| <code>data.comments[].pictures[]</code> | <code>object</code> | An image or sticker attachment to the comment. |
| <code>data.comments[].pictures[].file_id</code> | <code>string</code> | The platform file ID of the attachment. |
| <code>data.comments[].pictures[].url</code> | <code>string</code> | The attachment image URL returned for display. |
| <code>data.comments[].pictures[].origin_url</code> | <code>string</code> | The original attachment image URL returned by the platform. |
| <code>data.comments[].pictures[].width</code> | <code>integer</code> | The width value returned for the attachment image. |
| <code>data.comments[].pictures[].height</code> | <code>integer</code> | The height value returned for the attachment image. |
| <code>data.comments[].pictures[].box_w</code> | <code>integer</code> | The display box width value returned for the attachment. |
| <code>data.comments[].pictures[].box_h</code> | <code>integer</code> | The display box height value returned for the attachment. |
| <code>data.comments[].pictures[].meme_package</code> | <code>object</code> | Metadata for a sticker or meme associated with the attachment. |
| <code>data.comments[].pictures[].meme_package.meme_id</code> | <code>string</code> | The ID of the sticker or meme, when returned. |
| <code>data.comments[].pictures[].meme_package.image_url</code> | <code>string</code> | The sticker or meme image URL, when returned. |
| <code>data.comments[].pictures[].meme_package.width</code> | <code>integer</code> | The width value returned for the sticker or meme. |
| <code>data.comments[].pictures[].meme_package.height</code> | <code>integer</code> | The height value returned for the sticker or meme. |
| <code>data.comments[].media_source_type</code> | <code>integer</code> | The platform media source type code for the comment attachment. |
| <code>data.comments[].sub_comment_count</code> | <code>integer</code> | The number of replies reported for this top-level comment. |
| <code>data.comments[].sub_comment_cursor</code> | <code>string</code> | Optional reply pagination context for this top-level comment. The reply endpoint supplies its own continuation cursor. |
| <code>data.comments[].sub_comments</code> | <code>array</code> | Replies embedded in the comment page. The list can be partial or empty even when sub_comment_count is positive. |
| <code>data.comments[].sub_comments[]</code> | <code>object</code> | A reply embedded under a top-level comment. |
| <code>data.comments[].sub_comments[].id</code> | <code>string</code> | The Xiaohongshu ID of the reply. |
| <code>data.comments[].sub_comments[].note_id</code> | <code>string</code> | The ID of the note associated with this reply. |
| <code>data.comments[].sub_comments[].content</code> | <code>string</code> | The reply text returned by Xiaohongshu. |
| <code>data.comments[].sub_comments[].time</code> | <code>integer</code> | The reply creation time as a Unix timestamp in seconds. |
| <code>data.comments[].sub_comments[].ip_location</code> | <code>string</code> | The IP location label shown for the reply, when returned. |
| <code>data.comments[].sub_comments[].like_count</code> | <code>integer</code> | The number of likes reported for the reply. |
| <code>data.comments[].sub_comments[].liked</code> | <code>boolean</code> | Whether the platform marks the reply as liked in the response context. |
| <code>data.comments[].sub_comments[].downvoted</code> | <code>boolean</code> | Whether the platform marks the reply as downvoted in the response context. |
| <code>data.comments[].sub_comments[].collected</code> | <code>boolean</code> | Whether the platform marks the reply as saved in the response context. |
| <code>data.comments[].sub_comments[].hidden</code> | <code>boolean</code> | Whether the platform marks the reply as hidden. |
| <code>data.comments[].sub_comments[].status</code> | <code>integer</code> | The status code returned for the reply. |
| <code>data.comments[].sub_comments[].comment_type</code> | <code>integer</code> | The platform reply type code. |
| <code>data.comments[].sub_comments[].show_type</code> | <code>string</code> | The display type code returned for the reply. |
| <code>data.comments[].sub_comments[].score</code> | <code>integer</code> | The platform-reported reply score. |
| <code>data.comments[].sub_comments[].translation_strategy</code> | <code>integer</code> | The platform code for reply translation behavior. |
| <code>data.comments[].sub_comments[].share_strategy</code> | <code>integer</code> | The platform code for reply sharing behavior. |
| <code>data.comments[].sub_comments[].friend_liked_msg</code> | <code>string</code> | The platform message about likes by friends, which can be empty. |
| <code>data.comments[].sub_comments[].at_users</code> | <code>array</code> | Accounts mentioned in the reply. The array can be empty. |
| <code>data.comments[].sub_comments[].show_tags</code> | <code>array</code> | Display tags returned for the reply. The array can be empty. |
| <code>data.comments[].sub_comments[].show_tags_v2</code> | <code>array</code> | Structured display tags returned for the reply. |
| <code>data.comments[].sub_comments[].show_tags_v2[]</code> | <code>object</code> | A structured display tag. |
| <code>data.comments[].sub_comments[].show_tags_v2[].type</code> | <code>string</code> | The platform type code for the tag. |
| <code>data.comments[].sub_comments[].show_tags_v2[].text</code> | <code>string</code> | The display text for the tag. |
| <code>data.comments[].sub_comments[].show_tags_v2[].style_id</code> | <code>string</code> | The display style identifier for the tag. |
| <code>data.comments[].sub_comments[].show_tags_v2[].pos</code> | <code>string</code> | The display position code for the tag. |
| <code>data.comments[].sub_comments[].biz_label</code> | <code>object</code> | Business and rich-text markers for the reply. |
| <code>data.comments[].sub_comments[].biz_label.product_review</code> | <code>boolean</code> | Whether the platform marks this item as a product review. |
| <code>data.comments[].sub_comments[].biz_label.group_invite</code> | <code>string</code> | Group invitation metadata returned as a string. |
| <code>data.comments[].sub_comments[].biz_label.rich_text</code> | <code>string</code> | Rich-text metadata returned as a string. |
| <code>data.comments[].sub_comments[].user</code> | <code>object</code> | The author of the embedded reply. |
| <code>data.comments[].sub_comments[].user.userid</code> | <code>string</code> | The Xiaohongshu user ID of this account. |
| <code>data.comments[].sub_comments[].user.red_id</code> | <code>string</code> | The visible Xiaohongshu account ID, which can be empty. |
| <code>data.comments[].sub_comments[].user.nickname</code> | <code>string</code> | The display name of this account. |
| <code>data.comments[].sub_comments[].user.images</code> | <code>string</code> | The profile avatar URL returned for this account. |
| <code>data.comments[].sub_comments[].user.current_user</code> | <code>string</code> | The platform current-user indicator, returned as a string. |
| <code>data.comments[].sub_comments[].user.ai_agent</code> | <code>boolean</code> | Whether the platform marks this account as an AI agent. |
| <code>data.comments[].sub_comments[].user.level</code> | <code>object</code> | Level information returned for this account. |
| <code>data.comments[].sub_comments[].user.level.image</code> | <code>string</code> | The image returned for the account level. |
| <code>data.comments[].sub_comments[].user.additional_tags</code> | <code>object</code> | Additional account tag metadata, which can be empty. |
| <code>data.comments[].sub_comments[].target_comment</code> | <code>object</code> | Information about the comment that this reply addresses. |
| <code>data.comments[].sub_comments[].target_comment.id</code> | <code>string</code> | The ID of the addressed comment. |
| <code>data.comments[].sub_comments[].target_comment.status</code> | <code>integer</code> | The status code returned for the addressed comment. |
| <code>data.comments[].sub_comments[].target_comment.user</code> | <code>object</code> | The author of the addressed comment. |
| <code>data.comments[].sub_comments[].target_comment.user.userid</code> | <code>string</code> | The Xiaohongshu user ID of this account. |
| <code>data.comments[].sub_comments[].target_comment.user.red_id</code> | <code>string</code> | The visible Xiaohongshu account ID, which can be empty. |
| <code>data.comments[].sub_comments[].target_comment.user.nickname</code> | <code>string</code> | The display name of this account. |
| <code>data.comments[].sub_comments[].target_comment.user.images</code> | <code>string</code> | The profile avatar URL returned for this account. |
| <code>data.comments[].sub_comments[].target_comment.user.current_user</code> | <code>string</code> | The platform current-user indicator, returned as a string. |
| <code>data.comments[].sub_comments[].target_comment.user.ai_agent</code> | <code>boolean</code> | Whether the platform marks this account as an AI agent. |
| <code>data.comments[].sub_comments[].target_comment.user.level</code> | <code>object</code> | Level information returned for this account. |
| <code>data.comments[].sub_comments[].target_comment.user.level.image</code> | <code>string</code> | The image returned for the account level. |
| <code>data.comments[].sub_comments[].target_comment.user.additional_tags</code> | <code>object</code> | Additional account tag metadata, which can be empty. |
| <code>data.user_id</code> | <code>string</code> | The Xiaohongshu user ID of the note author. |
| <code>data.comment_count</code> | <code>integer</code> | The overall comment count reported by Xiaohongshu for the note. |
| <code>data.comment_count_l1</code> | <code>integer</code> | The reported count of top-level comments across the note's pages. |
| <code>data.has_more</code> | <code>boolean</code> | Whether the response reports another page of top-level comments. |
| <code>data.cursor</code> | <code>string</code> | The top-level comment continuation cursor. When available, pass it unchanged as lastCursor for the same note and sort. It can be empty or absent at the end. |
| <code>data.page_context</code> | <code>string</code> | Opaque page context returned by Xiaohongshu. |
| <code>data.current_sort_strategy</code> | <code>string</code> | The sort strategy code reported with the response. Its value can differ from the requested sort value. |
| <code>data.all_sort_strategies</code> | <code>array</code> | Sort options reported with this page, when returned. |
| <code>data.all_sort_strategies[]</code> | <code>object</code> | A sort option reported with this page. |
| <code>data.all_sort_strategies[].type</code> | <code>string</code> | The sort option code reported by Xiaohongshu. |
| <code>data.all_sort_strategies[].optional_name</code> | <code>string</code> | The primary display label for the sort option. |
| <code>data.all_sort_strategies[].suffix_name</code> | <code>string</code> | The supplementary display label for the sort option. |

</div>

## Response Example

<ApiExampleSection :api='JSON.parse("\"/api/xiaohongshu/get-note-comment/v2\"")' />

