TikTok Get User Country
2.07 credits/call
ae_tiktok_get_user_country
# Purpose Look up the country or region associated with a TikTok account. # Input - `username` (required): The account handle, such as `tiktok` from `https://www.tiktok.com/@tiktok`. Enter the handle without `@`. # Result Returns the account's country or region and may include available account identifiers and metadata. This indicates the account's associated country, not necessarily the user's current location or nationality.
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 |
|---|---|---|---|---|
username | string | Yes | 用户名/Username | — |
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_user_country' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"username": "recargavirtual"
}
}'Response exampleresponse.json
{
"detail": {
"code": 400,
"docs": "https://api.tikhub.io/#/TikTok-App-V3-API/fetch_user_country_by_username_api_v1_tiktok_app_v3_fetch_user_country_by_username_get",
"headers": {},
"message": "Request failed. Please retry. Check the docs below to verify your parameters, test with the default demo parameters, and send the response JSON to support. You won't be charged for this request.",
"message_zh": "请求失败,请重试。请查看下方文档核对参数,使用默认演示参数测试,并将响应 JSON 提交给支持团队。本次请求不会被扣费。",
"params": {
"username": "recargavirtual"
}
}
}This example shows part of the response. Copied content is valid JSON.

