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 failureimport 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
| Name | Type | Description |
|---|---|---|
idquery | string | The creator’s Douyin Select id (media_user.id of any of their videos). |
urlquery | string | A 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.
| Field | Type | Description |
|---|---|---|
id | string | The creator’s Douyin Select id (a video’s media_user.id). |
name | string | |
description | string | |
avatarUrl | string | |
verifiedContent | string | |
videoTotalCount | number | |
url | string |
Status codes
| Status | Meaning |
|---|---|
200 | The creator. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The video or creator does not exist. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Douyin 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.