Douyin Web Encrypt Uid To Sec User ID
2.07 credits/call
ae_douyin_web_encrypt_uid_to_sec_user_id
Convert a Douyin user uid to sec_user_id, its encrypted identifier representation. Input: uid is required and must be a string. It is documented as the user's uid (short_id), for example "1673937488185292". Returns: a JSON response with status and message metadata and a data payload described as user information. The detailed payload structure and the field path for sec_user_id are not specified; the response is not documented as a bare identifier string.
2.07 credits/call
Pricing
2.07 credits/call
| Condition | Charge |
|---|---|
| Each call | 2.07 credits/call |
2.07 credits/call Charges are per query. A successful query is billed even if it returns no results.
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
uid | string | Yes | 用户uid(short_id)/User uid(short_id) | — |
Invocation example
Copy the request and explore its response example.
POST
/agent-api/v1/tool/executeX-Api-KeyRequest coderequest.sh
curl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_douyin_web_encrypt_uid_to_sec_user_id' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"uid": "71994063821"
}
}'Response exampleresponse.json
{
"code": 200,
"data": {
"sec_user_id": "Cic7XLSNSWxhberEtg8lX1BI6jXkaaF4MZTvmgA9RX2c64kbz5px1ZwaSQo8AAAAAAAAAAAAAFEgWOsSq8dLdArOfP2FYgeuTr8s-DHnOfP6sFBCkVKm5bbCmrbW9eQhlH3LUL6h6tGwENKpoQ4Yw8WD6gQiAQPaJ31v",
"uid": "71994063821"
},
"docs": "https://api.tikhub.io/#/Douyin-Web-API/encrypt_uid_to_sec_user_id_api_v1_douyin_web_encrypt_uid_to_sec_user_id_get",
"message": "Request successful. This request will incur a charge.",
"message_zh": "请求成功,本次请求将被计费。",
"params": {
"uid": "71994063821"
}
}This example shows part of the response. Copied content is valid JSON.

