检查扫码结果
POST
/api/xhs/check_login/:::highlight red 📌
小红书接口在原有的字段基础上外套response_status
、response_body
、response_headers
,分别对应小红书返回的响应码
,响应体
,响应头
,其中response_body
内容字段与原有的保持一致。
:::
请求参数
Header 参数
cookie
string
必需
获取二维码接口返回的cookie
示例值:
acw_tc=589f8d427ecaeafa74bc0a987fd1ef94d6d96241650476b23065ff11995b7204; abRequestId=baff7852-8ac0-591c-b09b-e7d4899d2470; webBuild=4.34.0; xsecappid=xhs-pc-web; a1=191f5cceacazwisqkibqu638y3it4k30l4aqsp8l930000182867; webId=826c8945180ebb01ac37bf883a6ce5fb; websectiga=82e85efc5500b609ac1166aaf086ff8aa4261153a448ef0be5b17417e4512f28; sec_poison_id=feb6b3f9-3923-4b5e-8c61-95fba3018c9e; web_session=030037a1d5881109e513299a9e214a1e227adc; gid=yjyi2SSiy21Syjyi2SSd04UYS0uE3MAT3DA701jKqYvq3Aq894Tq8M888yYJYKW84KiYfSyy; unread={%22ub%22:%2266c44491000000001d039997%22%2C%22ue%22:%2266cfe9af000000001d03b3b1%22%2C%22uc%22:15}
Body 参数application/json
qr_id
string
必需
登录二维码返回的qr_id
code
string
必需
登录二维码返回的code
示例
{
"qr_id": "",
"code": ""
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
msg
string
必需
path
string
必需
data
object
必需
response_status
integer
必需
response_body
object
必需
response_headers
object
必需
示例
{
"code": 200,
"msg": "success",
"path": "/api/xhs/check_login/",
"data": {
"response_status": 200,
"response_body": {
"msg": "成功",
"data": {
"code_status": 2,
"login_info": {
"user_id": "60xxxxxxxx00000001xxxxxx73",
"session": "040069b1bc5dbxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx76d9e730",
"secure_session": "Xd4113session.040069b1bc5dbxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx76d9e730"
}
},
"code": 0,
"success": true,
"cookie": "acw_tc=589f8d427ecaeafa74bc0a987fd1ef94d6d96241650476b23065ff11995b7204; abRequestId=baff7852-8ac0-591c-b09b-e7d4899d2470; webBuild=4.34.0; xsecappid=xhs-pc-web; a1=191f5cceacazwisqkibqu638y3it4k30l4aqsp8l930000182867; webId=826c8945180ebb01ac37bf883a6ce5fb; websectiga=82e85efc5500b609ac1166aaf086ff8aa4261153a448ef0be5b17417e4512f28; sec_poison_id=feb6b3f9-3923-4b5e-8c61-95fba3018c9e; web_session=040069b1bc5dbxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx76d9e730; gid=yjyi2SSiy21Syjyi2SSd04UYS0uE3MAT3DA701jKqYvq3Aq894Tq8M888yYJYKW84KiYfSyy; unread={\"ub\":\"66c44491000000001d039997\",\"ue\":\"66cfe9af000000001d03b3b1\",\"uc\":15}"
},
"response_headers": {
"date": "Sun, 15 Sep 2024 13:20:28 GMT",
"content-type": "application/json; charset=utf-8",
"content-length": "241",
"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",
"cat-msg-id": "karen-gateway-snsdefault-0a0fc655.65145-479557-386468",
"request-id": "7de2181b55d548c6830aed32c402cb1b",
"set-cookie": "web_session=040069b1bc5db857be257597d3344b76d9e730; Path=/; Domain=xiaohongshu.com; Max-Age=31536000; HttpOnly; Secure",
"x-kong-sign": "0",
"xhs-request-time": "0.160",
"xhs-real-ip": "183.95.62.176"
}
}
}
最后修改时间: 1 个月前