Skip to content

Search notes

Search Xiaohongshu notes by keyword.

Inputs

keywordRequired · text

Keyword

Default:
pageRequired · integer

Page

Default: 1
sort_typeOptional · select

Sort

Default: general · Allowed: general, time_descending, popularity_descending
note_typeOptional · select

Note type

Default: 普通笔记 · Allowed: 普通笔记, 视频笔记
note_timeOptional · select

Time range

Default: 一周内 · Allowed: 一天内, 一周内, 半年内

Minimal call

estimate_collection
{
  "input": {
    "keyword": "防晒",
    "page": 1
  },
  "task_code": "xhs_search_notes_v1",
  "task_query": "搜索小红书上关于防晒的笔记"
}

Result and pagination

  • mode: page
  • data.pagedata.max_pages
  • 10 Credits per successful task; estimated 5–30 seconds.

Only the fields listed below are part of the stable result contract.

PathTypeDescription
meta.request_idstringAsklear request identifier for tracing.
meta.api_namestringExecuted collection operation name.
meta.latency_msintegerCollection execution latency in milliseconds.
meta.credits_chargedintegerAsklear user-side Credits settled for this task after completion.
data.entitystringResponse entity type.
data.keywordstringThe submitted search keyword.
data.pageintegerCurrent result page.
data.max_pagesintegerNext-page hint; request the next page while items continue to be returned.
data.item_countintegerNumber of items in this response page.
data.itemsarray<object>Search result notes for this page.
data.items[].note_idstringNote identifier.
data.items[].titlestringNote title.
data.items[].descriptionstringNote description or excerpt.
data.items[].note_typestringNote type.
data.items[].publish_timeintegerPublish timestamp.
data.items[].liked_countintegerLike count.
data.items[].collected_countintegerCollection count.
data.items[].comments_countintegerComment count.
data.items[].imagesarray<object>Images attached to the note.
data.items[].images[].file_idstringImage file identifier.
data.items[].images[].urlstringImage URL.
data.items[].images[].large_urlstringLarge image URL, when supplied.
data.items[].images[].widthintegerImage width in pixels.
data.items[].images[].heightintegerImage height in pixels.
data.items[].authorobjectNote author summary.
data.items[].author.user_idstringAuthor user identifier.
data.items[].author.red_idstringAuthor platform identifier.
data.items[].author.nicknamestringAuthor nickname.
data.items[].author.avatarstringAuthor avatar URL.
data.items[].author.verifiedbooleanWhether the author is verified.
data.items[].author.verify_typeintegerVerification type code.