Call it
curl https://api.peume.com/v1/call/search-xiaohongshu-notes-by-keyword-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"keyword": "your keyword",
"page": 1,
"sort": "general",
"noteType": "_0"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-xiaohongshu-notes-by-keyword-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"keyword": "your keyword",
"page": 1,
"sort": "general",
"noteType": "_0"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-xiaohongshu-notes-by-keyword-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"keyword": "your keyword",
"page": 1,
"sort": "general",
"noteType": "_0"
}
},
)
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: search-xiaohongshu-notes-by-keyword-2.
Parameters
keywordRequiredstringSearch keyword.
pageintegerPage number for pagination.
Example: 1
sortstringSort order for the result set. Available Values: - `general`: General - `popularity_descending`: Popularity Descending - `time_descending`: Time Descending - `comment_descending`: Comment Descending - `collect_descending`: Collect Descending One of: general, popularity_descending, time_descending, comment_descending, collect_descending.
general · popularity_descending · time_descending · comment_descending · collect_descending
Example: general
noteTypestringNote type filter. Available Values: - `_0`: General - `_1`: Video - `_2`: Normal One of: _0, _1, _2.
_0 · _1 · _2
Example: _0
noteTimestringNote publish time filter. Results may include notes published outside the selected time range. Available Values: - `ONE_DAY`: Within one day - `ONE_WEEK`: Within a week - `HALF_YEAR`: Within half a year One of: ONE_DAY, ONE_WEEK, HALF_YEAR.
ONE_DAY · ONE_WEEK · HALF_YEAR
Other ways to do it
Same job, other sources, cheapest first.
