小红书 note_id 是什么,在哪里找?
小红书的 note_id 是笔记链接里 `/explore/` 或 `/discovery/item/` 后面那串 24 位十六进制编号。只有它在网页上打不开笔记,因为小红书还要一个令牌。这里的调用只给编号或给整条链接都行,12 积分,并给回一条能打开的链接。
在哪里
| 你手里有 | 长什么样 | 编号 |
|---|---|---|
| 地址栏的链接 | https://www.xiaohongshu.com/explore/6ac76250000000000a021233?xsec_token=… | /explore/ 和 ? 之间 |
| 网页版分享的链接 | https://www.xiaohongshu.com/discovery/item/6ac76250000000000a021233?… | /discovery/item/ 和 ? 之间 |
| App 分享的整段文字 | http://xhslink.com/… | 看不到,藏在短链接后面。把整段文字贴给调用就行 |
前 8 位代表什么
它们是一个时间:按十六进制读,就是从 1970 年起的秒数。我们在 2026-11-05 对比了 13 条笔记:10 条和笔记的 published_at 在同一分钟,另外 3 条早 2 到 14 小时。所以手里只有链接时,可以用它估笔记大概是什么时候的。这是我们的测量,不是小红书的说明,以后可能会变。
new Date(parseInt("6ac76250000000000a021233".slice(0, 8), 16) * 1000).toISOString()为什么只有编号打不开
2026-11-05 实测:未登录时,不带令牌的 /explore/<编号> 打开就是小红书的 404 页,用不用浏览器都一样。令牌就是链接里的 xsec_token;账号的作品列表不给它。所以粘贴时要留着整条链接。下面这个调用只给编号就够,返回的 url 带令牌。
一次真实的请求
curl https://api.socialtoai.com/v1/detail \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "platform": "xiaohongshu", "id": "6ac76250000000000a021233" }'{ "request_id": "req_00000000-0000-4000-8000-000000000001", "schema_version": "v1", "fetched_at": "2026-10-10T12:46:15.000Z", "action": "detail", "platform": "xiaohongshu", "status": "ok", "items": [ { "platform": "xiaohongshu", "id": "…", "ref": "…", "approx": [], "type": "content", "url": "https://example.com/…", "format": "image", "title": "…", "text": "…", "published_at": "2026-10-09T01:00:34.000Z", "author": { "id": "…", "username": "…", "name": "…", "verified": null, "followers": null }, "metrics": { "likes": 927, "comments": 122, "shares": 256, "collects": 59, "views": null, "reposts": null }, "images": ["https://example.com/…", "https://example.com/…"], "hashtags": ["…", "…"], "is_pinned": false } ], "unavailable": ["author.verified", "author.followers", "metrics.views", "metrics.reposts"], "warnings": [], "applied_params": { "id": "6ac76250000000000a021233" }, "cost_credits": 12, "billing": { "cost_credits": 12, "balance_credits": 88, "today_spend_credits": 12, "daily_limit_credits": null, "daily_remaining_credits": null, "display": "本次 12 积分(约 $0.04),余额 88 积分(约 $0.29)" }, "replayed": false}常见问题
note_id 和分享短链里的是一个东西吗?
不是。短链接把它藏起来了,跳转之后的链接里才有。把短链接或整段分享文字贴给调用,会自动解析。
只有编号能读评论吗?
能。评论调用接受编号或链接,每页 12 积分。
发布于:最近更新: