Search Xiaohongshu notes
redbook.note.searchUse the Xiaohongshu search API to find one page of public notes by keyword, time and type. AI agents can request subsequent pages with the returned pagination fields.
Xiaohongshu API for AI agentsRequest parameters
| Parameter | Type | Description |
|---|---|---|
keywordRequired | string | Search keyword Minimum length: 1Up to 200 characters |
noteType | string | All posts, videos or image/text posts ALLVIDEO_NOTENORMAL_NOTEDefault: "ALL" |
page | integer | Page number, starting at 1 Range 1–100Default: 1 |
search_id | string | Search ID returned by service for pagination Up to 4096 charactersDefault: "" |
search_session_id | string | Session ID returned by service for pagination Up to 4096 charactersDefault: "" |
sortType | string | Sort by relevance, likes, time, comments or saves generalpopularity_descendingtime_descendingcomment_descendingcollect_descendingDefault: "general" |
timeFilter | string | All time, one day, one week or six months ALLONE_DAYONE_WEEKHALF_YEARDefault: "ALL" |
Response data
Business data is in execution.result.data. Executions also include status, final cost and an Anyuse request ID.
| Parameter | Type | Description |
|---|---|---|
has_moreRequired | boolean | null | has_more |
itemsRequired | array | null | items |
items[].note_idRequired | string | null | items[].note_id |
items[].textRequired | string | null | items[].text |
items[].titleRequired | string | null | items[].title |
items[].urlRequired | string | null | items[].url |
items[].author | object | Author ID, nickname, avatar and verification. |
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 | Images and covers with URLs and dimensions; media links may expire. |
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 | Publication time in Unix seconds. |
items[].statistics | object | Like, save, comment and share counts; source numbers or display text are preserved. |
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 | Update time in Unix milliseconds. |
items[].video | object | Video information and playback streams; duration_seconds is in seconds and stream duration_ms in milliseconds. |
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 |
pageRequired | integer | page |
next_page | integer | null | Next page number returned by the service; null means unavailable, not the end of results |
search_id | string | null | Search ID returned by the source; pass it for the next page |
search_session_id | string | null | Search session ID returned by the source; pass it for the next page |