GET /v1/douyin/user_profile
Douyin profile API: get followers, likes and bio by sec_uid
Returns a Douyin account's live profile: name, bio, follower, following and post counts, verified flag and avatar, with sec_uid, total_favorited and favoriting_count under extra. Send sec_uid as the id or a douyin.com/user/<sec_uid> URL. get_raw=true returns Douyin's own JSON.
- Price
- $0.0005 per call
- Batch
- Yes, through /v1/batch
- Failed calls
- Not charged
Example request
curl 'https://api.virev.ai/v1/douyin/user_profile?sec_uid=MS4wLjABAAAAsO7ytzQSxOjL9tqK5sqrA7E8-VjwYj_2TbObDS_ZOb4' \
-H "Authorization: Bearer $VIREV_API_KEY"import os
import requests
response = requests.request(
"GET",
"https://api.virev.ai/v1/douyin/user_profile",
params={
"sec_uid": "MS4wLjABAAAAsO7ytzQSxOjL9tqK5sqrA7E8-VjwYj_2TbObDS_ZOb4",
},
headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
timeout=60,
)
response.raise_for_status()
print(response.json())Parameters
| Name | In | Type | Description |
|---|---|---|---|
sec_uid required | query | string | A Douyin sec_uid, or the https://www.douyin.com/user/{sec_uid} profile URL. |
cached | query | auto | cache_only | live | auto (default) serves a read saved within the last 24 hours for these exact arguments, otherwise fetches. cache_only never contacts Douyin (404 not_cached when nothing is saved, whatever its age). live always fetches. Anything else is a 400. |
get_raw | query | boolean | true returns the upstream JSON exactly as Douyin answered it instead of the normalized Profile. |
Example response
The example response of the API reference.
{
"data": {
"id": "97523645652",
"username": "nishuihan163",
"full_name": "网易逆水寒",
"biography": "世界焕新,万物出金。\n《逆水寒:新世界》预约现已开启:https://h.163.com/h5/20260520/xsjyy/",
"followers": 2924823,
"following": 186,
"posts": 3684,
"is_verified": true,
"is_private": false,
"avatar_url": "https://p3-pc.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-i-23auat310x_4944ebf6f11d4cefb393fc1c135d0b76.jpeg?from=2956013662",
"external_url": null,
"links": [],
"category": null,
"business_category": null,
"is_business": true,
"is_professional": null,
"business_email": null,
"business_phone": null,
"business_address": null,
"pronouns": [],
"highlight_reel_count": null,
"has_clips": true,
"is_recently_joined": null,
"fbid": null,
"extra": {
"sec_uid": "MS4wLjABAAAAsO7ytzQSxOjL9tqK5sqrA7E8-VjwYj_2TbObDS_ZOb4",
"total_favorited": 77011726,
"favoriting_count": 0
}
},
"meta": {
"source": "live",
"fetched_at": "2026-11-08T11:56:13.394597+00:00",
"cost": "$0.0005",
"balance": "$424.1746",
"request_id": "req_7e84831485054d16e38aa3bb3513d249"
}
}How it works
A profile: name, bio, follower, following, post and like counts, verification and avatar. extra carries sec_uid, total_favorited and favoriting_count. Returns Profile under data; with get_raw=true returns the upstream JSON.
A field Douyin does not carry is null, a list it does not carry is [], and Douyin-only facts sit under extra. Unknown, unsupported, and repeated query parameters return 400 before acquisition or billing.
Errors
| Status | When |
|---|---|
400 | The request parameters are invalid. |
401 | Missing, malformed, or revoked API key. |
402 | Balance is too low for this request. |
404 | cached=cache_only found nothing saved for these arguments (not_cached; call again with cached=auto to fetch it), or the Douyin account or item does not exist (not_found). You are not charged. |
429 | Over the per-minute limit. The limit belongs to your organization and all its API keys share it: 100 requests per minute unless an increase was granted. Wait for the Retry-After seconds, then retry. On a live read, code rate_limited means the platform itself rate-limited this read; retry after the Retry-After seconds. You are not charged. |
502 | The upstream fetch failed. You are not charged. |
503 | Billing could not be confirmed, so no upstream data was returned. |
504 | The upstream request timed out. You are not charged. |