GroundsocialDocs

API · TikTok

GET /tiktok/users/{handle}/region

The country a TikTok account posts from.

RequestGET /v1/tiktok/users/{handle}/region
Operation idtiktok.user.region
Cost1 credit, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

The country a TikTok account posts from.

Path parameters

NameTypeRequiredDescription
handlestringyesHandle, with or without the @, or a profile URL. Example: nasa.

Responses

StatusMeaningSchema
200The account’s country.TikTokRegionResponse
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404The account, video, comment, hashtag or sound does not exist on TikTok, or was removed.Error
429Too many requests. Wait for Retry-After seconds.Error
503TikTok is temporarily unavailable. Retryable; nothing was charged.Error

TikTokRegionResponse fields

FieldTypeDescription
uniqueIdstring
regionstring | nullThe country most of the account’s recent videos were posted from (ISO 3166-1), or null.
regionsobject[]
basedOnVideosnumber

Errors use one shape everywhere; see Errors for every code and what to do.