获取笔记评论列表/Get note comments
Xiaohongshuapi
About
获取笔记评论列表/Get note comments
Documentation
获取笔记评论列表/Get note comments
[中文]
用途:
- 获取指定笔记的评论列表,支持分页和多种排序方式
参数:
- note_id: 笔记ID,如 "697c0eee000000000a03c308"
- share_text: 小红书分享链接(支持APP和Web端分享链接)
- 优先使用
note_id,如果没有则使用share_text,两个参数二选一,如都携带则以note_id为准。 - cursor: 分页游标,首次请求留空,翻页时传入上一次响应中返回的 cursor 值
- index: 评论索引,首次请求传 0,翻页时传入上一次响应中返回的 index 值
- pageArea: 折叠状态,默认 "UNFOLDED"(展开),翻页时传入上一次响应中返回的 pageArea 值
- sort_strategy: 排序策略
- "latest_v2": 按时间倒序(最新,默认使用)
- "like_count": 按点赞数排序(最热)
- "default": 默认排序(不推荐,翻页时会丢失评论或重复抓取评论)
返回:
- 评论数据对象,包含评论列表、分页游标等
翻页说明:
- 首次请求:cursor留空,index传0
- 翻页请求:传入上一次响应中返回的 cursor 和 index 和 pageArea 值
[English]
Purpose:
- Get comment list for a specified note, supports pagination and multiple sort strategies
Parameters:
- note_id: Note ID, e.g. "697c0eee000000000a03c308"
- share_text: Xiaohongshu sharing link (support APP and Web sharing link)
- Prefer to use
note_id, if not, useshare_text, one of the two parameters is required, if both are carried,note_idshall prevail. - cursor: Pagination cursor, leave empty for first request, pass cursor value from previous response for next page
- index: Comment index, pass 0 for first request, pass index value from previous response for next page
- pageArea: Fold status, default "UNFOLDED" (unfolded), pass pageArea value from previous response for next page
- sort_strategy: Sort strategy
- "latest_v2": Sort by time desc (latest, recommended default)
- "like_count": Sort by like_count
- "default": Sort by default (not recommended, may cause missing or duplicate comments when paginating)
Return:
- Comments data object, including comment list, pagination cursor, etc.
Pagination Guide:
- First request: leave cursor empty, pass index as 0
- Next page: pass cursor and index and pageArea values from previous response
[示例/Example]
note_id="697c0eee000000000a03c308" sort_strategy="latest_v2"
Imported from a validated TikHub OpenAPI document. Pricing must be reviewed before enabling.
Try 获取笔记评论列表/Get note comments
Test this model in the Sandbase Playground with your own prompts.
Open in PlaygroundRelated Models
获取创作者热点灵感列表/Get creator hot inspiration feedXiaohongshuapi获取创作者推荐灵感列表/Get creator inspiration feedXiaohongshuapi获取图文笔记详情/Get image note detailXiaohongshuapi获取笔记二级评论列表/Get note sub commentsXiaohongshuapi获取商品详情/Get product detailXiaohongshuapi获取商品推荐列表/Get product recommendationsXiaohongshuapi获取商品评论总览/Get product review overviewXiaohongshuapi获取商品评论列表/Get product reviewsXiaohongshuapi