Xiaohongshu/小红书
搜索笔记
POST
https://api.getoneapi.com/api/xiaohongshu/search_note请求参数
Header 参数
Authorization
string
必需
在 Header 添加参数 Authorization,其值为在 Bearer 之后拼接 apikey
默认值:
Bearer YOUR_API_KEY
Content-Type
string
必需
默认值:
application/json
Body 参数
application/jsonkeyword
string
关键词
必需
page
number
页数
必需
从1开始
默认值:
1
sort
enum<string>
排序
必需
枚举值:
general
综合
hot
最热
new
最新
comment
最多评论
collect
最多收藏
默认值:
general
noteType
enum<string>
笔记类型
必需
枚举值:
all
不限
video
视频
normal
图文
默认值:
all
noteTime
enum<string>
发布时间
可选
不传默认不限
枚举值:
one_day
一天内
one_week
一周内
half_year
半年内
示例
{
"keyword" : "",
"page" : 1,
"sort" : "general",
"noteType" : "all",
"noteTime" : ""
}返回响应
响应 200
application/jsoncode
integer
必需
message
string
必需
data
object
必需
示例
{
"code" : 200,
"message" : "success",
"data" : { }
}请求示例代码
替换 YOUR_API_KEY、参数占位符与请求数据后使用。第三方客户端需先安装对应依赖。
curl --globoff --request POST 'https://api.getoneapi.com/api/xiaohongshu/search_note' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"keyword" : "",
"page" : 1,
"sort" : "general",
"noteType" : "all",
"noteTime" : ""
}'