Search Xiaohongshu notes by keyword
justoneapi.x.xiaohongshu-search-note-v2Searches Xiaohongshu (RedNote) notes by keyword with pagination plus sort, note-type, and publish-time filters.
- Price
- $0.02214/successAt provider cost
- Success rate
- —No success-rate data yetNo success-rate data yet
- Latency p50
- ——
- Last verified
- Jul 28, 2026Verified working
GEThttps://toolswitch.dev/v1/tools/justoneapi.x.xiaohongshu-search-note-v2?page=1&sort=general&keyword=%E5%92%96%E5%95%A1¬eType=_0Preview- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
page | integer | Optional | Page number for pagination. | 1 |
sort | string | Optional | Sort 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 |
keyword | string | Required | Search keyword. | 咖啡 |
noteTime | string | Optional | Note 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. | |
noteType | string | Optional | Note type filter. Available Values: - `_0`: General - `_1`: Video - `_2`: Normal One of: _0, _1, _2. | _0 |
- Query parameters
pageintegerOptionalPage number for pagination.
Example:
1sortstringOptionalSort 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.
Example:
generalkeywordstringRequiredSearch keyword.
Example:
咖啡noteTimestringOptionalNote 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.
noteTypestringOptionalNote type filter. Available Values: - `_0`: General - `_1`: Video - `_2`: Normal One of: _0, _1, _2.
Example:
_0
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
curl -X GET 'https://toolswitch.dev/v1/tools/justoneapi.x.xiaohongshu-search-note-v2?page=1&sort=general&keyword=%E5%92%96%E5%95%A1¬eType=_0' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/justoneapi.x.xiaohongshu-search-note-v2?page=1&sort=general&keyword=%E5%92%96%E5%95%A1¬eType=_0",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/justoneapi.x.xiaohongshu-search-note-v2?page=1&sort=general&keyword=%E5%92%96%E5%95%A1¬eType=_0", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.02214/success, including the service fee.