搜索联想关键词
POST
/api/xhs/search_suggestion:::highlight red 📌
小红书接口在原有的字段基础上外套response_status
、response_body
、response_headers
,分别对应小红书返回的响应码
,响应体
,响应头
,其中response_body
内容字段与原有的保持一致。
:::
请求参数
Body 参数application/json
keyword
string
关键词
示例
{
"keyword": "周六加班"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
msg
string
必需
data
object
必需
search_cpl_id
string
必需
word_request_id
string
必需
sug_items
array [object {4}]
必需
示例
{
"code": 200,
"msg": "success",
"path": "/api/xhs/search_suggestion",
"data": {
"response_status": 200,
"response_body": {
"code": 1000,
"success": true,
"msg": "成功",
"data": {
"search_cpl_id": "8457901396ff49639f0ec410fb941c9f",
"word_request_id": "296f8c11-9348-4cba-af1e-bb28d069c1cb#1725887499552",
"sug_items": [
{
"search_type": "notes",
"type": "top_note",
"text": "周六加班幽默文案",
"highlight_flags": [
true,
true,
true,
true,
false,
false,
false,
false
]
},
{
"text": "周六加班文案",
"highlight_flags": [
true,
true,
true,
true,
false,
false
],
"search_type": "notes",
"type": "top_note"
},
{
"text": "周六加班朋友圈文案",
"highlight_flags": [
true,
true,
true,
true,
false,
false,
false,
false,
false
],
"search_type": "notes",
"type": "top_note"
},
{
"search_type": "notes",
"type": "top_note",
"text": "周六加班文案图片",
"highlight_flags": [
true,
true,
true,
true,
false,
false,
false,
false
]
},
{
"text": "周六加班表情包",
"highlight_flags": [
true,
true,
true,
true,
false,
false,
false
],
"search_type": "notes",
"type": "top_note"
},
{
"text": "周六加班文案高级",
"highlight_flags": [
true,
true,
true,
true,
false,
false,
false,
false
],
"search_type": "notes",
"type": "top_note"
},
{
"text": "周六加班文案搞笑",
"highlight_flags": [
true,
true,
true,
true,
false,
false,
false,
false
],
"search_type": "notes",
"type": "top_note"
},
{
"text": "周六加班不想去怎么办",
"highlight_flags": [
true,
true,
true,
true,
false,
false,
false,
false,
false,
false
],
"search_type": "notes",
"type": "top_note"
},
{
"text": "周六加班费怎么算",
"highlight_flags": [
true,
true,
true,
true,
false,
false,
false,
false
],
"search_type": "notes",
"type": "top_note"
},
{
"text": "周六加班通知",
"highlight_flags": [
true,
true,
true,
true,
false,
false
],
"search_type": "notes",
"type": "top_note"
}
]
}
},
"response_headers": {
"date": "Mon, 09 Sep 2024 13:11:39 GMT",
"content-type": "application/json; charset=utf-8",
"transfer-encoding": "chunked",
"connection": "keep-alive",
"alt-svc": "h3=\":443\"; ma=3600,quic=\":443\"; v=\"46,43,39\"; ma=3600",
"access-control-allow-credentials": "true",
"access-control-allow-origin": "https://www.xiaohongshu.com",
"request-id": "27b047d07b8e44e384796f52cb959d2a",
"x-kong-sign": "0",
"xhs-request-time": "0.074",
"content-encoding": "gzip",
"xhs-real-ip": "117.188.20.104"
}
}
}
最后修改时间: 2 个月前