TikTok Get Sec User ID
2.07 credits/call
ae_tiktok_get_sec_user_id
# Purpose Extract the sec_user_id associated with a TikTok user profile page. # Parameter - `url` (required): The user's profile page URL, for example `https://www.tiktok.com/@tiktok`. # Return The account's sec_user_id, a platform-specific user ID.
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 |
|---|---|---|---|---|
url | string | Yes | 用户主页链接/User homepage link | — |
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_tiktok_get_sec_user_id' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"url": "https://www.tiktok.com/@alessandroperrone10"
}
}'Response exampleresponse.json
{
"code": 200,
"data": "MS4wLjABAAAAz0rpVleu4X2Ibp8ah9zY6O7SB_EIZWH0VS-DRlfhfB5accP1hfQdGuxRzEGYc8D2",
"docs": "https://api.tikhub.io/#/TikTok-Web-API/get_sec_user_id_api_v1_tiktok_web_get_sec_user_id_get",
"message": "Request successful. This request will incur a charge."
}This example shows part of the response. Copied content is valid JSON.

