TikTok followers API
Accounts that follow a public TikTok account, newest first, 30 a page, each with its stats, plus the follower total.
GET /v1/tiktok/users/{handle}/followers1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/tiktok/users/nasa/followers",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "userList": [ { "user": { "id": "7582957936466920459", "uniqueId": "g.d26658", "nickname": "G D", "secUid": "MS4wLjABAAAAANzvgnqvXiupZwtUU6JLhoe0T8mpCZG3npOJMuDVAyv7-rLSmae2hFeEJa-OlgBg", "signature": "", "verified": false, "privateAccount": true, "avatarLarger": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/987cb1521add6bb2c3de21c395cc2fd0~tplv-tiktokx-cropcenter:108…", "avatarThumb": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/987cb1521add6bb2c3de21c395cc2fd0~tplv-tiktokx-cropcenter:100…", "avatarMedium": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/987cb1521add6bb2c3de21c395cc2fd0~tplv-tiktokx-cropcenter:720…", "downloadSetting": 3, "ftc": false, "isADVirtual": false, "openFavorite": false, "relation": 0, "secret": true, "shortDramaCreator": {}, "ttSeller": false }, "stats": { "followerCount": 0, "followingCount": 8, "heartCount": 0, "heart": 0, "videoCount": 0, "diggCount": 56, "friendCount": 0 }, "statsV2": { "diggCount": "56", "followerCount": "0", "followingCount": "8", "friendCount": "0", "heart": "0", "heartCount": "0", "videoCount": "0" } }, { "user": { "id": "7601182039081337877", "uniqueId": "samantha.au_", "nickname": "~sαოí́~", "secUid": "MS4wLjABAAAAgcJx7GOsj6YwUUF5hlRrwwl9QdDu1-0UdRyiSTw1kPVsExFaiJHRkcNCZ9CLy1uT", "signature": "", "verified": false, "privateAccount": true, "avatarLarger": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/1820a9701583dade67b7370e2cd5164a~tplv-tiktokx-cropcenter:108…", "avatarThumb": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/1820a9701583dade67b7370e2cd5164a~tplv-tiktokx-cropcenter:100…", "avatarMedium": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/1820a9701583dade67b7370e2cd5164a~tplv-tiktokx-cropcenter:720…", "downloadSetting": 3, "ftc": false, "isADVirtual": false, "openFavorite": false, "relation": 0, "secret": true, "shortDramaCreator": {}, "ttSeller": false }, "stats": { "followerCount": 11, "followingCount": 36, "heartCount": 0, "heart": 0, "videoCount": 1, "diggCount": 194, "friendCount": 0 }, "statsV2": { "diggCount": "194", "followerCount": "11", "followingCount": "36", "friendCount": "0", "heart": "0", "heartCount": "0", "videoCount": "1" } } ], "cursor": "1795563550", "hasMore": true, "total": 2224723}Parameters
| Name | Type | Description |
|---|---|---|
handlepath · required | string | Handle, with or without the @, or a profile URL. Example: nasa. |
cursorquery | string | The previous page’s cursor, for the next page. Omit for the first. |
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 | A page of followers. |
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.