userIdstring필수
A Xiaohongshu user ID or a profile URL containing /user/profile/.
https://api.sandbase.ai/v1/api/xiaohongshu/userGet a Xiaohongshu (RedNote) user profile from a user ID or supported profile URL. Use it to support creator discovery, account research, and reviewing a known profile before related content analysis.
출력이 여기에 표시됩니다
입력을 완료한 다음 Run을 클릭하세요.
Returns a Xiaohongshu (RedNote) user profile for one account. It needs a userId, which can be a user ID or a profile URL containing /user/profile/. The response includes the bio, follower and like totals, IP location, account type and live status.
fans, liked and collected totals over time by calling it on a schedule.curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/user" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"userId": "64b898310000000014037b21"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
userId | string | Yes | A Xiaohongshu user ID or a profile URL containing /user/profile/. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"atme_notes_num": 1,
"avatar_handle_entry_list": [],
"avatar_like_status": false,
"avatar_pendant": {
"current_user_pendant": false,
"current_user_pet": false
},
"banner_info": {
"bg_color": "b8a1b3",
"image": "http://sns-avatar-qc.rednotecdn.com/user_banner/1040g2k031qnj00er74005p5oj0ol6up…",
"like_status": false
},
"block_view_from_user": false,
"block_view_to_user": false,
"blocked": false,
"blocking": false,
"brand_account_info": {
"account_type_name": "企业账号",
"conversions": [
{
"icon": "https://picasso-static.xiaohongshu.com/fe-platform/fb51da952d69f3cc44a174ff85dcc…",
"id": "11",
"is_red_shop": false,
"is_shop": false,
"link": "xhsdiscover://message/userPublicGroupList?user_id=64b898310000000014037b21&usern…",
"name": "Group chat",
"sub_title": "View details"
}
],
"trade_type_first_name": ""
},
"collected": 3152959,
"collected_book_num": 0
}
| Field | Meaning |
|---|---|
desc | The profile bio text. Line breaks appear as \n. |
fans / follows | The number of followers and the number of accounts this user follows. |
liked / collected | Total likes and total saves this account has received on its content. |
interactions[] | Summary counters shown on the profile. Each row has type, name, count and is_private. When is_private is true, the user has hidden that list from view. |
gender | Numeric gender code. The sample value is 2. The response does not define the codes. |
ip_location | The location label shown on the profile, such as 湖南. |
brand_account_info.account_type_name | The account type label. The sample shows 企业账号 (enterprise account). |
images / imageb | Avatar image URLs. images is the smaller version and imageb is the larger version. |
banner_info.image | URL of the profile banner image. |
live.live_status / live.room_id / live.start_time | The live stream state, the room ID, and the start time as a millisecond timestamp. |
userId from the profile URL, where it follows /user/profile/. You can also paste the full profile URL.$0.021429 per successful call. Failed calls are not charged.
빌드를 시작하세요
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/user" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"userId": "64b898310000000014037b21"
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
userIdstring필수A Xiaohongshu user ID or a profile URL containing /user/profile/.
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
저장된 응답이 게시되지 않았습니다. Playground에서 API를 실행해 응답을 확인하세요.
더 살펴보기
| API | 가격 | 응답 |
|---|---|---|
Xiaohongshu | $0.021429 / 호출 | JSON |
Xiaohongshu | $0.01 / 호출 | JSON |
Xiaohongshu | $0.01 / 호출 | JSON |
Xiaohongshu | $0.01 / 호출 | JSON |
Xiaohongshu | $0.01 / 호출 | JSON |
Xiaohongshu | $0.01 / 호출 | JSON |
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/xiaohongshu/user에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.021429, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수: userId (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Xiaohongshu User Profile은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Xiaohongshu API 액세스를 별도로 신청할 필요는 없습니다.