Douyin Get Sec User ID

2.07 credits/call
ae_douyin_get_sec_user_id

## Purpose Extract a single Douyin user's sec_user_id from their profile link. ## Input - `url` (required, string): The user's Douyin profile URL, for example `https://www.douyin.com/user/MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE`. - Provide one user profile link per call. Support for other link types is not documented. ## Result Returns the user's `sec_user_id`, an identifier for that user, rather than profile details or a list of users. The exact structure of the result data is not specified in the documentation.

Social
2.07 credits/call

Pricing

2.07 credits/call
ConditionCharge
Each call2.07 credits/call

2.07 credits/call Charges are per query. A successful query is billed even if it returns no results.

Each call accepts one Douyin user profile URL and extracts that user's sec_user_id.

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
urlstringYes抖音用户主页链接,用于提取该用户的 sec_user_id。—

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_douyin_get_sec_user_id' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "url": "https://www.douyin.com/user/31557623881"
  }
}'
Response exampleresponse.json
JSONPartial content
{
  "code": 200,
  "data": "31557623881",
  "docs": "https://api.tikhub.io/#/Douyin-Web-API/get_sec_user_id_api_v1_douyin_web_get_sec_user_id_get",
  "message": "Request successful. This request will incur a charge.",
  "message_zh": "请求成功,本次请求将被计费。",
  "params": {
    "url": "https://www.douyin.com/user/31557623881"
  }
}

This example shows part of the response. Copied content is valid JSON.