RedNote Note Search v2
Searches Xiaohongshu (RedNote) notes by keyword with pagination plus sort, note-type, and publish-time filters. Use it to support topic research, content discovery, and monitoring keyword-related posts.
/v1/xiaohongshu/search_note_v2
$0.03
- Price
- $0.03 per successful call, Failed calls are free
- Endpoint ID
xiaohongshu.search_note_v2
Parameters
-
keywordstring RequiredSearch keyword.
Example
咖啡 -
pageinteger OptionalPage number for pagination.
Example
1 -
sortstring OptionalSort order for the result set.
Available Values:
general: Generalpopularity_descending: Popularity Descendingtime_descending: Time Descendingcomment_descending: Comment Descendingcollect_descending: Collect Descending
Example
general -
note_typestring OptionalNote type filter.
Available Values:
_0: General_1: Video_2: Normal
Example
_0 -
note_timestring OptionalNote publish time filter. Results may include notes published outside the selected time range.
Available Values:
ONE_DAY: Within one dayONE_WEEK: Within a weekHALF_YEAR: Within half a year
Example
ONE_DAY
Code samples
curl -G "https://api.mofa-ai.com/v1/xiaohongshu/search_note_v2" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'keyword=咖啡' \
--data-urlencode 'page=1' \
--data-urlencode 'sort=general' \
--data-urlencode 'note_type=_0' \
--data-urlencode 'note_time=ONE_DAY'
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/xiaohongshu/search_note_v2",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"keyword": "咖啡",
"page": "1",
"sort": "general",
"note_type": "_0",
"note_time": "ONE_DAY",
},
timeout=60,
)
body = resp.json()
if body["success"]:
print(body["cost_usd"], body["data"])
else:
print(body["error"], body["message"])
const url = new URL("https://api.mofa-ai.com/v1/xiaohongshu/search_note_v2");
url.search = new URLSearchParams({
keyword: "咖啡",
page: "1",
sort: "general",
note_type: "_0",
note_time: "ONE_DAY",
});
const resp = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.MOFA_API_KEY}` },
});
const body = await resp.json();
if (body.success) console.log(body.cost_usd, body.data);
else console.error(body.error, body.message);
Example response
Request parameters {"page": "1", "sort": "general", "keyword": "咖啡", "note_time": "ONE_DAY", "note_type": "_0"}
{
"success": true,
"code": 0,
"message": "success",
"request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
"endpoint": "xiaohongshu.search_note_v2",
"cost_usd": 0.03,
"data": {
"code": 0,
"data": {
"items": [
{
"note": {
"id": "6aefb903000000000e024d59",
"…": "+12",
"desc": "超高性价比咖啡液 Tims咖啡液,均价0.5 18克大容量,满足一整天的咖啡需求 追求性价比学生党必备 #咖啡液 #黑",
"liked": false,
"niced": false,
"geo_info": {
"distance": ""
},
"collected": false,
"has_music": false,
"nice_count": 0,
"click_score": 4.694562085205689e-05,
"images_list": [
{
"url": "https://sns-na-i6.xhscdn.com/1040g0083279phprfmq004bi1fb1k2b…",
"width": 1080,
"fileid": "1040g0083279phprfmq004bi1fb1k2b5eiucsl70",
"height": 1920,
"original": "",
"trace_id": "1040g0083279phprfmq004bi1fb1k2b5eiucsl70",
"url_size_large": "https://sns-na-i6.xhscdn.com/1040g0083279phprfmq004bi1fb1k2b…",
"need_load_original_image": false
}
],
"liked_count": 0,
"comments_count": 0,
"debug_info_str": "",
"collected_count": 0,
"corner_tag_info": [
{
"icon": "",
"text": "RAzCxtyHPNf2pkfNQR0933BL72Kksnj/uSSJtTQkgcKwsc/KZlIw5mq0gt4e…",
"type": "ubt_sig_token",
"style": 0,
"text_en": "",
"location": -1
},
"… +1"
],
"interaction_area": {
"text": "0",
"type": 1,
"status": false
},
"last_update_time": 0,
"cover_image_index": 0,
"extract_text_enabled": 0,
"advanced_widgets_groups": {
"groups": [
{
"mode": 1,
"fetch_types": [
"guos_test",
"… +38"
]
},
"… +1"
]
}
},
"model_type": "note",
"mix_track_id": "NOTE__6aefb903000000000e024d59__2h4muojrw6zll0cnbe7um__咖啡",
"new_help_style": false
},
"… +19"
],
"can_cut": false,
"taxonomy1": "5ab094be481d26b8ef9045f1",
"extra_info": {
"atmosphere_v3_enable": "0"
},
"query_type": 0,
"request_dqa": 0,
"query_intent": {
"goodsIntent": 3,
"low_supply_intent": false,
"search_ask_intent": true
},
"strategy_info": {
"query_can_guide_to_feed": true,
"query_average_impression_count": 19
},
"ai_mode_enable": false,
"cur_cut_number": 0,
"is_broad_query": true,
"service_status": "{\"filter\":\"not_required\",\"note\":\"success\",\"onebox\":\"not_requ…",
"show_single_col": false,
"query_debug_info": {
"is_forbidden": false
},
"search_request_id": "55b14e5ba89f014d",
"request_dqa_instant": false,
"video_intent_grade_v3": 1,
"search_dqa_new_page_exp": 1,
"search_pull_down_opt_exp": 1,
"dqa_authorized_user_by_shared": false
},
"message": null,
"requestId": "249dc6ce89604d8ab743acc2c67413ee",
"recordTime": "2026-11-08T07:57:42.056713723",
"requestParams": {
"body": null,
"query": {
"page": "1",
"sort": "general",
"keyword": "咖啡",
"noteTime": "ONE_DAY",
"noteType": "_0"
}
}
}
}
Try it
Sign in to call this endpoint from this page. Successful calls are billed to your balance, failed calls are free, and new accounts get $0.50 of trial credit.
More RedNote endpoints
-
Ask Dots AI
$0.10Queries Xiaohongshu (RedNote) Ask Dots AI with a keyword question. Use it to retrieve an AI answer for topic research and question exploration.
/v1/xiaohongshu/ask_dots_v1
-
Hot Search
$0.03Searches Xiaohongshu (RedNote) hot-content entries with optional keyword, content-category path, pagination, ranking metric, and time-range controls. Use it…
/v1/xiaohongshu/hot_search_v1
-
Note Search v4
$0.04Searches Xiaohongshu (RedNote) notes through the mobile-app search flow with pagination, sorting, note-type, and time filters. Use it to support iterative to…
/v1/xiaohongshu/search_note_v4
-
User Search
$0.03Searches Xiaohongshu (RedNote) users by keyword with page-based pagination. Use it to support creator discovery, account research, and finding profiles relat…
/v1/xiaohongshu/search_user_v2
-
User Published Notes
$0.03Retrieves notes published by a Xiaohongshu (RedNote) user, accepting a user ID or supported profile URL and a cursor for pagination. Use it to support creato…
/v1/xiaohongshu/get_user_note_list_v4
-
Note Details v1
$0.03Retrieves Xiaohongshu (RedNote) details for a note identified by a note ID or supported explore URL. Use it to perform direct note lookup and content review…
/v1/xiaohongshu/get_note_detail_v1
-
Note Details v6
$0.03Retrieves Xiaohongshu (RedNote) video-note details by note ID. Use it to look up and process a known video note.
/v1/xiaohongshu/get_note_detail_v6
-
Note Comments
$0.03Retrieves comments for a Xiaohongshu (RedNote) note with cursor pagination and normal, latest, or like-count sorting. Use it to support feedback review, disc…
/v1/xiaohongshu/get_note_comment_v2
-
Comment Replies
$0.03Retrieves replies to a specific Xiaohongshu (RedNote) note comment with cursor pagination. Use it to inspect threaded discussions and continue through reply…
/v1/xiaohongshu/get_note_sub_comment_v2
-
User Profile
$0.03Retrieves a Xiaohongshu (RedNote) user profile from a user ID or supported profile URL. Use it to support creator discovery, account research, and reviewing…
/v1/xiaohongshu/get_user_v3
-
Keyword Suggestions
$0.03Returns Xiaohongshu (RedNote) search keyword suggestions for a submitted seed term. Use it to expand query sets, refine content-research searches, and plan S…
/v1/xiaohongshu/search_recommend_v1
-
Topic Note List
$0.03Retrieves Xiaohongshu (RedNote) notes associated with a topic ID, with hot or latest sorting and cursor pagination. Use it to support topic content discovery…
/v1/xiaohongshu/get_topic_note_list_v1
-
Share Link Resolution
$0.03Resolve a supported Xiaohongshu (RedNote) short share link and return its public redirect URL. Use it to expand shared links before subsequent Xiaohongshu co…
/v1/xiaohongshu/share_url_transfer_v1