Call it
curl https://api.peume.com/v1/call/xiaohongshu-search \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"keyword": "your keyword"
}
}'const res = await fetch("https://api.peume.com/v1/call/xiaohongshu-search", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"keyword": "your keyword"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/xiaohongshu-search",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"keyword": "your keyword"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: xiaohongshu-search.
Parameters
date_rangestringFilters notes by publish time: any_time (no limit, the same as omitting it), last_24_hours (the past 24 hours), last_7_days (the past 7 days), last_30_days (the past month), last_6_months (the past six months) or last_1_year (the past year). These two values work in synchronous calls only. Keep the same value while paging. One of: any_time, last_1_year, last_24_hours, last_30_days, last_6_months, last_7_days.
any_time · last_1_year · last_24_hours · last_30_days · last_6_months · last_7_days
content_typestringFilters returned notes by content type, such as image/text or video. Use the allowed values listed for the current action. One of: all, image, video.
all · image · video
page_tokenstringPagination cursor for the comments, sub_comments, search, user_posts, search_users and hashtag actions: pass back the next_page_token value from a row of the previous response to fetch the next page; omit it to start from the first page.
sortstringSets the order of note lists in the search action: relevance, newest, most_liked, most_commented or most_collected. Use only the allowed values listed for the action. One of: most_collected, most_commented, most_liked, newest, relevance.
most_collected · most_commented · most_liked · newest · relevance
keywordRequiredstringSpecifies the query string used to search Xiaohongshu note content (e.g., "sensitive skin sunscreen") in the search action. Searches note text, not user IDs.
