TikTok similar accounts API
The accounts TikTok suggests alongside a profile, about 30, each with its stats.
GET /v1/tiktok/users/{handle}/similar1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/tiktok/users/nasa/similar",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "userList": [ { "user": { "id": "7282772529965220910", "uniqueId": "jennierubyjane", "nickname": "JENNIE", "secUid": "MS4wLjABAAAAIopgkmIjiRd561f4uXwoUcU_TAdWu5aW8K_oApjbpzt73VAqE3erAcNdrrbUWjHC", "signature": "J", "verified": true, "privateAccount": false, "avatarLarger": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/3559896f0db4c1982e01d56eaaebbb44~tplv-tiktokx-cropcente…", "avatarThumb": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/3559896f0db4c1982e01d56eaaebbb44~tplv-tiktokx-cropcente…", "avatarMedium": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/3559896f0db4c1982e01d56eaaebbb44~tplv-tiktokx-cropcente…", "commentSetting": 0, "downloadSetting": 0, "duetSetting": 0, "ftc": false, "isADVirtual": false, "openFavorite": false, "relation": 0, "secret": false, "shortDramaCreator": {}, "stitchSetting": 0, "ttSeller": false }, "stats": { "followerCount": 26500000, "followingCount": 1, "heartCount": 491700000, "heart": 491700000, "videoCount": 93, "diggCount": 101, "friendCount": 0 }, "statsV2": { "diggCount": "101", "followerCount": "26538352", "followingCount": "1", "friendCount": "0", "heart": "491666184", "heartCount": "491666184", "videoCount": "93" } }, { "user": { "id": "126223816648822784", "uniqueId": "rauwalejandro", "nickname": "rauwalejandro", "secUid": "MS4wLjABAAAA7pFJYt0Ui6BV6xS9xncL3Zi1NsHEmfdn2t6sMY1yulhbrSWQ29xtwpUQFml62_q0", "signature": "Puertorrican R&B/Reggaeton singer 🇵🇷", "verified": true, "privateAccount": false, "avatarLarger": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/d6c6315ea52b8a304a0c7ba20e4d87e4~tplv-tiktokx-cropcente…", "avatarThumb": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/d6c6315ea52b8a304a0c7ba20e4d87e4~tplv-tiktokx-cropcente…", "avatarMedium": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/d6c6315ea52b8a304a0c7ba20e4d87e4~tplv-tiktokx-cropcente…", "commentSetting": 0, "downloadSetting": 0, "duetSetting": 0, "ftc": false, "isADVirtual": false, "openFavorite": false, "relation": 0, "secret": false, "shortDramaCreator": {}, "stitchSetting": 0, "ttSeller": false }, "stats": { "followerCount": 18800000, "followingCount": 0, "heartCount": 230300000, "heart": 230300000, "videoCount": 107, "diggCount": 272, "friendCount": 0 }, "statsV2": { "diggCount": "272", "followerCount": "18837926", "followingCount": "0", "friendCount": "0", "heart": "230341279", "heartCount": "230341279", "videoCount": "107" } }, "… 29 more" ], "cursor": "0", "hasMore": false, "total": 30}Parameters
| Name | Type | Description |
|---|---|---|
handlepath · required | string | Handle, with or without the @, or a profile URL. Example: nasa. |
Response fields
200 with a TikTokUserListResponse, in TikTok’s own web JSON (itemStruct, userInfo, comments).
| Field | Type | Description |
|---|---|---|
userList | object[] | |
cursor | string | Pass as cursor for the next page (TikTok’s minCursor). |
hasMore | boolean | |
total | number |
Status codes
| Status | Meaning |
|---|---|
200 | Similar accounts. |
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 account, video, comment, hashtag or sound does not exist on TikTok, or was removed. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | TikTok 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.