kuben.dev
← Writing
Field notes

Where TikTok hides the creator's country

Short one, because it trips everyone up. You want a creator's country. The obvious places don't have it:

  • The profile endpoint returns no region field at all.
  • The author object on a post has account_region, but it comes back empty.

It's on the post, not the author

Each post (aweme) carries a top-level region field, a sibling of author, not inside it. For The Rock:

aweme_list[0].region                = "US"   ← this one
aweme_list[0].author.account_region = ""     ← ignore

So to get a creator's country, pull their posts and read region off the post object.

One caveat

It's the post's region, normally the creator's country but it can differ between posts. For safety, take it from a few recent posts and use the most common value.