GET /v1/xiaohongshu/note/detail
Xiaohongshu Note Detail
stable · 2 credits per success
Returns title, body, author and engagement for a note id; optionally paginates comments. Empty payloads fail the quality gate and are not billed.
Request parameters
| Name | Type | In | Required | Description | Example |
|---|---|---|---|---|---|
| note_id | string | query | yes | 笔记 ID,形如 64f2a9c8…;试调可用 demo_note_ok | demo_note_ok |
| comment_limit | integer | query | no | 评论条数上限(with_comments=true 时生效) | 20 |
| with_comments | boolean | query | no | 是否附带翻页拉取评论 | false |
Response fields
| Field | Type | Description |
|---|---|---|
| id | string | 笔记 ID |
| title | string | 标题 |
| content | string | 正文 |
| author.id | string | 作者 ID |
| author.nickname | string | 作者昵称 |
| stats.likes | number | 点赞数 |
| stats.comments | number | 评论数 |
| stats.collects | number | 收藏数 |
| comments | array | 评论列表(with_comments=true 时填充) |
| degraded | boolean | 评论拉取降级标记 |
Errors
| code | HTTP | Meaning | Billed |
|---|---|---|---|
| 40001 | 400 | Invalid parameters | no |
| 40102 | 401 | Invalid or revoked API Key | no |
| 40201 | 402 | Insufficient credits | no |
| 40402 | 404 | Resource not found | no |
| 42201 | 422 | Quality gate failed | no |
| 42901 | 429 | Rate limit exceeded | no |
| 50401 | 504 | Upstream timeout | no |
| 50201 | 502 | Upstream error | no |
Billing
Success costs 2 credits. Any failure — including a 200 from upstream that fails the quality gate — costs 0.