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/successAl precio del proveedor
- Success rate
- —Aún no hay datos de tasa de éxitoAún no hay datos de tasa de éxito
- Latency p50
- ——
- Last verified
- 28 jul 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
Parámetros
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de consulta | ||||
page | entero | Opcional | Page number for pagination. | 1 |
sort | cadena | Opcional | 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 | cadena | Obligatorio | Search keyword. | 咖啡 |
noteTime | cadena | Opcional | 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 | cadena | Opcional | Note type filter. Available Values: - `_0`: General - `_1`: Video - `_2`: Normal One of: _0, _1, _2. | _0 |
- Parámetros de consulta
pageenteroOpcionalPage number for pagination.
Ejemplo:
1sortcadenaOpcionalSort 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.
Ejemplo:
generalkeywordcadenaObligatorioSearch keyword.
Ejemplo:
咖啡noteTimecadenaOpcionalNote 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.
noteTypecadenaOpcionalNote type filter. Available Values: - `_0`: General - `_1`: Video - `_2`: Normal One of: _0, _1, _2.
Ejemplo:
_0
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
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());La API de la pasarela está en versión preliminar; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a $0.02214/success, incluida la tarifa de servicio.