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

TikTok profile analytics API

A TikTok profile, its latest videos and computed analytics in one call: average and median views, engagement rate and posting frequency.

GET /v1/tiktok/users/{handle}/full2 credits per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/tiktok/users/nasa/full",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 2 credits
{
"userInfo": {
"user": {
"id": "7664638705177150477",
"uniqueId": "nasa",
"nickname": "NASA",
"secUid": "MS4wLjABAAAAU9BRVzC8oCaegVnia8IbqWhPb_-dbU7s00Y3wS1_Nx8g5RUa…",
"signature": "Making the seemingly impossible, possible.✨",
"verified": true,
"privateAccount": false,
"avatarLarger": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-006…",
"…": "32 more fields"
},
"stats": {
"followerCount": 2200000,
"followingCount": 23,
"heartCount": 11900000,
"heart": 11900000,
"videoCount": 70,
"diggCount": 0,
"friendCount": 17
},
"statsV2": {
"followerCount": "2224885",
"followingCount": "23",
"heart": "11913364",
"heartCount": "11913364",
"videoCount": "70",
"diggCount": "0",
"friendCount": "17"
}
},
"itemList": [
{
"id": "7665075736742530317",
"desc": "Something big just landed on TikTok.",
"createTime": 1784664542,
"author": {
"…": "22 fields"
},
"authorStats": {
"…": "7 fields"
},
"stats": {
"…": "5 fields"
},
"statsV2": {
"…": "6 fields"
},
"video": {
"…": "25 fields"
},
"…": "30 more fields"
},
"… 1 more"
],
"cursor": "1788019217385",
"hasMore": true,
"computed": {
"videos": 3,
"avgViews": 640167,
"medianViews": 70900,
"avgLikes": 40499,
"avgComments": 1324,
"avgShares": 1280,
"engagementRate": 0.0673,
"postsPerWeek": 0.11,
"…": "1 more fields"
}
}

Parameters

NameTypeDescription
handlepath · requiredstringHandle, with or without the @, or a profile URL. Example: nasa.
cursorquerystringThe previous page’s cursor, for the next page. Omit for the first.
Response fields

200 with a TikTokProfileFullResponse, in TikTok’s own web JSON (itemStruct, userInfo, comments).

FieldTypeDescription
userInfoobject
itemListTikTokItem[]
cursorstring
hasMoreboolean
computedobject
Status codes
StatusMeaning
200Profile, videos and analytics.
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 account, video, comment, hashtag or sound does not exist on TikTok, or was removed.
429Too many requests. Wait for Retry-After seconds.
503TikTok is temporarily unavailable. Retryable; nothing was charged.

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

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