搜索小红书笔记
redbook.note.search按关键词、时间和类型发现笔记;每次只取一页,不自动翻页。
用 Agent 搜索和阅读小红书笔记请求参数
| 参数 | 类型 | 说明 |
|---|---|---|
keyword必填 | string | 搜索关键词 最小长度: 1最多 200 个字符 |
noteType | string | 全部、视频或图文笔记 ALLVIDEO_NOTENORMAL_NOTE默认: "ALL" |
page | integer | 页码,从 1 开始 范围 1–100默认: 1 |
search_id | string | 翻页时传回的搜索 ID 最多 4096 个字符默认: "" |
search_session_id | string | 翻页时传回的会话 ID 最多 4096 个字符默认: "" |
sortType | string | 综合、点赞、时间、评论或收藏排序 generalpopularity_descendingtime_descendingcomment_descendingcollect_descending默认: "general" |
timeFilter | string | 全部、一天、一周或半年 ALLONE_DAYONE_WEEKHALF_YEAR默认: "ALL" |
返回内容
业务数据位于execution.result.data。执行记录同时返回状态、实际费用和 Anyuse 请求 ID。
| 参数 | 类型 | 说明 |
|---|---|---|
has_more必填 | boolean | null | has_more |
items必填 | array | null | items |
items[].note_id必填 | string | null | items[].note_id |
items[].text必填 | string | null | items[].text |
items[].title必填 | string | null | items[].title |
items[].url必填 | string | null | items[].url |
items[].author | object | 作者 ID、昵称、头像与认证信息。 |
items[].author.avatar_url | string | items[].author.avatar_url |
items[].author.nickname | string | items[].author.nickname |
items[].author.red_id | string | items[].author.red_id |
items[].author.user_id | string | items[].author.user_id |
items[].author.verification_type | number | string | items[].author.verification_type |
items[].author.verified | boolean | number | items[].author.verified |
items[].images | array | 图片与封面,含链接和尺寸;媒体链接可能过期。 |
items[].images[].height | number | string | items[].images[].height |
items[].images[].large_url | string | items[].images[].large_url |
items[].images[].original_url | string | items[].images[].original_url |
items[].images[].url | string | items[].images[].url |
items[].images[].width | number | string | items[].images[].width |
items[].published_at_seconds | number | string | 发布时间,Unix 秒。 |
items[].statistics | object | 点赞、收藏、评论与分享数;保留上游数字或显示文本。 |
items[].statistics.collect_count | number | string | items[].statistics.collect_count |
items[].statistics.comment_count | number | string | items[].statistics.comment_count |
items[].statistics.like_count | number | string | items[].statistics.like_count |
items[].statistics.share_count | number | string | items[].statistics.share_count |
items[].type | string | items[].type |
items[].updated_at_ms | number | string | 更新时间,Unix 毫秒。 |
items[].video | object | 视频信息与播放流;duration_seconds 为秒,流内 duration_ms 为毫秒。 |
items[].video.cover_url | string | items[].video.cover_url |
items[].video.duration_seconds | number | string | items[].video.duration_seconds |
items[].video.duration_text | string | items[].video.duration_text |
items[].video.first_frame_url | string | items[].video.first_frame_url |
items[].video.height | number | string | items[].video.height |
items[].video.id | string | items[].video.id |
items[].video.streams | array | items[].video.streams |
items[].video.streams[].audio_codec | string | items[].video.streams[].audio_codec |
items[].video.streams[].avg_bitrate | number | string | items[].video.streams[].avg_bitrate |
items[].video.streams[].backup_urls | array | items[].video.streams[].backup_urls |
items[].video.streams[].codec | string | items[].video.streams[].codec |
items[].video.streams[].duration_ms | number | string | items[].video.streams[].duration_ms |
items[].video.streams[].format | string | items[].video.streams[].format |
items[].video.streams[].fps | number | string | items[].video.streams[].fps |
items[].video.streams[].height | number | string | items[].video.streams[].height |
items[].video.streams[].quality_type | string | items[].video.streams[].quality_type |
items[].video.streams[].size_bytes | number | string | items[].video.streams[].size_bytes |
items[].video.streams[].url | string | items[].video.streams[].url |
items[].video.streams[].video_codec | string | items[].video.streams[].video_codec |
items[].video.streams[].width | number | string | items[].video.streams[].width |
items[].video.url | string | items[].video.url |
items[].video.width | number | string | items[].video.width |
page必填 | integer | page |
next_page | integer | null | 上游返回的下一页页码;缺失时为 null,不代表已到末页 |
search_id | string | null | 上游返回的搜索 ID,翻页时传回 |
search_session_id | string | null | 上游返回的搜索会话 ID,翻页时传回 |