API · TikTok
GET /tiktok/users/{handle}/region
The country a TikTok account posts from.
| Request | GET /v1/tiktok/users/{handle}/region |
| Operation id | tiktok.user.region |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
The country a TikTok account posts from.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | yes | Handle, with or without the @, or a profile URL. Example: nasa. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | The account’s country. | TikTokRegionResponse |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The account, video, comment, hashtag or sound does not exist on TikTok, or was removed. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | TikTok is temporarily unavailable. Retryable; nothing was charged. | Error |
TikTokRegionResponse fields
| Field | Type | Description |
|---|---|---|
uniqueId | string | |
region | string | null | The country most of the account’s recent videos were posted from (ISO 3166-1), or null. |
regions | object[] | |
basedOnVideos | number |
Errors use one shape everywhere; see Errors for every code and what to do.