- MoreAPI接口说明
- 更新记录
- 抖音API
- 获取视频详情POST
- 获取视频详情 V3POST
- 获取视频详情V4POST
- 获取用户信息POST
- 获取用户信息 _V2POST
- 获取用户信息 _V3POST
- 获取用户信息 _V4POST
- 获取直播间信息与视频流直链POST
- 获取视频一级评论POST
- 获取视频子评论POST
- 综合搜索POST
- 获取开放直播间用户列表POST
- 搜索话题POST
- 获取话题视频POST
- 获取视频弹幕POST
- 搜索用户POST
- 搜索用户V2POST
- 搜索用户V3POST
- 搜索直播用户POST
- 搜索直播用户V2POST
- 获取视频短连接POST
- 生成视频抖音码POST
- 获取用户主页发布POST
- 获取直播间商品列表POST
- 搜索视频POST
- 搜索音乐POST
- 获取音乐详情POST
- 获取话题详情POST
- 获取音乐相关视频POST
- 搜索视频V2POST
- 获取用户最新作品V2POST
- 获取用户合集POST
- 获取合集视频列表POST
- 搜索用户指定作品POST
- 用户喜欢的作品POST
- 搜索长尾关键词POST
- 热点讨论POST
- 获取短剧详细信息POST
- 获取短剧视频列表POST
- 获取用户短剧集POST
- 用户橱窗销售信息POST
- 获取合集信息POST
- TikTok
- Lemon8
- 快手API
- 小红书API
- 微博API
- 哔哩哔哩API
- 头条 | 西瓜 API
- 榜单API
- youtube
- cookie池
- 创作者API
获取用户信息
正式环境
正式环境
POST
/api/xhs/user_detail
📌
response_status
、response_body
、response_headers
,分别对应小红书返回的响应码
,响应体
,响应头
,其中response_body
内容字段与原有的保持一致。
请求参数
Header 参数
Cookie
string
可选
Body 参数application/json
user_id
string
必需
share_text
string
必需
示例
{
"user_id": "638d73a1000000001f0165ef",
"share_text": "https://www.xiaohongshu.com/user/profile/638d73a1000000001f0165ef?xhsshare=CopyLink&appuid=647478850000000012036771&apptime=1698893766"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/xhs/user_detail' \
--header 'Content-Type: application/json' \
--data-raw '{
"user_id":"638d73a1000000001f0165ef",
"share_text":"https://www.xiaohongshu.com/user/profile/638d73a1000000001f0165ef?xhsshare=CopyLink&appuid=647478850000000012036771&apptime=1698893766"
}'
返回响应
🟢200成功
application/json
Body
code
integer
MoreAPI响应码
msg
string
必需
path
string
必需
data
object
MoreAPI返回内容
response_status
integer
小红书响应码
response_body
object
小红书响应体
response_headers
object
小红书响应头
示例
{
"code": 200,
"msg": "success",
"path": "/api/xhs/user_detail",
"data": {
"response_status": 200,
"response_body": {
"code": 0,
"success": true,
"msg": "成功",
"data": {
"tags": [
{
"icon": "http://ci.xiaohongshu.com/icons/user/gender-female-v1.png",
"name": "巨蟹座",
"tagType": "info"
},
{
"name": "香港城市大学",
"tagType": "college"
}
],
"tab_public": {
"collectionNote": {
"count": 0,
"display": false,
"lock": false
},
"collectionBoard": {
"display": false,
"lock": false,
"count": 0
},
"collection": false
},
"extra_info": {
"fstatus": "none",
"blockType": "DEFAULT"
},
"result": {
"success": true,
"code": 0,
"message": "success"
},
"basic_info": {
"desc": "171|51 喜欢漂亮的衣服\n24🇭🇰留学| entj 分享日常|好物\n📮644010845@qq.com",
"imageb": "https://sns-avatar-qc.xhscdn.com/avatar/644290e61300c5cf9d360740.jpg?imageView2/2/w/540/format/webp",
"nickname": "喜欢草莓的CC",
"images": "https://sns-avatar-qc.xhscdn.com/avatar/644290e61300c5cf9d360740.jpg?imageView2/2/w/360/format/webp",
"red_id": "5329579021",
"gender": 1,
"ip_location": "中国香港"
},
"interactions": [
{
"name": "关注",
"count": "74",
"type": "follows"
},
{
"type": "fans",
"name": "粉丝",
"count": "2879"
},
{
"count": "6964",
"type": "interaction",
"name": "获赞与收藏"
}
]
}
},
"response_headers": {
"date": "Mon, 09 Sep 2024 13:07:45 GMT",
"content-type": "application/json; charset=utf-8",
"alt-svc": "h3=\":443\"; ma=2592000, h3-29=\":443\"; ma=2592000, h3-27=\":443\"; ma=2592000, h3-Q050=\":443\"; ma=2592000, h3-Q046=\":443\"; ma=2592000, h3-Q043=\":443\"; ma=2592000, h3-Q039=\":443\"; ma=2592000, quic=\":443\"; ma=2592000; v=\"39,43,46\"",
"transfer-encoding": "chunked",
"connection": "keep-alive",
"server": "nginx",
"access-control-allow-credentials": "true",
"access-control-allow-origin": "https://www.xiaohongshu.com",
"cat-msg-id": "karen-gateway-snsdefault-0a0ff5d3.42553-479410-3196349",
"request-id": "e5280998ba9444c2b9e6d27a8fc6433d",
"x-kong-sign": "0",
"xhs-request-time": "0.175",
"content-encoding": "gzip",
"xhs-real-ip": "42.94.76.59"
}
}
}
修改于 2024-09-25 17:15:56