short_idstring필수
User Short ID
https://api.sandbase.ai/v1/api/douyin/web/user-profile-by-short-idRetrieves Douyin web user profile details using an account short ID. Returns profile metadata, title information, and engagement counters.
[
{
"data": {
"data": {
"auth_cert_info": "",
"data": [],
"enter_mode": 0,
"enter_room_id": "",
"qrcode_url": "",
"room_status": 2,
"shark_decision_conf": "",
"similar_rooms": [],
"user": {
"avatar_thumb": {
"url_list": [
"https://p11.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_58421a13a73dd36d11611cbc679069e2.jpeg?from=3067671334",
"https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_58421a13a73dd36d11611cbc679069e2.jpeg?from=3067671334",
"https://p26.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_58421a13a73dd36d11611cbc679069e2.jpeg?from=3067671334"
]
},
"follow_info": {
"follow_status": 0,
"follow_status_str": "0"
},
"foreign_user": 0,
"id_str": "3781946367821918",
"nickname": "wanggggchen",
"open_id_str": "",
"sec_uid": "MS4wLjABAAAA9VpPOwQ4lckVN3BVC3KzqITqf_2ohUtDxeFQQFgbLy2BwOsROlX_ba2EVd_NUAIy"
}
},
"extra": {
"now": 1787219000195
},
"status_code": 0
}
}
]예시를 선택하면 입력값과 결과가 플레이그라운드에 로드됩니다.
This API takes a Douyin account short ID and returns the live room data linked to that account, along with a short user block. The response includes the room title, room status, and the account's nickname and sec_uid.
sec_uid so you can call other user endpoints.room_status and the room status value.curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/user-profile-by-short-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"short_id": "2941976066"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
short_id | string | Yes | User Short ID |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"auth_cert_info": "",
"data": [
{
"AnchorABMap": {},
"admin_user_ids": [],
"admin_user_ids_str": [],
"admin_user_open_ids": [],
"admin_user_open_ids_str": [],
"fansclub_msg_style": 0,
"follow_msg_style": 0,
"gift_msg_style": 0,
"has_commerce_goods": false,
"id_str": "7561789775678769966",
"like_count": 0,
"linker_map": {}
}
],
"enter_mode": 0,
"enter_room_id": "7561789775678769966",
"partition_road_map": {},
"qrcode_url": "",
"room_status": 2,
"shark_decision_conf": "",
"similar_rooms": [],
"user": {
"avatar_thumb": {
"url_list": [
"https://p11.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_3beaaeb52d3…"
]
},
"follow_info": {
"follow_status": 0,
"follow_status_str": "0"
},
"foreign_user": 0,
"id_str": "92769419069",
"nickname": "抖音作者助手",
"open_id_str": "",
"sec_uid": "MS4wLjABAAAA-hAqMwU4p1xu2AlQSM4R38D7DhTKGOk6d-zYU_o0LxY"
}
},
"extra": {
"now": 1793691154702
},
"status_code": 0
}
| Field | Meaning |
|---|---|
data.user.nickname | Display name of the account. |
data.user.sec_uid | Encrypted user ID of the account. Other Douyin user endpoints accept this kind of ID. |
data.user.id_str | Numeric user ID of the account, returned as a string. |
data.user.avatar_thumb.url_list[] | Image URLs for the account's 100x100 avatar. Each entry points to a different image host. |
data.user.follow_info.follow_status | Follow state between the request context and the account. It is 0 in this response. |
data.enter_room_id | ID of the live room linked to the account. |
data.room_status | Numeric status of the live room. It is 2 in this response. |
data.data[].title | Title of the live room. |
data.data[].id_str | ID of the live room, returned as a string. It matches data.enter_room_id here. |
data.data[].like_count / data.data[].user_count_str | Like count and viewer count for the live room. Both are 0 in this response. |
short_id as a string, for example 2941976066.data.user.sec_uid value can be passed to Douyin User Profile (Web) to get a fuller profile.sec_uid to list the account's videos.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
빌드를 시작하세요
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/user-profile-by-short-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"short_id": "example"
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
short_idstring필수User Short ID
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
[
{
"data": {
"data": {
"auth_cert_info": "",
"data": [],
"enter_mode": 0,
"enter_room_id": "",
"qrcode_url": "",
"room_status": 2,
"shark_decision_conf": "",
"similar_rooms": [],
"user": {
"avatar_thumb": {
"url_list": [
"https://p11.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_58421a13a73dd36d11611cbc679069e2.jpeg?from=3067671334",
"https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_58421a13a73dd36d11611cbc679069e2.jpeg?from=3067671334",
"https://p26.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_58421a13a73dd36d11611cbc679069e2.jpeg?from=3067671334"
]
},
"follow_info": {
"follow_status": 0,
"follow_status_str": "0"
},
"foreign_user": 0,
"id_str": "3781946367821918",
"nickname": "wanggggchen",
"open_id_str": "",
"sec_uid": "MS4wLjABAAAA9VpPOwQ4lckVN3BVC3KzqITqf_2ohUtDxeFQQFgbLy2BwOsROlX_ba2EVd_NUAIy"
}
},
"extra": {
"now": 1787219000195
},
"status_code": 0
}
}
]더 살펴보기
| API | 가격 | 응답 |
|---|---|---|
Douyin | $0.001 / 호출 | JSON |
Douyin | $0.001 / 호출 | JSON |
Douyin | $0.001 / 호출 | JSON |
Douyin | $0.001 / 호출 | JSON |
Douyin | $0.001 / 호출 | JSON |
Douyin | $0.03 / 호출 | JSON |
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/douyin/web/user-profile-by-short-id에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.001, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수: short_id (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Douyin User Profile by Short ID은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Douyin API 액세스를 별도로 신청할 필요는 없습니다.