100 free credits. No credit card required. Get a key

Douyin creator API

A Douyin creator’s public page, found through one of their videos: name, bio and video count.

GET /v1/douyin/user2 credits per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/douyin/user?url=https://www.douyin.com/video/7708236156650982707",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 2 credits
{
"id": "3134082496601463",
"name": "爱装的小怡宝",
"description": "🔸带你看1000个好好好家(152/1000)\n🔥分享设计灵感|带你看普通人爱\"装\"的家\n📕设计灵感|老房爆改|避坑攻略|种草干货\n📬没更新就是在认真看家(评论区聊哇!",
"avatarUrl": "https://p3.douyinpic.com/aweme/720x720/aweme-avatar/tos-cn-avt-0015_1da1b1d8e43d554c980045b858fb6501.jpeg?from=295601366…",
"verifiedContent": "",
"videoTotalCount": 185,
"followersCount": 0,
"followingCount": 0,
"headerCover": "",
"url": "https://jingxuan.douyin.com/m/user/3134082496601463"
}

Parameters

NameTypeDescription
idquerystringThe creator’s Douyin Select id (media_user.id of any of their videos).
urlquerystringA Douyin Select creator URL (jingxuan.douyin.com/m/user/<id>), or a video URL: its creator is used.
Response fields

200 with a DouyinUser, in Douyin’s own JSON.

FieldTypeDescription
idstringThe creator’s Douyin Select id (a video’s media_user.id).
namestring
descriptionstring
avatarUrlstring
verifiedContentstring
videoTotalCountnumber
urlstring
Status codes
StatusMeaning
200The creator.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404The video or creator does not exist.
429Too many requests. Wait for Retry-After seconds.
503Douyin is temporarily unavailable. Retryable; nothing was charged.

Every error has code, message, hint and retryable. All error codes

Questions

Can I pass a Douyin handle?

No: logged out, Douyin serves creator pages only through Douyin Select, keyed by the id a video carries.

Douyin is a trademark of ByteDance. We are not affiliated with or endorsed by ByteDance.