uidstring필수
User uid, which is the short_id of the Douyin number
https://api.sandbase.ai/v1/api/douyin/web/user-profile-v3Returns profile information and badges for a specified Douyin user using their account identifier. Query by providing the user's short ID.
[
{
"data": {
"data": {
"message": "Request params error",
"prompts": "当前服务繁忙,请稍后重试"
},
"extra": {
"now": 1787219030171
},
"status_code": 10011
}
}
]예시를 선택하면 입력값과 결과가 플레이그라운드에 로드됩니다.
Returns profile details and badge data for a Douyin account. It needs one input, uid, which is the short ID of the Douyin number.
display_id) for a known short ID.curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/user-profile-v3" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"uid": "92769419069"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
uid | string | Yes | User uid, which is the short_id of the Douyin number |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"adversary_authorization_info": 1,
"adversary_user_status": 1,
"age_range": 0,
"allow_be_located": false,
"allow_find_by_contacts": false,
"allow_others_download_video": false,
"allow_others_download_when_sharing_video": false,
"allow_share_show_profile": false,
"allow_show_in_gossip": false,
"allow_show_my_action": false,
"allow_strange_comment": false,
"allow_unfollower_comment": false
},
"extra": {
"now": 1793691155539
},
"status_code": 0
}
| Field | Meaning |
|---|---|
data.display_id | The account's public display ID, for example dyczxzs. |
data.authentication_info.enterprise_verify_reason | The text of the enterprise verification label. In this response it reads as an official account of the Douyin creator center. |
data.authentication_info.authentication_badge.uri | Path of the verification badge icon. It is not a full URL. |
data.avatar_large.url_list[] / data.avatar_medium.url_list[] / data.avatar_thumb.url_list[] | Image URLs for the avatar in 1080x1080, 720x720 and 100x100 sizes. Each list holds several mirror URLs for the same image. |
data.badge_image_list[].content.alternative_text | Text description of a badge. In this response it describes an honor level 0 badge. |
data.badge_image_list[].content.level | Numeric level of the badge. |
data.badge_image_list_v2[] | A second badge list with the same structure as badge_image_list. |
data.allow_strange_comment / data.allow_unfollower_comment / data.allow_others_download_video | Boolean privacy and permission flags for the account. All are false in this response. |
data.create_time / data.birthday / data.city | Account creation time, birthday and city. They are 0 or empty in this response, so expect blanks for some accounts. |
uid. It is a string, for example 92769419069.0, false or an empty string. Check for empty values before you use them.sec_user_id instead, call Douyin UID to Sec User ID.$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-v3" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"uid": "example"
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
uidstring필수User uid, which is the short_id of the Douyin number
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
[
{
"data": {
"data": {
"message": "Request params error",
"prompts": "当前服务繁忙,请稍后重试"
},
"extra": {
"now": 1787219030171
},
"status_code": 10011
}
}
]더 살펴보기
| 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-v3에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.001, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수: uid (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Douyin User Profile Details은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Douyin API 액세스를 별도로 신청할 필요는 없습니다.